mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-11-02 07:13:02 +00:00
New users arriving at /auth/connect (e.g. from OpenCode CLI) had no organization yet, causing the 'Approve Connection' button to silently fail. The handleConnect guard 'if (!session || !org) return' would fire with no feedback, leading to rage-clicking. Changes: - Detect logged-in users with no org on the connect page and redirect them to onboarding, stashing the connect URL in sessionStorage. - After onboarding completes (skip or finish), redirect back to the connect page so the plugin auth flow finishes automatically. - Show an error message instead of silently returning when session/org is missing and the user clicks 'Approve Connection'. - Wait for full auth state before showing the connect card. - Extract PENDING_CONNECT_URL_KEY and consumePendingConnectUrl() to a shared constants file with 7 unit tests. |
||
|---|---|---|
| .. | ||
| __tests__ | ||
| analytics.ts | ||
| billing-utils.ts | ||
| chat-highlight-documents.ts | ||
| chat-search-memory-results.ts | ||
| chat-space-label.ts | ||
| chat-stream-error.ts | ||
| chat-web-search-tools.ts | ||
| constants.ts | ||
| fonts.ts | ||
| ingest-auto-space.ts | ||
| mcp-client-setup.ts | ||
| mcp-manual-instructions.ts | ||
| models.tsx | ||
| search-params.ts | ||
| theme-provider.tsx | ||
| url-helpers.ts | ||
| variants.ts | ||
| view-mode-context.tsx | ||