Skip to content

Commit a5cd319

Browse files
committed
fixup: remove comments, auth plugin activate
1 parent b75899d commit a5cd319

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
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;
116
export { AtlasServiceError } from './util';
217
export type { AtlasUserInfo } from './util';
318
export { CompassAtlasAuthService } from './compass-atlas-auth-service';

packages/compass-generative-ai/src/components/atlas-signin/ai-signin-modal.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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 (

packages/compass/src/app/components/home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { getExtraConnectionData } from '../utils/telemetry';
3131
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
3232
import { CompassInstanceStorePlugin } from '@mongodb-js/compass-app-stores';
3333
import 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';
3535
import { CompassGenerativeAIPlugin } from '@mongodb-js/compass-generative-ai';
3636
import type { WorkspaceTab } from '@mongodb-js/compass-workspaces';
3737
import { 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>

0 commit comments

Comments
 (0)