Skip to content

feat: admin console for meeting records management - #60

Merged
a-wing merged 4 commits into
mainfrom
feat/admin-console
Nov 24, 2026
Merged

a-wing merged 4 commits into
mainfrom
feat/admin-console

Conversation

@a-wing

@a-wing a-wing commented Nov 24, 2026

Copy link
Copy Markdown
Member

What

Adds a built-in admin console for managing meeting records (会议纪要/录制回放 in WOOM's domain: archived meetings = participants + chat + transcript + LLM artifacts). Enabled by configuring ADMIN_USER + ADMIN_PASSWORD; the whole surface is 404 while unset.

Note: WOOM has no A/V recording today — "records" here are the existing text archives (chat + captions transcript + minutes). Real media recording would build on live777's recorder API and is a separate feature.

Backend

  • ADMIN_USER + ADMIN_PASSWORD config (paired, password ≥ 16 bytes, redacted in Debug)
  • POST /api/admin/login exchanges credentials for a 12h admin JWT. Admin tokens use a distinct claims shape (adm marker, no id) so the admin and user middlewares mutually reject each other's tokens
  • GET /api/admin/records — summaries of every archived meeting across all rooms (with the room's current topic joined in)
  • GET /api/admin/records/{meetingNo} — full record
  • DELETE /api/admin/records/{meetingNo} — permanent deletion; first deletion capability for the append-only records store
  • POST /api/admin/records/{meetingNo}/minutes|cleanup — admin artifact generation for any record; artifact_response refactored into authorize-then-generate_artifact so the user routes keep their exact owner/participant semantics
  • /admin serves the SPA, /api/admin/* falls into the existing api 404 prefix group — no spa.rs change needed

WebApp

  • /admin as a third top-level view (adminMode atom); join.vue no longer treats the path as a room id
  • Login page (token in sessionStorage only), records table with counters/artifact badges, expandable detail with Transcript / Chat / Minutes / Replay tabs, generate/regenerate actions, two-step delete
  • Replay tab: merged chat + transcript timeline with play/pause and 1x/2x/4x, fully client-side
  • Bug fix: added api to the service worker's cache bypass list — without it, GET /api/admin/* responses were cached and record lists went stale after deletions (caught by the e2e test)

Tests

  • Rust: 79 passed — new tests/admin.rs (login gating, token isolation both ways, list/detail/delete flow, admin minutes via MockMinutes incl. cache/force), store unit tests for deletion persistence, config validation tests
  • E2E: full suite 63 passed — new tests/admin.spec.ts (credential gating, sessionStorage persistence across reload, end-to-end seed→list→inspect→replay→delete, minutes "not enabled" hint)
  • Docs: README (config table + Admin console section), AGENTS.md

Follow-ups (not in this PR)

  • Real A/V recording/playback via live777's recorder API (fragmented MP4 + DASH; needs H264 codec pinning, storage, playback authz)
  • Admin token revocation list, multi-admin accounts (config-file credentials are the deliberate "for now")

ADMIN_USER + ADMIN_PASSWORD (paired, password >= 16 bytes) enable the
admin API under /api/admin/*; unset means the whole surface is 404.
POST /api/admin/login exchanges the credentials for a 12h admin JWT
whose distinct claims shape (adm marker, no id) is mutually rejected
with user JWTs by the two middlewares.

New endpoints: list all records as summaries (with the room's current
topic joined in), fetch a full record by meeting number, delete a
record permanently (the first deletion capability for the append-only
records store), and generate/regenerate minutes and polished
transcripts for any record through the shared artifact pipeline
(artifact_response split into authorize-then-generate_artifact).
/admin is a third top-level view gated by a new adminMode atom; join.vue
no longer treats the path as a room id. The console signs in against
/api/admin/login (token kept in sessionStorage), lists every archived
meeting with counters and artifact badges, and expands a record into
Transcript / Chat / Minutes / Replay tabs with generate-regenerate and
two-step delete actions. The replay tab merges chat and transcript onto
one timeline with play/pause and 1x/2x/4x speed, all client-side.

Also add the /api prefix to the service worker's cache bypass list:
without it, GET /api/admin/* responses were cached by the shell SW and
record lists went stale after deletions.
@a-wing a-wing added this to the v0.1.0 milestone Nov 24, 2026
@a-wing a-wing added enhancement New feature or request mod::webapp In browser labels Nov 24, 2026
@a-wing
a-wing merged commit c03b817 into main Nov 24, 2026
14 checks passed
@a-wing
a-wing deleted the feat/admin-console branch November 24, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request mod::webapp In browser

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant