Skip to content

feat(admin-ui): wire dashboard + audit page to live data; clearer trace help - #177

Merged
officialCodeWork merged 1 commit into
mainfrom
feat/admin-ui-live-data
Jun 9, 2026
Merged

feat(admin-ui): wire dashboard + audit page to live data; clearer trace help#177
officialCodeWork merged 1 commit into
mainfrom
feat/admin-ui-live-data

Conversation

@officialCodeWork

Copy link
Copy Markdown
Owner

feat(admin-ui): live data on the dashboard + audit page

Extends the existing useLive live-vs-seed hybrid (Steps 3.10/3.11 — Corpora and
Webhooks were already live) to two more surfaces, so the console shows real
gateway data with graceful seed fallback + a "Demo data" badge when offline.

  • New fetchAudit() → live GET /v1/audit. The Audit page now renders
    live events behind useLive(..., { fallbackOnEmpty: true }) with a SourceBadge.
  • Dashboard pulls live corpora / webhooks / audit / feedback, adds a
    SystemStatusBanner and a live "recent activity" section.
  • Trace page: clarify that you paste the top-level request_id (a UUID) from
    the POST /v1/query response — not the nested trace_id — a recurring
    point 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 run34/34 (incl. audit + trace page tests) ✅
  • next build16/16 pages ✅

Note: org-wide GitHub Actions startup failures (billing) are unrelated to this
change; verified locally via the node_modules/.bin/* toolchain.

🤖 Generated with Claude Code

…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
officialCodeWork merged commit bb01fb3 into main Jun 9, 2026
13 of 18 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant