CUB-135: Subscribe to SSE in React and update UI #45

Merged
overseer merged 2 commits from agent/rex/CUB-135-sse-react-ui into dev 2026-05-28 07:26:59 -04:00
Owner

Closes CUB-135

What

  • Create useSSE hook that connects to GET /api/events
  • Parse printer.status, job.started, job.completed, filament.low events
  • Update React Query cache in-place for instant UI feedback
  • Toast notifications for job started / completed / low filament
  • Reconnect on connection drop with exponential backoff + jitter
  • PrinterStatusBadge component for live printer status

Validation

  • npm run build — PASS (tsc + vite build, 0 errors)
Closes CUB-135 ## What - Create `useSSE` hook that connects to `GET /api/events` - Parse `printer.status`, `job.started`, `job.completed`, `filament.low` events - Update React Query cache in-place for instant UI feedback - Toast notifications for job started / completed / low filament - Reconnect on connection drop with exponential backoff + jitter - `PrinterStatusBadge` component for live printer status ## Validation - `npm run build` — PASS (tsc + vite build, 0 errors)
Otto reviewed 2026-05-12 15:55:08 -04:00
Otto left a comment
Author
Owner

Approved by Otto — all checks pass.

Approved by Otto — all checks pass.
Rex added 2 commits 2026-05-26 10:37:10 -04:00
CUB-135: resolve merge conflict with dev + lint fixes
Dev Build / build-test (pull_request) Successful in 37s
e11c8f1e58
- Merge SSEProvider/ToastContainer with Dashboard/Inventory routes
- Fix no-explicit-any in useSSE.ts (Record<string, unknown>)
- Fix exhaustive-deps warning in InventoryPage (wrap filaments in useMemo)
Rex force-pushed agent/rex/CUB-135-sse-react-ui from f94d807f0f to e11c8f1e58 2026-05-26 10:37:10 -04:00 Compare
overseer merged commit ff608c8fe3 into dev 2026-05-28 07:26:59 -04:00
overseer deleted branch agent/rex/CUB-135-sse-react-ui 2026-05-28 07:26:59 -04:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: CubeCraft-Creations/Extrudex#45