SurfSense/surfsense_web
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
..
app refactor(web): centralize OAuth callback cookie contract (fixes #1362) 2026-05-23 23:22:18 +07:00
atoms feat: improve document editor panel behavior 2026-05-20 02:02:59 +05:30
blog/content fix: update URLs to use the "www" subdomain across the application 2026-05-15 12:35:15 -07:00
changelog/content chore: added missed changelogs 2026-04-16 22:14:44 -07:00
components refactor(web): centralize OAuth callback cookie contract (fixes #1362) 2026-05-23 23:22:18 +07:00
content/docs feat: bumped version to 0.0.24 2026-05-20 03:01:37 -07:00
contexts feat: fixed vision/image provider specific errors and fixed podcast/video streaming 2026-05-02 19:18:53 -07:00
contracts refactor(web): centralize OAuth callback cookie contract (fixes #1362) 2026-05-23 23:22:18 +07:00
features/chat-messages refactor: replace action log sheet with dialog component and update related references 2026-05-18 01:34:41 +05:30
hooks feat: implement memory document fetching and saving functionality in the editor panel, and remove deprecated memory hook 2026-05-20 12:50:15 +05:30
i18n chore: linting 2026-03-27 03:17:05 -07:00
lib refactor(env): replace inline process.env reads with BACKEND_URL in lib/ 2026-05-20 03:12:02 +05:30
messages feat: add processing mode support for document uploads and ETL pipeline, improded error handling ux 2026-04-14 21:26:00 -07:00
public feat: added adsense on /free page 2026-05-21 21:01:10 -07:00
tests chore: fix linting 2026-05-12 04:00:04 +05:30
types chore: linting 2026-04-27 14:04:50 -07:00
zero feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
.cursorrules feat: monorepo 2025-04-07 23:47:06 -07:00
.dockerignore chore: ignore Playwright runtime artifacts 2026-05-04 17:48:44 +05:30
.env.example feat: added adsense on /free page 2026-05-21 21:01:10 -07:00
.gitignore chore: update .gitignore and biome.json to include additional test-related directories and files for improved E2E testing 2026-05-12 03:59:52 +05:30
biome.json chore: update .gitignore and biome.json to include additional test-related directories and files for improved E2E testing 2026-05-12 03:59:52 +05:30
components.json chore: ran linting 2026-02-17 12:47:39 +05:30
docker-entrypoint.js format: auto-fix via pnpm format:fix 2026-03-24 16:07:28 +02:00
docker-entrypoint.sh feat: add Docker configuration files and installation script for SurfSense 2026-02-24 22:45:37 +05:30
Dockerfile chore: update Docker configuration to include pnpm workspace and refine dependency management 2026-05-11 15:31:24 +05:30
drizzle.config.ts chore: biome checks 2025-10-15 14:38:26 -07:00
eslint.config.mjs Biome: fixes for eslint config 2025-07-27 11:47:38 -07:00
instrumentation-client.ts feat: implement analytics tracking for desktop app events 2026-04-18 14:35:14 -07:00
instrumentation.ts feat: enhance error handling with PostHog integration 2026-03-12 01:28:39 -07:00
LICENSE feat: monorepo 2025-04-07 23:47:06 -07:00
mdx-components.tsx perf(images): add sizes prop to improve Next.js image loading 2026-04-03 22:11:21 +07:00
next.config.ts feat(next.config): enable remote SVG support with enhanced content security policy 2026-05-05 19:13:38 -07:00
package.json feat: bumped version to 0.0.25 2026-05-21 14:44:33 -07:00
playwright.config.ts chore: fix linting 2026-05-12 04:00:04 +05:30
pnpm-lock.yaml chore: remove caret from @rocicorp/zero dependency version 2026-05-13 03:34:28 +05:30
pnpm-workspace.yaml feat: added blog posts 2026-05-15 11:55:30 -07:00
postcss.config.mjs Initial formatting using biome 2025-07-27 10:05:37 -07:00
source.config.ts feat: added blog posts 2026-05-15 11:55:30 -07:00
svgr.d.ts chore: ran linting 2026-02-10 19:06:21 +05:30
tailwind.config.js feat: enhance UI components with new border radius and tooltip features 2026-01-20 17:35:08 +05:30
tsconfig.json feat: old chat to new-chat with persistance 2025-12-21 16:32:55 -08:00