Commit graph

54 commits

Author SHA1 Message Date
DESKTOP-RTLN3BA\$punk
271a21aee6 feat: docs and ui tweaks 2026-07-06 19:26:35 -07:00
Anish Sarkar
a8c1fb660d feat(rename): complete searchSpace to workspace transition across frontend and backend
- Introduced a comprehensive specification for renaming `searchSpace` to `workspace` in `surfsense_web` and `surfsense_desktop`, ensuring all TypeScript identifiers, React props, and local data structures are updated.
- Implemented migration shims for persisted local state to prevent data loss during the transition.
- Updated observability metrics and IPC channels to reflect the new naming convention.
- Removed legacy `active-search-space` module and replaced it with `active-workspace` to maintain consistency.
- Ensured no behavioral changes or data loss for users during the renaming process.
2026-07-06 15:12:40 +05:30
DESKTOP-RTLN3BA\$punk
a64c8205fe feat: implement ensure_publication for zero_publication management
- Added the ensure_publication function to create and verify the zero_publication if it is missing, ensuring idempotency during database initialization.
- Integrated ensure_publication into the create_db_and_tables function to prevent zero-cache crash loops on startup.
- Introduced a self-check script to validate the ensure_publication functionality on a create_all-bootstrapped database.
- Updated various components to reflect the transition from search space to workspace, including adjustments in imports and routing paths.
2026-07-05 23:17:13 -07:00
DESKTOP-RTLN3BA\$punk
7562bc78ee feat: zero_publication on startup and init migration from search space to workspace. 2026-07-05 23:16:46 -07:00
DESKTOP-RTLN3BA\$punk
ab747e7a49 feat(agents): consolidate connectors under mcp_discovery; route web search through google_search
MCP consolidation:
- Route all MCP-capable connectors (Slack, Jira, Linear, ClickUp, Airtable,
  Notion, Confluence, interim Gmail/Calendar, custom MCP) through a single
  `mcp_discovery` subagent. Drive/OneDrive/Dropbox stay native to enrich the KB.
- Deprecate Discord/Teams/Luma: no viable official MCP server.

Google-only web search:
- Remove the main-agent `web_search` tool and the SearXNG platform service;
  all public web search now flows through the `google_search` subagent via task().
- Deprecate the Tavily/SearXNG/Linkup/Baidu search connectors (HTTP 410 on
  create, "Deprecated" badge); guide heavy users to the custom MCP connector.
- Remove web search from anonymous chat (pure Q&A).
- Tear SearXNG out of docker compose + install scripts; drop tavily-python
  and linkup-sdk deps and their config/env vars.

Fix:
- metrics._package_version() now swallows any metadata lookup failure. A
  malformed editable-install distribution with no `Version` field raised
  KeyError deep in importlib.metadata, and since it runs on every
  record_subagent_invoke_duration call it was crashing every task()
  delegation. Verified end-to-end against live GPT-5.4.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-04 21:06:04 -07:00
Anish Sarkar
f98d874185 fix(dashboard):use session aware loading 2026-06-24 03:59:19 +05:30
Rohan Verma
26a504f137
Merge pull request #1471 from CREDO23/improvement-code-organization
[Refactor] : Reorganize the agents and notifications modules
2026-06-05 16:06:51 -07:00
Anish Sarkar
f19f31e51c refactor(editor): remove truncation logic and related properties from editor content response 2026-06-05 15:32:26 +05:30
Anish Sarkar
640238e1af feat(editor): increase editor byte limit to 5MB and implement UTF-8 truncation for document content 2026-06-05 14:57:52 +05:30
Anish Sarkar
cf8a2d0759 feat(editor): implement viewer mode for large documents, switching between 'plate' and 'monaco' editors based on document size 2026-06-05 14:23:18 +05:30
CREDO23
f3484f5a24 test(e2e): dismiss new-user UI overlays in auth setup
The active "AI Automations" announcement (2026-05-31 -> 2026-07-15) renders
a blocking AnnouncementSpotlight dialog whose full-screen overlay intercepts
all clicks for the freshly-registered e2e user, breaking every UI-driven
journey (e.g. the file-upload upload button). Pre-seed the localStorage flags
that gate the new-user overlays before saving storageState:

- surfsense_announcements_state: mark all announcements read + toasted
  (sourced from announcements-data so future entries are covered).
- surfsense-tour-<userId>: suppress the OnboardingTour spotlight.

