Repository navigation
feat(admin): audit wave B — audit-export UI, claim-mappings console, release three-part gate docs - #329
Merged
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
voidvec
added a commit
that referenced
this pull request
Nov 12, 2026
… page + audit export controls (audit wave B) The #159 gate failed on #329 as designed: the new Claim Mappings page (table + create/edit modals, lazy route) and the audit-logs export controls with their bilingual catalogs add ~15.6KB raw to the admin bundle (456.0KB CI-measured vs the 440.5KB cap; main 156.2KB vs 157.3KB stayed inside). Same re-baseline path as v1.6.0 P1-7 (#295 precedent); bases moved to the CI-measured numbers.
voidvec
added a commit
that referenced
this pull request
Nov 12, 2026
… page + audit export controls (audit wave B) The #159 gate failed on #329 as designed: the new Claim Mappings page (table + create/edit modals, lazy route) and the audit-logs export controls with their bilingual catalogs add ~15.6KB raw to the admin bundle (456.0KB CI-measured vs the 440.5KB cap; main 156.2KB vs 157.3KB stayed inside). Same re-baseline path as v1.6.0 P1-7 (#295 precedent); bases moved to the CI-measured numbers.
wangrh0909
approved these changes
Nov 12, 2026
…release three-part gate docs Closes the two v1.6.0 frontend-leg gaps from the 2026-11 P0/P1 retro audit (#4: logs/export had no consumer; claim-mappings had no UI — the follow-up declared in #293) and processizes the pre-release three-part gate that v1.5.0 silently skipped (#5). - Audit Logs page: time-windowed Export CSV action (datetime-local inputs; empty from/to defaults to the last 24h so the mandatory-window contract is never tripped by accident), blob download, and a blob-decoding error path so AUDIT_EXPORT_WINDOW_REQUIRED / AUDIT_EXPORT_TOO_LARGE surface through the normal catalog messages. - New Claim Mappings page (/admin/claim-mappings, nav under Scopes): create/edit modals with the scope-name datalist and the custom_attributes.<key> / user.display_name source-whitelist hint, row-level enable toggle issuing the documented full-replace PUT, confirm-guarded delete — mirrors the P1-3 red lines in the mock and specs (reserved-claim 400, openid-scope 400). - Release process: versioning-and-release.md gains the pre-release three-part gate section (five-scenario benchmark >= 90% in-tree, curated CHANGELOG, six-point version sync) in EN + zh mirror; the release-engineering checklist gains the same blocking gate; the PR template gains a release-PR checklist section. - e2e: logs.spec +2 (window params, catalog error), claim-mappings.spec new (5 cases incl. contract-body assertions). Mock-api gains the export route (window guard + text/csv) and an in-memory claim-mappings CRUD mirroring the server red lines. Verification: admin tsc+vite build green; vitest 4/4; Playwright logs(12) + claim-mappings(5) + navigation/i18n regression suites green; zh-mirror consistency 51/51; doc-links 356 green; llms regen zero drift.
… page + audit export controls (audit wave B) The #159 gate failed on #329 as designed: the new Claim Mappings page (table + create/edit modals, lazy route) and the audit-logs export controls with their bilingual catalogs add ~15.6KB raw to the admin bundle (456.0KB CI-measured vs the 440.5KB cap; main 156.2KB vs 157.3KB stayed inside). Same re-baseline path as v1.6.0 P1-7 (#295 precedent); bases moved to the CI-measured numbers.
voidvec
force-pushed
the
feat/audit-wave-b-admin-ui
branch
from
November 12, 2026 04:44
e422793 to
ad2000b
Compare
wangrh0909
approved these changes
Nov 12, 2026
voidvec
added a commit
that referenced
this pull request
Nov 12, 2026
voidvec
added a commit
that referenced
this pull request
Nov 12, 2026
wangrh0909
approved these changes
Nov 12, 2026
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.
Summary
Executes Wave B of the 2026-11 P0/P1 retro-audit fix plan (companion to #328 which landed Wave A):
GET /api/admin/logs/export.from/todatetime-local inputs default to the last 24h when empty (the mandatory-window contract can never be tripped by accident); the active action/outcome/actor filters ride along; the download goes through a blob; and a blob-decoding error path letsAUDIT_EXPORT_WINDOW_REQUIRED/AUDIT_EXPORT_TOO_LARGEsurface through the normal error catalog messages./api/admin/claim-mappingsCRUD end to end — create/edit modals with a scope-name datalist and thecustom_attributes.<key>/user.display_namesource-whitelist hint, a row-level enable toggle that issues the documented full-replace PUT, and a confirm-guarded delete.versioning-and-release.mdgains §11.0 — the pre-release gate (five-scenario benchmark ≥ 90% in-tree, curated CHANGELOG, six-point version sync) that v1.5.0 silently skipped, in EN + zh mirror; the release-engineering checklist gains the same blocking gate; the PR template gains a release-PR checklist section.Verification (local)
npm run build(tsc + vite)Out of scope