feat: Phase 6 — observability dashboard (React + Vite)#8
Merged
Conversation
A read-only dashboard over the gateway's admin trace API: request volume over time, error/cache/fallback rates, latency p95, token usage, provider/model/status distributions, a judge-score histogram, guardrail breakdown, a recent-requests table, and quality regressions — aggregated client-side from GET /traces + GET /regression. - New @sentinel/dashboard workspace (React 19 + Vite + strict TS). - Pure aggregation + API client unit-tested in Node (9 tests); the React UI is proven by a hermetic Playwright E2E (route-stubbed, no live gateway). - Tooling: scoped the gateway's strict coverage/typecheck gate, added a .tsx ESLint block, a dashboard tsconfig (DOM/JSX), and a CI e2e job. pnpm verify green (199 tests); pnpm test:e2e green (Chromium).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ROADMAP Phase 6 — the dashboard. A read-only React + Vite UI (
packages/dashboard) over the gateway's admin trace API.Visualizes, all from
GET /traces+GET /regression(admin-key gated, aggregated client-side):How it's built
@sentinel/dashboardworkspace: React 19 + Vite + strict TS, minimal deps (hand-rolled SVG/CSS charts — no chart library).aggregate.ts) + typed API client (api.ts) are unit-tested in Node (9 tests, run under the existing Vitest suite).packages/gateway(so the frontend coexists), added a.tsxESLint block, a dashboardtsconfig(DOM/JSX, Bundler resolution), and a separate CIe2ejob (installs Chromium, runspnpm test:e2e).Verify
Verified locally:
verifygreen (199 tests),test:e2egreen (Chromium).Notes
TraceRecordtype locally (small, deliberate) so the UI never depends on the gateway's build.