Commit graph

1117 commits

Author SHA1 Message Date
Rohan Verma
d53866d87d
Merge pull request #1430 from suryo12/refactor/1362-oauth-typed-contract
refactor(web): centralize OAuth callback cookie contract (fixes #1362)
2026-05-23 15:53:51 -07:00
Rohan Verma
ee87747b37
Merge pull request #1428 from guangyang1206/fix/extract-shared-haspermission-helper-1366
refactor: extract shared hasPermission helper (MODSetter/SurfSense#1366)
2026-05-23 15:51:34 -07:00
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
Anish Sarkar
98e3950dc8 Merge remote-tracking branch 'upstream/dev' into feat/opentelemetry 2026-05-23 03:21:08 +05:30
DESKTOP-RTLN3BA\$punk
1990125458 feat: update Privacy Policy with detailed data collection practices and usage information 2026-05-21 21:13:30 -07:00
guangyang1206
a66d65a835 refactor: extract shared hasPermission helper (MODSetter/SurfSense#1366)
- Add canPerform() helper function to members-query.atoms.ts
- Add usePermissionGate() hook for convenience
- Update team-content.tsx to use canPerform()
- Update roles-manager.tsx to use canPerform()
- Eliminates duplicated permission check logic
- Centralizes permission policy in one location

Fixes #1366
2026-05-22 12:08:05 +08:00
DESKTOP-RTLN3BA\$punk
2eaf4fbce1 feat: added adsense on /free page 2026-05-21 21:01:10 -07:00
DESKTOP-RTLN3BA\$punk
1a4400c923 refactor(env): streamline BACKEND_URL usage in GoogleLoginButton and DocumentTabContent; update connector-status-config for Composio Google Drive connector maintenance 2026-05-21 13:37:55 -07:00
Anish Sarkar
6e27f63d85 refactor(env): consolidate BACKEND_URL imports in GoogleLoginButton and DocumentTabContent 2026-05-21 00:54:22 +05:30
Rohan Verma
1a6d1ced43
Merge pull request #1417 from VarunShukla07/fix/env-config-editor-chat-dashboard
refactor(env): replace inline process.env reads with BACKEND_URL in editor, chat, dashboard and settings
2026-05-20 12:14:01 -07:00
Anish Sarkar
61234e125f refactor: remove team memory components and related settings from user and search space settings 2026-05-20 12:01:26 +05:30
Varun Shukla
fead3a64f4 refactor(env): replace inline process.env reads with BACKEND_URL in editor, chat, dashboard and settings 2026-05-20 03:34:22 +05:30
Anish Sarkar
73043a0756 feat: enhance memory API responses with limits and update UI components for memory limit handling 2026-05-20 03:17:05 +05:30
Anish Sarkar
89a8438864 feat: wire memory settings to memory API 2026-05-20 02:02:42 +05:30
Anish Sarkar
d66295aedd chore: ran linting 2026-05-19 21:02:07 +05:30
Anish Sarkar
ee3a6dc45f refactor: enhance DesktopContent and HotkeysContent components with improved loading states, updated styling, and consistent use of separators 2026-05-19 18:22:30 +05:30
Anish Sarkar
1169b43196 refactor: improve styling of MemberRow component and clean up agent tools imports 2026-05-19 17:41:48 +05:30
Anish Sarkar
8fd52d340f refactor: update styling and structure of team content, comment panel, and UI components 2026-05-19 17:34:59 +05:30
Anish Sarkar
78ad19dd6a refactor: enhance PromptsContent with dropdown menu for actions, update loading states, and improve styling consistency 2026-05-19 12:59:02 +05:30
Anish Sarkar
3b168e987d feat: add TeamPage component and remove TeamDialog for improved team management interface 2026-05-19 11:40:06 +05:30
Anish Sarkar
49e1395299 refactor: enhance user settings components with updated icons, improved loading states, and consistent alert structures 2026-05-19 11:11:14 +05:30
Anish Sarkar
d129ddd8f7 refactor: implement new layout structure for search space and user settings with clear ownership 2026-05-19 01:04:59 +05:30
Anish Sarkar
b7a6e3af3d refactor: update alert components across various files to use a consistent structure and styling 2026-05-18 23:46:16 +05:30
Anish Sarkar
e0ecea61f8 refactor: extract user avatar color and initials logic into a new utility module, update related components to use the new functions 2026-05-18 21:40:23 +05:30
Anish Sarkar
b6aed05683 refactor: implement SearchSpaceSettingsPage and SearchSpaceSettingsPanel components, replacing the previous settings dialog and enhancing tab navigation for search space settings 2026-05-18 02:02:45 +05:30
Anish Sarkar
08142f9add refactor: implement UserSettingsPage and UserSettingsPanel components, replacing UserSettingsDialog and enhancing user settings navigation 2026-05-18 01:51:31 +05:30
Anish Sarkar
5bcda6b83b refactor: replace action log sheet with dialog component and update related references 2026-05-18 01:34:41 +05:30
Anish Sarkar
c580addc04 refactor: enhance Google login functionality and button styles across multiple components 2026-05-18 01:17:37 +05:30
Anish Sarkar
10527ddb7c refactor: implement tab navigation in BuyMorePage and enhance button styles in BuyPagesContent and BuyTokensContent 2026-05-17 23:29:41 +05:30
Anish Sarkar
a49ee05456 refactor: enhance layout structure by introducing WorkspacePanel and updating component styles 2026-05-17 03:17:12 +05:30
Anish Sarkar
bd1d1c42a7 refactor: adjust thread max width and update button sizes in ComposerAction for improved UI consistency 2026-05-17 02:57:00 +05:30
Anish Sarkar
f65bc81509 Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-16 19:26:36 +05:30
DESKTOP-RTLN3BA\$punk
c187b04e82 chore: linting 2026-05-15 17:33:44 -07:00
DESKTOP-RTLN3BA\$punk
219a5977b7 fix: update URLs to use the "www" subdomain across the application
This commit modifies various metadata and canonical URLs in the SurfSense application to ensure consistency by using "https://www.surfsense.com" instead of "https://surfsense.com". Changes were made in layout files, blog posts, and SEO components to reflect this update.
2026-05-15 12:35:15 -07:00
DESKTOP-RTLN3BA\$punk
dc88ce0277 Merge branch 'dev' of https://github.com/MODSetter/SurfSense into dev 2026-05-15 11:55:40 -07:00
DESKTOP-RTLN3BA\$punk
52a64fb96c feat: added blog posts 2026-05-15 11:55:30 -07:00
CREDO23
c8b756ae8f hitl/wire: rename 'always' decision-type to 'approve_always'
Renames the SurfSense HITL extension decision-type from "always" to
"approve_always" so it sits in the same verb-first family as "approve",
"reject", and "edit". The Python constant is now SURFSENSE_DECISION_APPROVE_ALWAYS;
the wire value, the permission-domain decision_type, and the FE union members
all match (no wire/internal mismatch).

Both the multi_agent_chat permission middleware and the legacy new_chat one
accept the new wire value; the FE types.ts union is updated accordingly.

The "context.always" payload key is intentionally left untouched - it's the
patterns-to-promote field, semantically distinct from the decision type.
2026-05-15 14:47:32 +02:00
Rohan Verma
4db3cf7fd5
Merge pull request #1377 from AnishSarkar22/feat/e2e-testing-ci
feat: add E2E CI and harden Docker build migrations
2026-05-15 04:47:26 -07:00
Anish Sarkar
56239548c8 refactor: replace Activity icons with Workflow icons across various components for consistency 2026-05-15 00:47:21 +05:30
Anish Sarkar
c180417329 refactor: enhance loading and sidebar components with improved skeleton loading states and styling 2026-05-14 23:28:41 +05:30
Anish Sarkar
3d42712b3f refactor: replace button elements with Button component for improved consistency and styling across multiple UI components 2026-05-14 14:17:44 +05:30
Anish Sarkar
f98bde1e04 refactor: replace button elements with Button component for improved consistency and styling across UI components 2026-05-14 13:49:33 +05:30
Anish Sarkar
198c38b335 refactor: replace button elements with Button component for consistent styling across various UI components 2026-05-14 13:30:20 +05:30
Anish Sarkar
88f9c3353c refactor: update UI components to utilize 'popover-border' for consistent styling and enhance overall design coherence 2026-05-14 12:53:52 +05:30
CREDO23
1bb9f435e5 chat-messages: render and batch-submit multiple HITL approval cards 2026-05-13 21:00:01 +02:00
Anish Sarkar
75b7a9cc6c refactor: update UI components to enhance hover effects and color consistency 2026-05-13 23:53:09 +05:30
Anish Sarkar
a9252913cf refactor: update OnboardPage styling for consistency with main panel design 2026-05-13 18:22:52 +05:30
Anish Sarkar
6aa4dcef60 refactor: update UI components to use consistent popup and text colors 2026-05-13 16:46:35 +05:30
Anish Sarkar
481bb406b6 Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-13 03:02:23 +05:30
Anish Sarkar
275e2c9e83 chore: fix linting 2026-05-12 04:00:04 +05:30