Files
united-workforce/packages/dashboard
xingyue a44f1f34a8 feat(dashboard): connect thread detail to SSE live stream
Add useSSE hook that connects to /api/threads/:id/live via EventSource.
Thread detail page now shows records in real-time with auto-scroll.

- useSSE hook: EventSource connection, record accumulation, auto-reconnect
  with exponential backoff, cleanup on unmount
- Thread detail: Live badge, SSE-first with fetch fallback, smooth scroll
- Records clear on reconnect (server replays full file)

Closes #131, testing verified per #133
Refs: #118
2026-05-08 17:52:10 +08:00
..
2026-05-08 14:48:43 +08:00
2026-05-08 14:48:43 +08:00

@uncaged/workflow-dashboard

Web dashboard for the Uncaged Workflow engine. Connects to the local uncaged-workflow serve API to display threads, workflows, and CAS data.

Development

# Start the local API server (in another terminal)
uncaged-workflow serve

# Start the dashboard dev server
bun run dev

Opens at http://localhost:5173. Vite proxies /api/* to localhost:7860.

Build

bun run build

Output goes to dist/ — static files ready for CF Pages or any host.