SurfSense/surfsense_web/atoms
CREDO23 b18a5fdca9 feat(web): automations contracts, API client, atoms and hooks
Foundation for the v1 automations UI. Mirrors backend Pydantic schemas
into Zod and wires the data layer end-to-end so feature surfaces can
be built on top.

contracts/types/automation.types.ts:
- AutomationStatus, TriggerType, RunStatus enums.
- AutomationDefinition envelope (PlanStep, TriggerSpec, Execution,
  Metadata, Inputs).
- AutomationCreate/Update/Detail/Summary/List + listParams.
- TriggerCreate/Update/Detail.
- RunSummary/Detail/List + runListParams.

lib/apis/automations-api.service.ts:
- list/get/create/update/delete automations.
- add/update/remove triggers (sub-resource).
- list/get runs (read-only sub-resource).
- safeParse on every write, 204-safe deletes.

atoms/automations/:
- automationsListAtom (active search space, first page).
- 6 mutation atoms with toast + cache invalidation.

hooks/:
- use-automations.ts wraps the list atom.
- use-automation.ts: parameterized detail by id.
- use-automation-runs.ts: useAutomationRuns + useAutomationRun.

lib/query-client/cache-keys.ts: automations namespace (list, detail,
runs, run) keyed by (id, limit, offset) where relevant.

Smoke: zod round-trip OK on backend-shape payloads (Automation,
AutomationCreate, Trigger, Run); typecheck clean for new files;
biome clean.
2026-05-28 00:55:57 +02:00
..
agent refactor: replace action log sheet with dialog component and update related references 2026-05-18 01:34:41 +05:30
agent-tools refactor: improve styling of MemberRow component and clean up agent tools imports 2026-05-19 17:41:48 +05:30
auth Refactor register page 2025-11-17 08:10:12 +02:00
automations feat(web): automations contracts, API client, atoms and hooks 2026-05-28 00:55:57 +02:00
chat chore: fix linting 2026-05-12 04:00:04 +05:30
chat-comments fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
citation refactor: citation viewer 2026-04-28 23:25:26 -07:00
connector-dialog chore: ran linting 2026-02-06 05:35:15 +05:30
connectors refactor: update connector mutation atoms to handle optional searchSpaceId and improve query invalidation logic 2026-02-06 04:54:29 +05:30
documents feat(filesystem): introduce support for local openable text file extensions and enhance folder expansion persistence in the UI 2026-04-28 01:12:15 +05:30
editor feat: improve document editor panel behavior 2026-05-20 02:02:59 +05:30
folder-sync feat: improve Obsidian connector visibility and desktop sync flow 2026-04-14 19:07:14 +09:30
image-gen-config fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
inbox feat: implement batch unread counts for notifications to reduce API calls and improve performance 2026-03-10 01:26:37 -07:00
invites fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
layout feat: add TeamPage component and remove TeamDialog for improved team management interface 2026-05-19 11:40:06 +05:30
logs fix(web): invalidate all log cache keys on log mutations 2026-05-13 20:59:08 +08:00
members refactor: extract shared hasPermission helper (MODSetter/SurfSense#1366) 2026-05-22 12:08:05 +08:00
new-llm-config fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
permissions feat: add cache keys and permissions query atom for RBAC 2025-12-16 09:07:33 +00:00
prompts fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
public-chat-snapshots fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
roles fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00
search-spaces feat: migrated to surfsense deep agent 2025-12-23 01:16:25 -08:00
tabs refactor(tabs): update default chat tab title for clarity; adjust TabBar styles for improved layout and hover effects 2026-05-03 23:30:36 +05:30
ui fix: remove message from loading UI 2026-01-27 15:28:30 +05:30
user feat: unified credits and its cost calculations 2026-05-02 14:34:23 -07:00
vision-llm-config fix(web): suppress global error toast on mutations that own their toast UX 2026-05-15 23:43:30 +08:00