Commit graph

758 commits

Author SHA1 Message Date
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
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
Rohan Verma
c97bb81126
Merge pull request #1416 from VarunShukla07/fix/env-config-connector-forms
refactor(env): replace inline process.env reads with BACKEND_URL in connector forms and hooks
2026-05-20 12:13:50 -07:00
Anish Sarkar
39c29d651f feat: enhance token display in MessageInfoDropdown with improved visual separation 2026-05-20 15:29:41 +05:30
Varun Shukla
81ce9e4071
Merge branch 'dev' into fix/env-config-connector-forms 2026-05-20 03:26:12 +05:30
Anish Sarkar
d66295aedd chore: ran linting 2026-05-19 21:02:07 +05:30
Anish Sarkar
a5bd2bea9c feat: integrate collapsible sections for connector management in ComposerAction, add new connector icons for Discord, Teams, and Luma 2026-05-19 16:45:16 +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
c8f0f7cb1b refactor: update alert components to use warning variant and clean up unused alerts in settings manager 2026-05-19 01:41:09 +05:30
Varun Shukla
9e886f8274 refactor(env): replace inline process.env reads with BACKEND_URL in connector forms and hooks 2026-05-19 01:16:02 +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
22f6b9dfe4 refactor: update Slack configuration styling and remove unused icon in general settings 2026-05-19 00:51:06 +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
87caa4b6d0 Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-18 09:39:35 +05:30
Rohan Verma
8fc4b98593
Merge pull request #1402 from guangyang1206/fix/extract-domain-helper-1368
Fix/extract domain helper 1368
2026-05-17 18:17:25 -07:00
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
5bcda6b83b refactor: replace action log sheet with dialog component and update related references 2026-05-18 01:34:41 +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
88a43cdd65 refactor: enhance ConnectToolsBanner functionality and update sidebar navigation handling 2026-05-17 16:46:34 +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
b52e578021 refactor: replace Popover with DropdownMenu in ComposerAction and clean up unused state management 2026-05-17 00:57:35 +05:30
Anish Sarkar
af1d2fa430 Merge remote-tracking branch 'upstream/dev' into fix/zero-cache-stale-replica-1355 2026-05-16 19:30:09 +05:30
Anish Sarkar
f65bc81509 Merge remote-tracking branch 'upstream/dev' into feat/ui-revamp 2026-05-16 19:26:36 +05:30
guangyang1206
f096548a16 fix(web): extract single tryGetHostname helper (DRY, unified fallback)
Fixes #1368

Previously,  was duplicated in 4 places with 3 subtly different fallback behaviors:
1. inline-citation.tsx: returned  on error
2. markdown-text.tsx: returned  on error
3. assistant-message.tsx: returned  on error
4. citation.tsx: returned  on error

Created canonical  in  that:
- Returns
- Strips  prefix from hostname
- Returns  on invalid URL (safest contract)

Updated all 4 call sites:
- inline-citation.tsx:  (preserves original fallback)
- markdown-text.tsx:  (preserves original fallback)
- assistant-message.tsx:  (drop-in, both return )
- citation.tsx:  (drop-in, both return )

Co-authored-by: guangyang1206 <guangyang1206@users.noreply.github.com>
2026-05-16 12:15:16 +08:00
CREDO23
4980f9f1ba Merge remote-tracking branch 'upstream/dev' into feature/multi-agent-with-task-parallelization 2026-05-15 16:44:22 +02:00
CREDO23
5327f3348c connector-popup: surface trusted-tools UI in MCP edit view; consolidate disconnect
- Slot MCPTrustedTools in mcp-service-config (gated on connector.id > 0) so
  any connected MCP-backed connector exposes a revoke surface for
  approve_always grants.
- Add new mcp-trusted-tools.tsx (audit + revoke list) and
  connectorsApiService.untrustMCPTool() that backs it.
- Drop the redundant row-level Disconnect from ConnectorAccountsListView:
  Manage now leads to the edit view whose own Disconnect is the single
  source of truth. Remove the now-dead onDisconnect prop, confirm-flow
  state, and handleDisconnectFromList hook callback + return entry.
2026-05-15 16:40:16 +02:00
Anish Sarkar
8001cae1b4 refactor: update MessageInfoDropdown to accept chatTurnId prop and enhance RevertTurnButton integration for improved functionality 2026-05-15 10:48:57 +05:30
Anish Sarkar
5092bd3e8c refactor: integrate mobile preview functionality in citation components and enhance styling for improved usability 2026-05-15 04:13:58 +05:30
Anish Sarkar
4dd5871318 refactor: enhance citation components with mobile support and improved styling for better user experience 2026-05-15 03:56:01 +05:30
Anish Sarkar
01d7379914 refactor: add public URL handling for SurfSense documents across various components and schemas 2026-05-15 02:05:11 +05:30
Anish Sarkar
ea087d1d23 refactor: implement CitationHoverPopover component to enhance inline citation functionality and improve user interaction 2026-05-15 02:00:17 +05:30
Anish Sarkar
2bdd59611a refactor: update SidebarUserProfile and Composer components with improved styling and tooltip integration 2026-05-14 23:22:32 +05:30
Anish Sarkar
c77babf39b refactor: replace button elements with Button component for improved consistency and styling across additional UI components 2026-05-14 15:02:46 +05:30
Anish Sarkar
da55c75e5e refactor: remove ThreadList component and associated thread management logic 2026-05-14 14:42:41 +05:30
Anish Sarkar
ee72a49ab1 refactor: replace button elements with Button component for improved consistency and styling across additional UI components 2026-05-14 14:40:08 +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
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
Anish Sarkar
468f4ef121 refactor: standardize hover effects and focus styles across UI components 2026-05-14 02:10:33 +05:30
Anish Sarkar
75b7a9cc6c refactor: update UI components to enhance hover effects and color consistency 2026-05-13 23:53:09 +05:30
Anish Sarkar
0fecff45b9 refactor: update UI components to use 'bg-popover' for consistent styling 2026-05-13 17:21:10 +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
32ff864fd3 refactor(assistant-ui): streamline docstrings and comments 2026-05-12 23:24:01 +05:30
Anish Sarkar
2437716752 refactor(assistant-ui): enhance mention chip handling and editor focus behavior 2026-05-12 23:18:45 +05:30
Anish Sarkar
0c2beb7ce8 fix(thread): conditionally render screen capture button for desktop users 2026-05-12 21:26:33 +05:30
Anish Sarkar
8ea042e88c refactor(chat): improve user query handling and mention chip functionality 2026-05-12 20:57:15 +05:30
Anish Sarkar
275e2c9e83 chore: fix linting 2026-05-12 04:00:04 +05:30
DESKTOP-RTLN3BA\$punk
c8374e6c5b feat: improved document, folder mentions rendering
Some checks are pending
Build and Push Docker Images / tag_release (push) Waiting to run
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_backend, ./surfsense_backend/Dockerfile, backend, surfsense-backend, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-24.04-arm, linux/arm64, arm64) (push) Blocked by required conditions
Build and Push Docker Images / build (./surfsense_web, ./surfsense_web/Dockerfile, web, surfsense-web, ubuntu-latest, linux/amd64, amd64) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (backend, surfsense-backend) (push) Blocked by required conditions
Build and Push Docker Images / create_manifest (web, surfsense-web) (push) Blocked by required conditions
2026-05-09 22:15:51 -07:00