SurfSense/surfsense_web/app/dashboard/[search_space_id]
suryo12 aa86534a52 refactor(web): centralize OAuth callback cookie contract (fixes #1362)
Replace the duplicated `OAUTH_RESULT_COOKIE` constant and inline payload
type across the callback route and connector dialog hook with a shared
`contracts/types/oauth.types.ts` module that exports:

- OAUTH_RESULT_COOKIE constant
- oauthCallbackResultSchema Zod schema
- OAuthCallbackResult type (inferred from the schema)
- parseOAuthCallbackResult() helper that returns null on invalid JSON
  or shape mismatch

The route handler now uses the shared type to constrain the cookie
payload at compile time. The consumer hook validates the cookie value
through the helper instead of an unchecked JSON.parse, removing the
silent runtime risk when the cookie is tampered with or its shape
drifts.
2026-05-23 23:22:18 +07:00
..
buy-more refactor: implement tab navigation in BuyMorePage and enhance button styles in BuyPagesContent and BuyTokensContent 2026-05-17 23:29:41 +05:30
buy-pages feat: no login experience and prem tokens 2026-04-15 17:02:00 -07:00
buy-tokens feat: no login experience and prem tokens 2026-04-15 17:02:00 -07:00
connectors/callback refactor(web): centralize OAuth callback cookie contract (fixes #1362) 2026-05-23 23:22:18 +07:00
logs chore: ran linting 2026-05-19 21:02:07 +05:30
more-pages refactor: implement tab navigation in BuyMorePage and enhance button styles in BuyPagesContent and BuyTokensContent 2026-05-17 23:29:41 +05:30
new-chat refactor(env): replace inline process.env reads with BACKEND_URL in editor, chat, dashboard and settings 2026-05-20 03:34:22 +05:30
onboard refactor: update OnboardPage styling for consistency with main panel design 2026-05-13 18:22:52 +05:30
purchase-cancel feat: no login experience and prem tokens 2026-04-15 17:02:00 -07:00
purchase-success chore: linting 2026-05-05 17:08:34 -07:00
search-space-settings refactor: remove team memory components and related settings from user and search space settings 2026-05-20 12:01:26 +05:30
team refactor: improve styling of MemberRow component and clean up agent tools imports 2026-05-19 17:41:48 +05:30
user-settings refactor: remove team memory components and related settings from user and search space settings 2026-05-20 12:01:26 +05:30
client-layout.tsx refactor(layout): implement background color management in DashboardClientLayout; streamline RightPanel and LayoutShell styles for consistency 2026-05-04 02:05:20 +05:30
layout.tsx chore: ran linting 2026-03-06 12:17:57 +05:30
page.tsx chore: linting 2026-03-27 03:17:05 -07:00