Repository navigation
feat: admin console for meeting records management - #60
Merged
Merged
Conversation
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.
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
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_PASSWORDconfig (paired, password ≥ 16 bytes, redacted inDebug)POST /api/admin/loginexchanges credentials for a 12h admin JWT. Admin tokens use a distinct claims shape (admmarker, noid) so the admin and user middlewares mutually reject each other's tokensGET /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 recordDELETE /api/admin/records/{meetingNo}— permanent deletion; first deletion capability for the append-only records storePOST /api/admin/records/{meetingNo}/minutes|cleanup— admin artifact generation for any record;artifact_responserefactored into authorize-then-generate_artifactso the user routes keep their exact owner/participant semantics/adminserves the SPA,/api/admin/*falls into the existingapi404 prefix group — nospa.rschange neededWebApp
/adminas a third top-level view (adminModeatom);join.vueno longer treats the path as a room idapito 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
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 teststests/admin.spec.ts(credential gating, sessionStorage persistence across reload, end-to-end seed→list→inspect→replay→delete, minutes "not enabled" hint)Follow-ups (not in this PR)