Restores the Journey suite (file-upload markdown + PDF round-trips now green).
2026-06-04 17:03:26 +02:00
Anish Sarkar
275e2c9e83 chore: fix linting 2026-05-12 04:00:04 +05:30
Anish Sarkar
650b691a39 chore: enhance E2E tests by adding synthetic global LLM config and updating environment variables for Google OAuth 2026-05-12 02:37:39 +05:30
Anish Sarkar
b247ff37df chore: implement test-only token mint endpoint and update E2E test authentication flow 2026-05-11 19:48:18 +05:30
Anish Sarkar
5344fa47e6 chore: update E2E test documentation for clarity and local setup instructions 2026-05-11 03:29:32 +05:30
Anish Sarkar
68f45335bc chore: implement E2E testing setup with Docker Compose and update workflow for backend and Redis services 2026-05-11 03:09:01 +05:30
Anish Sarkar
dbf575fbd0 chore: ran linting 2026-05-09 05:16:20 +05:30
Anish Sarkar
2f540ee065 refactor(tests): simplify logging messages and enhance manual upload journey tests 2026-05-09 05:10:05 +05:30
Anish Sarkar
66eebf614f test(e2e): cover connector PDF docling indexing in journeys 2026-05-09 05:04:00 +05:30
Anish Sarkar
fbfde74cdc test(e2e): route connector PDF canary responses in chat fake & add connector PDF canaries 2026-05-09 05:03:38 +05:30
Anish Sarkar
03ce8c1b81 test(e2e): cover manual file upload journey 2026-05-09 04:41:07 +05:30
Anish Sarkar
0846857b52 test(e2e): add pdf & markdown fixture for manual upload docling branch 2026-05-09 04:40:54 +05:30
Anish Sarkar
f9fe84fcfb test(e2e): add canary tokens for manual upload md and pdf fixtures 2026-05-09 04:40:17 +05:30
Anish Sarkar
f02f64725e test(e2e): cover ClickUp live MCP journey 2026-05-08 13:13:35 +05:30
Anish Sarkar
68e1d78d23 test(e2e): wire ClickUp Playwright fixtures 2026-05-08 13:13:08 +05:30
Anish Sarkar
4b347caefc test(e2e): cover native Dropbox indexing journey 2026-05-08 12:28:46 +05:30
Anish Sarkar
7303e3ebb3 test(e2e): wire Dropbox Playwright fixtures 2026-05-08 12:28:26 +05:30
Anish Sarkar
2d78dda487 test(e2e): add OneDrive connector Playwright journey 2026-05-08 03:48:58 +05:30
Anish Sarkar
029f2168b3 test(e2e): add Slack connector Playwright journey 2026-05-08 03:09:11 +05:30
Anish Sarkar
ef843fd82e refactor(tests): remove redundant visibility check for "Manage" button in connector journeys 2026-05-08 01:16:55 +05:30
Anish Sarkar
08fdd0a328 test(web): add Confluence connector journey 2026-05-08 01:10:33 +05:30
Anish Sarkar
e5889053c2 test(web): add Confluence OAuth fixture 2026-05-08 01:10:12 +05:30
Anish Sarkar
1bd7cad495 test(web): add Jira live-tool journey 2026-05-08 00:15:53 +05:30
Anish Sarkar
ddfbe0b611 test(web): add Jira OAuth fixture 2026-05-08 00:15:39 +05:30
Anish Sarkar
64ed33d25d test(web): add Linear live-tool journey 2026-05-07 23:16:04 +05:30
Anish Sarkar
a60ff02b93 test(web): add Linear OAuth fixture 2026-05-07 23:15:52 +05:30
Anish Sarkar
29692eb842 test(web): add Notion connector journey 2026-05-07 22:22:43 +05:30
Anish Sarkar
51db3546a9 test(web): add Notion OAuth fixture 2026-05-07 22:22:24 +05:30
Anish Sarkar
fcf5208ee6 test(web): add native Google Calendar live-tool journey 2026-05-07 04:42:57 +05:30
Anish Sarkar
d257e15e49 test(web): add native Google Calendar OAuth fixture 2026-05-07 04:42:45 +05:30
Anish Sarkar
9dafd38e19 test(web): add native Google Gmail live-tool journey 2026-05-07 04:23:20 +05:30
Anish Sarkar
92dd967bf1 test(web): add native Google Drive E2E journey 2026-05-07 03:59:58 +05:30
Anish Sarkar
0a62dc189c test(web): add Composio Calendar live-tool journey 2026-05-07 03:42:14 +05:30
Anish Sarkar
bc2dc21a75 test(backend): add Composio Calendar live-tool fakes 2026-05-07 03:41:47 +05:30
Anish Sarkar
a2af4be359 test(web): assert Gmail journey uses live tools only 2026-05-07 03:16:20 +05:30
Anish Sarkar
b01173fe07 test(web): add Composio Gmail E2E journey 2026-05-07 02:52:41 +05:30
Anish Sarkar
5bdf8a0c31 test(web): extend Composio Drive journey to assert chat retrieval 2026-05-06 21:36:47 +05:30
Anish Sarkar
dedccd5c1c test(web): add chat-stream helper, thread fixture, and smoke spec 2026-05-06 21:36:33 +05:30
Anish Sarkar
8536bac29a test(backend): enhance Drive file filtering and add unit tests for _drive_list_files 2026-05-06 17:58:58 +05:30
Anish Sarkar
074b06441f test(web): add Composio Drive E2E user journey 2026-05-06 17:22:37 +05:30