supermemory/apps/web/lib
Vorflux AI 88f9fb20ef fix: redirect new users to onboarding from plugin connect page
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.
2026-05-07 22:55:06 +00:00
..
__tests__ fix: redirect new users to onboarding from plugin connect page 2026-05-07 22:55:06 +00:00
analytics.ts feat: major iteration on the app (#896) 2026-05-02 23:58:58 +00:00
billing-utils.ts feat: migrate to api_pro billing and add credits-based usage display (#729) 2026-02-10 05:53:47 +00:00
chat-highlight-documents.ts feat: major iteration on the app (#896) 2026-05-02 23:58:58 +00:00
chat-search-memory-results.ts feat: web search and improve chat with tools (#810) 2026-03-27 01:57:13 +00:00
chat-space-label.ts fix: space selector dropdown (#898) 2026-05-04 17:15:10 +00:00
chat-stream-error.ts chat: fix tool-output validation, bump ai sdk, update model labels (#887) 2026-04-26 04:25:09 +00:00
chat-web-search-tools.ts feat: web search and improve chat with tools (#810) 2026-03-27 01:57:13 +00:00
constants.ts fix: redirect new users to onboarding from plugin connect page 2026-05-07 22:55:06 +00:00
fonts.ts feat: deep-research on user profile and tiptap integration (#672) 2026-01-15 21:53:53 +00:00
ingest-auto-space.ts fix: space selector dropdown (#898) 2026-05-04 17:15:10 +00:00
mcp-client-setup.ts feat: mcp modal with better instructions (#836) 2026-04-08 19:20:11 +00:00
mcp-manual-instructions.ts feat: mcp modal with better instructions (#836) 2026-04-08 19:20:11 +00:00
models.tsx chat: fix tool-output validation, bump ai sdk, update model labels (#887) 2026-04-26 04:25:09 +00:00
search-params.ts feat: enhanced the integration page for more conversion (#899) 2026-05-04 17:41:52 +00:00
theme-provider.tsx feat: layout design with theme improvements (#443) 2025-10-01 21:59:54 +00:00
url-helpers.ts chore: cmdk, google docs viewer, image preview, document icons (#691) 2026-01-22 02:35:35 +00:00
variants.ts chore: delete document, document ui (#673) 2026-01-16 21:44:26 +00:00
view-mode-context.tsx fix: integrations page 2026-02-10 09:44:42 -08:00