From 79c647d486a5ef3cf9eb68f23000525e8d2c4a91 Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Wed, 25 Jun 2025 15:38:18 -0700 Subject: Merge "Login with Google Workspace" auth option into "Login with Google" (#1574) Co-authored-by: Scott Densmore --- packages/cli/src/ui/components/AuthDialog.tsx | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'packages/cli/src/ui/components/AuthDialog.tsx') diff --git a/packages/cli/src/ui/components/AuthDialog.tsx b/packages/cli/src/ui/components/AuthDialog.tsx index 747a83bd..f8ddfaed 100644 --- a/packages/cli/src/ui/components/AuthDialog.tsx +++ b/packages/cli/src/ui/components/AuthDialog.tsx @@ -29,32 +29,15 @@ export function AuthDialog({ const [errorMessage, setErrorMessage] = useState( initialErrorMessage || null, ); - const allAuthItems = [ + const items = [ { label: 'Login with Google', value: AuthType.LOGIN_WITH_GOOGLE_PERSONAL, }, { label: 'Gemini API Key', value: AuthType.USE_GEMINI }, - { - label: 'Login with Google (for Workspace or licensed Code Assist users)', - value: AuthType.LOGIN_WITH_GOOGLE_ENTERPRISE, - }, { label: 'Vertex AI', value: AuthType.USE_VERTEX_AI }, ]; - const isSelectedAuthInMore = allAuthItems - .slice(2) - .some((item) => item.value === settings.merged.selectedAuthType); - - const [showAll, setShowAll] = useState(isSelectedAuthInMore); - - const initialAuthItems = [ - ...allAuthItems.slice(0, 2), - { label: 'More...', value: 'more' }, - ]; - - const items = showAll ? allAuthItems : initialAuthItems; - let initialAuthIndex = items.findIndex( (item) => item.value === settings.merged.selectedAuthType, ); @@ -64,10 +47,6 @@ export function AuthDialog({ } const handleAuthSelect = (authMethod: string) => { - if (authMethod === 'more') { - setShowAll(true); - return; - } const error = validateAuthMethod(authMethod); if (error) { setErrorMessage(error); -- cgit v1.2.3