File tree Expand file tree Collapse file tree 3 files changed +17
-4
lines changed
compass-generative-ai/src/components/atlas-signin
compass/src/app/components Expand file tree Collapse file tree 3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1+ import { registerHadronPlugin } from 'hadron-app-registry' ;
2+ import { activatePlugin } from './store/atlas-signin-store' ;
3+ import { atlasAuthServiceLocator } from './provider' ;
4+
5+ export const AtlasAuthPlugin = registerHadronPlugin (
6+ {
7+ name : 'AtlasAuth' ,
8+ component : ( ) => null ,
9+ activate : activatePlugin ,
10+ } ,
11+ {
12+ atlasAuthService : atlasAuthServiceLocator ,
13+ }
14+ ) ;
15+ export default AtlasAuthPlugin ;
116export { AtlasServiceError } from './util' ;
217export type { AtlasUserInfo } from './util' ;
318export { CompassAtlasAuthService } from './compass-atlas-auth-service' ;
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ const AISignInModal: React.FunctionComponent<SignInModalProps> = ({
4040 onSignInModalClose,
4141 onSignInClick,
4242} ) => {
43- // const useSi // Is sign in in progress hook?
44-
4543 const darkMode = useDarkMode ( ) ;
4644
4745 return (
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ import { getExtraConnectionData } from '../utils/telemetry';
3131// eslint-disable-next-line @typescript-eslint/no-restricted-imports
3232import { CompassInstanceStorePlugin } from '@mongodb-js/compass-app-stores' ;
3333import FieldStorePlugin from '@mongodb-js/compass-field-store' ;
34- // import { AtlasAuthPlugin } from '@mongodb-js/atlas-service/renderer';
34+ import { AtlasAuthPlugin } from '@mongodb-js/atlas-service/renderer' ;
3535import { CompassGenerativeAIPlugin } from '@mongodb-js/compass-generative-ai' ;
3636import type { WorkspaceTab } from '@mongodb-js/compass-workspaces' ;
3737import { ConnectionStorageProvider } from '@mongodb-js/connection-storage/provider' ;
@@ -220,7 +220,7 @@ function Home({
220220 />
221221 < CompassSettingsPlugin > </ CompassSettingsPlugin >
222222 < CompassFindInPagePlugin > </ CompassFindInPagePlugin >
223- { /* <AtlasAuthPlugin></AtlasAuthPlugin> */ }
223+ < AtlasAuthPlugin > </ AtlasAuthPlugin >
224224 < CompassGenerativeAIPlugin > </ CompassGenerativeAIPlugin >
225225 < LegacyConnectionsModal />
226226 </ FieldStorePlugin >
You can’t perform that action at this time.
0 commit comments