mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-08-28 05:25:33 +00:00
 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.
30 lines
843 B
TypeScript
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
|
|
}
|