-
-
Chat Copilot
- {appState > AppState.SettingUserInfo && (
-
-
-
-
{
- setAppState(AppState.SigningOut);
- }}
- />
-
-
- )}
-
- {appState === AppState.ProbeForBackend &&
}
- {appState === AppState.SettingUserInfo && (
-
- )}
- {appState === AppState.ErrorLoadingUserInfo && (
-
- )}
- {appState === AppState.ErrorLoadingChats && (
-
- )}
- {appState === AppState.LoadingChats &&
}
- {appState === AppState.Chat &&
}
-
- );
-};
-
export default App;
diff --git a/webapp/src/Constants.ts b/webapp/src/Constants.ts
index df3577237..6d72bc5b2 100644
--- a/webapp/src/Constants.ts
+++ b/webapp/src/Constants.ts
@@ -45,6 +45,7 @@ export const Constants = {
// For a list of Microsoft Graph permissions, see https://learn.microsoft.com/en-us/graph/permissions-reference.
// Your application registration will need to be granted these permissions in Azure Active Directory.
msGraphScopes: ['Calendars.Read', 'Mail.Read', 'Mail.Send', 'Tasks.ReadWrite', 'User.Read'],
+ msGraphOboScopes: ['[INCLUDE THE SCOPE FOR THE WEBAPI APP REGISTRATION HERE]'],
},
KEYSTROKE_DEBOUNCE_TIME_MS: 250,
};
diff --git a/webapp/src/components/chat/Chat.tsx b/webapp/src/components/chat/Chat.tsx
new file mode 100644
index 000000000..134182aa6
--- /dev/null
+++ b/webapp/src/components/chat/Chat.tsx
@@ -0,0 +1,59 @@
+import { Subtitle1 } from '@fluentui/react-components';
+import React from 'react';
+import { AuthHelper } from '../..//libs/auth/AuthHelper';
+import { AppState, useClasses } from '../../App';
+import { UserSettingsMenu } from '../header/UserSettingsMenu';
+import { PluginGallery } from '../open-api-plugins/PluginGallery';
+import { BackendProbe, ChatView, Error, Loading } from '../views';
+
+const Chat = ({
+ classes,
+ appState,
+ setAppState,
+}: {
+ classes: ReturnType