feat(admin): board ops and session notices with map preview #1060
All Vouch review confidence checks passed
Residual risk 0.32 = Change Risk (0.39) × (1 − Review Confidence (0.18)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 247 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 19% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.330
Real PR Conversation Timeline
1 comments
"Review active on #1060"
general
weight: 0.35
github-actions[bot]
What and why
Admins needed a way to soft-delete or restore board annotations and recompute thermometer shade from the confirmed hide without guessing, and a short in-map notice for players during live sessions. Both paths preview on the map before any write.
What changed
adminSessionBoardOpsandadminPublishSessionNoticecallables (admin auth + App Check) with unit testsMapFloatSurfaceon seeker, hider, observer, and admin mapsNon-goal: Coarse reset-board / end-session moderation stays as-is; no player activityLog spam for ops stamps.
Evidence
node --test functions/test/sessionBoardOps.test.mjs functions/test/publishSessionNotice.test.mjs(9 pass)npx vitest runfocused suites for board preview, notice composer, banners, AdminMapScreen, rail (41+ pass across runs)origin/main: 0 findings on tracked filesRisk
Where to look
functions/admin/sessionBoardOps.mjs- recompute + soft-deletefunctions/admin/publishSessionNotice.mjs- TTL + supersede transactionsrc/domain/admin/applyBoardOpPreview.ts- client previewsrc/routes/admin-map-screen/panels/ModPanel.tsx- Board + Notice UIsrc/hooks/session/useSessionNotices.ts+SessionOpsNoticeBanner.tsx- player floatfirestore.rulesnotices match