diff --git a/webapp/src/App.tsx b/webapp/src/App.tsx index 68036d4c4..ddc9c1daf 100644 --- a/webapp/src/App.tsx +++ b/webapp/src/App.tsx @@ -9,10 +9,11 @@ import { UserSettingsMenu } from './components/header/UserSettingsMenu'; import { PluginGallery } from './components/open-api-plugins/PluginGallery'; import { BackendProbe, ChatView, Error, Loading, Login } from './components/views'; import { useChat } from './libs/hooks'; +import { AlertType } from './libs/models/AlertType'; import { useAppDispatch, useAppSelector } from './redux/app/hooks'; import { RootState } from './redux/app/store'; import { FeatureKeys } from './redux/features/app/AppState'; -import { setActiveUserInfo, setServiceOptions } from './redux/features/app/appSlice'; +import { addAlert, setActiveUserInfo, setServiceOptions } from './redux/features/app/appSlice'; import { semanticKernelDarkTheme, semanticKernelLightTheme } from './styles'; export const useClasses = makeStyles({ @@ -81,6 +82,18 @@ const App: FC = () => { username: account.name ?? account.username, }), ); + + // Privacy disclaimer for internal Microsoft users + if (account.username.split('@')[1] === 'microsoft.com') { + dispatch( + addAlert({ + message: + 'By using Chat Copilot, you agree to protect sensitive data, not store it in chat, and allow chat history collection for service improvements. This tool is for internal use only.', + type: AlertType.Info, + }), + ); + } + setAppState(AppState.LoadingChats); } } else { diff --git a/webapp/src/components/chat/ChatInput.tsx b/webapp/src/components/chat/ChatInput.tsx index 14c863555..15c387097 100644 --- a/webapp/src/components/chat/ChatInput.tsx +++ b/webapp/src/components/chat/ChatInput.tsx @@ -183,6 +183,8 @@ export const ChatInput: React.FC = ({ isDraggingOver, onDragLeav