mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-29 19:35:20 +02:00
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. |
||
|---|---|---|
| .. | ||
| use-agent-actions-query.ts | ||
| use-announcements.ts | ||
| use-api-key.ts | ||
| use-automation-runs.ts | ||
| use-automation.ts | ||
| use-automations.ts | ||
| use-chat-session-state.ts | ||
| use-comments-sync.ts | ||
| use-comments.ts | ||
| use-connectors-sync.ts | ||
| use-debounce.ts | ||
| use-debounced-value.ts | ||
| use-document-search.ts | ||
| use-documents-processing.ts | ||
| use-documents.ts | ||
| use-folder-sync.ts | ||
| use-global-loading.ts | ||
| use-google-drive-folders.ts | ||
| use-google-picker.ts | ||
| use-inbox.ts | ||
| use-logs.ts | ||
| use-long-press.ts | ||
| use-media-query.ts | ||
| use-messages-sync.ts | ||
| use-mobile.ts | ||
| use-mounted.ts | ||
| use-platform-shortcut.ts | ||
| use-platform.ts | ||
| use-public-chat-runtime.ts | ||
| use-public-chat.ts | ||
| use-search-source-connectors.ts | ||
| use-typewriter.ts | ||
| use-zero-document-type-counts.ts | ||