diff --git a/apps/web/components/views/connections-tab-content.tsx b/apps/web/components/views/connections-tab-content.tsx index 48ab04528..48c427d76 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 2e2406072..eac11d41e 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" ? ( +
+
+ + Temporarily Disabled + +
) : (
@@ -919,12 +932,20 @@ export function IntegrationsView() { {config.description}

+ {!isConnected && + !isMoreComing && + provider === "google-drive" && ( +

+ Google Drive connections are temporarily disabled. + This will be resolved soon. +

+ )} + {isConnected && !isMoreComing && (
{connection?.email && (

- Email:{" "} - {connection.email} + Email: {connection.email}

)} {connection?.metadata?.lastSyncedAt && ( @@ -1026,6 +1047,7 @@ export function IntegrationsView() {