From 7321f7feaa633e5675a75091645e7e745d05fc70 Mon Sep 17 00:00:00 2001 From: MaheshtheDev <38828053+MaheshtheDev@users.noreply.github.com> Date: Tue, 4 Nov 2025 22:38:11 +0000 Subject: [PATCH] fix: disable google drive connection due to upstream provider issue (#559) > [!NOTE] > Temporarily disabled Google Drive connections with appropriate UI indicators and error messages. ### What changed? - Added checks to prevent users from connecting to Google Drive in both the connections tab and integrations view - Added error messages explaining that Google Drive connections are temporarily disabled - Updated UI to visually indicate that Google Drive is disabled: - Added "Temporarily disabled" status indicator in the integrations list - Added explanatory text in multiple locations - Disabled the connect button for Google Drive specifically --- .../views/connections-tab-content.tsx | 17 +++++++++++- apps/web/components/views/integrations.tsx | 26 +++++++++++++++++-- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/apps/web/components/views/connections-tab-content.tsx b/apps/web/components/views/connections-tab-content.tsx index 48ab0452..48c427d7 100644 --- a/apps/web/components/views/connections-tab-content.tsx +++ b/apps/web/components/views/connections-tab-content.tsx @@ -111,6 +111,13 @@ export function ConnectionsTabContent() { // Add connection mutation const addConnectionMutation = useMutation({ mutationFn: async (provider: ConnectorProvider) => { + // Check if Google Drive is disabled + if (provider === "google-drive") { + throw new Error( + "Google Drive connections are temporarily disabled. This will be resolved soon.", + ) + } + // Check if user can add connections if (!canAddConnection && !isProUser) { throw new Error( @@ -312,7 +319,10 @@ export function ConnectionsTabContent() { > diff --git a/apps/web/components/views/integrations.tsx b/apps/web/components/views/integrations.tsx index 2e240607..eac11d41 100644 --- a/apps/web/components/views/integrations.tsx +++ b/apps/web/components/views/integrations.tsx @@ -280,6 +280,12 @@ export function IntegrationsView() { throw new Error("This integration is coming soon!") } + if (provider === "google-drive") { + throw new Error( + "Google Drive connections are temporarily disabled. This will be resolved soon.", + ) + } + if (!canAddConnection && !isProUser) { throw new Error( "Free plan doesn't include connections. Upgrade to Pro for unlimited connections.", @@ -890,6 +896,13 @@ export function IntegrationsView() { )} + ) : provider === "google-drive" ? ( +
+ Google Drive connections are temporarily disabled. + This will be resolved soon. +
+ )} + {isConnected && !isMoreComing && (- Email:{" "} - {connection.email} + Email: {connection.email}
)} {connection?.metadata?.lastSyncedAt && ( @@ -1026,6 +1047,7 @@ export function IntegrationsView() {