From abee94189ae49e0bef8e4595247e164789ae2168 Mon Sep 17 00:00:00 2001 From: Gabriel Gordon-Hall Date: Fri, 5 Sep 2025 18:02:02 +0100 Subject: [PATCH] auto open github login page when signing in (#636) --- frontend/src/components/GitHubLoginDialog.tsx | 5 +++-- frontend/src/pages/settings/GeneralSettings.tsx | 3 --- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/GitHubLoginDialog.tsx b/frontend/src/components/GitHubLoginDialog.tsx index d80c231e..5f706787 100644 --- a/frontend/src/components/GitHubLoginDialog.tsx +++ b/frontend/src/components/GitHubLoginDialog.tsx @@ -90,12 +90,13 @@ export function GitHubLoginDialog({ }; }, [polling, deviceState]); - // Automatically copy code to clipboard when deviceState is set + // Automatically copy code to clipboard and open GitHub URL when deviceState is set useEffect(() => { if (deviceState?.user_code) { copyToClipboard(deviceState.user_code); + window.open(deviceState.verification_uri, '_blank'); } - }, [deviceState?.user_code]); + }, [deviceState?.user_code, deviceState?.verification_uri]); const copyToClipboard = async (text: string) => { try { diff --git a/frontend/src/pages/settings/GeneralSettings.tsx b/frontend/src/pages/settings/GeneralSettings.tsx index f3338807..18cd1473 100644 --- a/frontend/src/pages/settings/GeneralSettings.tsx +++ b/frontend/src/pages/settings/GeneralSettings.tsx @@ -345,9 +345,6 @@ export function GeneralSettings() { GitHub Integration - - Connect your GitHub account to enable advanced features. - {isAuthenticated ? (