Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion apps/web/components/views/connections-tab-content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -312,7 +319,10 @@ export function ConnectionsTabContent() {
>
<Button
className="justify-start h-auto p-4 bg-foreground/5 hover:bg-foreground/10 border-foreground/10 w-full cursor-pointer"
disabled={addConnectionMutation.isPending}
disabled={
provider === "google-drive" ||
addConnectionMutation.isPending
}
onClick={() => {
addConnectionMutation.mutate(provider as ConnectorProvider)
}}
Expand All @@ -324,6 +334,11 @@ export function ConnectionsTabContent() {
<div className="text-sm text-foreground/60 mt-0.5">
{config.description}
</div>
{provider === "google-drive" && (
<div className="text-xs text-muted-foreground/80 mt-1">
Temporarily disabled. This will be resolved soon.
</div>
)}
</div>
</Button>
</motion.div>
Expand Down
26 changes: 24 additions & 2 deletions apps/web/components/views/integrations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -890,6 +896,13 @@ export function IntegrationsView() {
</div>
)}
</div>
) : provider === "google-drive" ? (
<div className="flex items-center gap-1 mt-1">
<div className="w-2 h-2 bg-muted-foreground rounded-full" />
<span className="text-xs text-muted-foreground font-medium">
Temporarily Disabled
</span>
</div>
) : (
<div className="flex items-center gap-1 mt-1">
<div className="w-2 h-2 bg-muted-foreground rounded-full" />
Expand Down Expand Up @@ -919,12 +932,20 @@ export function IntegrationsView() {
{config.description}
</p>

{!isConnected &&
!isMoreComing &&
provider === "google-drive" && (
<p className="text-xs text-muted-foreground/80 mb-3 leading-relaxed">
Google Drive connections are temporarily disabled.
This will be resolved soon.
</p>
)}

{isConnected && !isMoreComing && (
<div className="space-y-1">
{connection?.email && (
<p className="text-xs text-muted-foreground/70">
Email:{" "}
{connection.email}
Email: {connection.email}
</p>
)}
{connection?.metadata?.lastSyncedAt && (
Expand Down Expand Up @@ -1026,6 +1047,7 @@ export function IntegrationsView() {
<Button
className="flex-shrink-0 disabled:cursor-not-allowed w-20 justify-center"
disabled={
provider === "google-drive" ||
addConnectionMutation.isPending ||
connectingProvider === provider ||
!isProUser
Expand Down
Loading