SurfSense/surfsense_web/components/assistant-ui
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
..
connector-popup refactor(web): centralize OAuth callback cookie contract (fixes #1362) 2026-05-23 23:22:18 +07:00
assistant-message.tsx feat: enhance token display in MessageInfoDropdown with improved visual separation 2026-05-20 15:29:41 +05:30
chat-session-status.tsx feat: added incentive credits system 2026-01-26 23:32:30 -08:00
chat-viewport.tsx refactor: update UI components to enhance hover effects and color consistency 2026-05-13 23:53:09 +05:30
citation-metadata-context.tsx feat: add mobile citation drawer and enhance citation metadata context for improved citation management 2026-03-30 02:06:57 +05:30
connector-popup.tsx refactor: implement new layout structure for search space and user settings with clear ownership 2026-05-19 01:04:59 +05:30
document-upload-popup.tsx refactor: implement new layout structure for search space and user settings with clear ownership 2026-05-19 01:04:59 +05:30
edit-composer.tsx chore: ran frontend linting 2026-01-01 22:24:42 +05:30
edit-message-dialog.tsx feat: improved agent streaming 2026-04-29 07:20:31 -07:00
image.tsx refactor: replace button elements with Button component for improved consistency and styling across multiple UI components 2026-05-14 14:17:44 +05:30
inline-citation.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
inline-mention-editor.tsx Merge remote-tracking branch 'upstream/dev' into fix/zero-cache-stale-replica-1355 2026-05-16 19:30:09 +05:30
markdown-code-block.tsx refactor: enhance PromptsContent with dropdown menu for actions, update loading states, and improve styling consistency 2026-05-19 12:59:02 +05:30
markdown-text.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
mention-chip.tsx refactor: replace button elements with Button component for improved consistency and styling across additional UI components 2026-05-14 15:02:46 +05:30
nested-scroll.tsx chore: linting 2026-04-30 18:42:38 -07:00
reasoning-message-part.tsx refactor: replace button elements with Button component for improved consistency and styling across additional UI components 2026-05-14 15:02:46 +05:30
revert-turn-button.tsx refactor: replace action log sheet with dialog component and update related references 2026-05-18 01:34:41 +05:30
step-separator.tsx feat: improved agent streaming 2026-04-29 07:20:31 -07:00
thread.tsx chore: ran linting 2026-05-19 21:02:07 +05:30
token-usage-context.tsx feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
tooltip-icon-button.tsx chore: ran linting 2026-04-08 18:23:03 +05:30
user-message.tsx Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-16 19:26:36 +05:30