Backend: GET /fleet/jobs/:id/events/stream emits a snapshot (seq > Last-Event-ID) then long-polls the append-only event log, closing after a bounded window so EventSource-style clients reconnect cleanly. Honors Last-Event-ID resume, keepalive comments, and a terminal error frame. Frontend: subscribeJobEvents uses fetch streaming (to send auth + product headers) with parseSseFrames, Last-Event-ID resume, reconnect backoff, and a fatal-on-error-frame fallback to polling. Job detail page subscribes live (deduped by seq), falls back to 4s polling on failure, and shows a Live badge; refresh() now merges events so a slow snapshot can't clobber streamed ones. Tests: +3 route (snapshot, resume cursor, append-after-connect), +5 client (parseSseFrames x2, subscribe deliver/error/resume/error-frame). fleet 150, web 222. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| docs | ||
| e2e | ||
| public | ||
| src | ||
| .bundlesizerc.json | ||
| .env.example | ||
| .env.local.example | ||
| .gitignore | ||
| .nvmrc | ||
| .prettierignore | ||
| Dockerfile | ||
| eslint.config.mjs | ||
| next.config.ts | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| postcss.config.mjs | ||
| README.md | ||
| tsconfig.json | ||
| vercel.json | ||
| vitest.config.ts | ||
Tracker Dashboard
Web dashboard for the Tracker Service — manage feature requests, bugs, and tasks. Built with Next.js + Tailwind CSS + React.
Port
3003 (configurable in package.json scripts)
Pages
| Route | Description |
|---|---|
/login |
Login via platform-service credentials |
/dashboard |
Overview with stats by type, status, priority |
/dashboard/items |
Items list with filtering, search, create, delete |
/dashboard/board |
Kanban board with drag-free status transitions |
/dashboard/items/[id] |
Item detail with edit, status/priority change, comments, votes |
API Proxy Routes
| Route | Proxies to |
|---|---|
/api/auth/login |
platform-service POST /api/auth/login |
/api/auth/me |
platform-service GET /api/auth/me |
/api/tracker/* |
tracker-service /api/* |
Setup
cp .env.local.example .env.local # fill in values
npm install
npm run dev # starts on port 3003
Environment Variables
See .env.local.example for required variables:
PLATFORM_API_URL— Platform service URL (defaulthttp://localhost:4003)JWT_SECRET— Shared JWT secretPRODUCT_ID— Product scope (e.g.,lysnrai,chronomind,nomgap)