feat(admin-ui): wire dashboard + audit page to live data; clearer trace help - #177
Merged
Conversation
…ce help Extend the existing useLive live-vs-seed hybrid (Steps 3.10/3.11) to two more surfaces: - New fetchAudit() reads live GET /v1/audit; the Audit page now renders live events (with a SourceBadge) and falls back to seed data when empty/offline. - The dashboard pulls live corpora / webhooks / audit / feedback, with a SystemStatusBanner and a live "recent activity" section. - Trace page: clarify that you paste the top-level request_id (a UUID), not the nested trace_id — a recurring point of confusion. - overlays.tsx: supporting Dropdown/Sheet refinements used by the pages. Verified (apps/admin-ui): tsc --noEmit, next lint (0 warnings), vitest (34/34), next build (16/16 pages). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
officialCodeWork
pushed a commit
that referenced
this pull request
Jun 9, 2026
… doc tests (Step 7.5) Publish the docs as a Docusaurus 3 site that sources the repo docs/ tree in place (single source of truth, no copy step; markdown.format 'detect' so the hand-written .md renders as CommonMark). - website/: Docusaurus scaffold (config, sidebars, theme, tsconfig). - scripts/gen_api_reference.py: renders dist/openapi.json -> docs/reference/ rest-api.md (43 paths). Drift-gated like dist/schemas + the proto stubs. - tests/docs/: asserts every ragctl subcommand and /v1 path in a quickstart is real (registered CLI command / OpenAPI path). No services needed. - .github/workflows/docs.yml: api-ref drift, doc tests, codespell, lychee offline link-check, npm run build. - task docs:api / docs:dev / docs:build. Deferred: Algolia search, versioned docs, the deploy workflow. Also records the backlog PR-history rows for #175-#177. ADR-0047. Verified locally: ruff, ruff format, tests/docs (3), gen_api_reference run, 208-link relative check. (npm site build is a CI step.) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
feat(admin-ui): live data on the dashboard + audit page
Extends the existing
useLivelive-vs-seed hybrid (Steps 3.10/3.11 — Corpora andWebhooks were already live) to two more surfaces, so the console shows real
gateway data with graceful seed fallback + a "Demo data" badge when offline.
fetchAudit()→ liveGET /v1/audit. The Audit page now renderslive events behind
useLive(..., { fallbackOnEmpty: true })with aSourceBadge.SystemStatusBannerand a live "recent activity" section.request_id(a UUID) fromthe
POST /v1/queryresponse — not the nestedtrace_id— a recurringpoint of confusion (placeholder + help text updated).
overlays.tsx: supporting Dropdown/Sheet refinements used by these pages.Verification (local,
apps/admin-ui)tsc --noEmit✅ ·next lint(0 warnings) ✅vitest run— 34/34 (incl. audit + trace page tests) ✅next build— 16/16 pages ✅🤖 Generated with Claude Code