supermemory/apps/web/lib/connector-availability.ts
MaheshtheDev 29c43984fe feat(web): pause Google Drive connect with a notify-me fallback (#1602)
![image.png](https://app.graphite.com/user-attachments/assets/6d7dd2cf-575b-450c-b7bb-c24b8ec834b9.png)

Google is not approving new authorizations while it re-reviews our app, so
every path that starts a new Google connection now shows a PAUSED badge and a
"Notify me" button instead of Connect.

- Existing connections are untouched: sync, file picking and history still work.
- Notify me fires a connector_paused_clicked PostHog event and remembers the
choice in localStorage, so we can pull who to email when the review clears.
- One list in lib/connector-availability.ts drives every surface; removing the
two entries turns Google back on.
2026-08-27 20:20:13 +00:00

30 lines
843 B
TypeScript

export type ConnectorPauseReason = "google_verification"
export interface ConnectorPause {
reason: ConnectorPauseReason
label: string
message: string
}
const PAUSED_CONNECTORS: Record<string, ConnectorPause> = {
"google-drive": {
reason: "google_verification",
label: "Google Drive",
message:
"New Google Drive connections are paused while Google reviews our app. Already connected? Your files keep syncing.",
},
gmail: {
reason: "google_verification",
label: "Gmail",
message:
"New Gmail connections are paused while Google reviews our app. Already connected? Your email keeps syncing.",
},
}
export function connectorPause(provider: string): ConnectorPause | undefined {
return PAUSED_CONNECTORS[provider]
}
export function isConnectorPaused(provider: string): boolean {
return provider in PAUSED_CONNECTORS
}