admin UI: harden localInputToRFC3339; reset per-alert state on navigation #123
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 181 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · 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.311
Real PR Conversation Timeline
1 comments
"Review active on #123"
general
weight: 0.35
aaronbrethorst
Fixes #122.
1.
localInputToRFC3339hardening —web/admin/src/lib/datetime.tsTno longer throws. Previouslyt.split(':')onundefined. MissingT/time part → midnight, noTypeError.:00. Previously${t}:00appended:00to atthat could already haveSS, producingYYYY-MM-DDTHH:MM:SS:00±HH:MM. Now parseHH:MM+ optional:SS/fraction, emitYYYY-MM-DDTHH:MM:SS±HH:MM, append:00seconds only when none given. Seconds included inDate.UTC.instantToLocalInputHH:MMpath +toInstantunaffected.2. Per-alert
$statereset on navigation —web/admin/src/routes/regions/[region]/alerts/[id]/+page.svelteOnly
<AlertForm>was inside{#key};actionError,tLanguage,tHeader,tDescription,tError,pushError,pushAudience(component-level$state) persisted across/alerts/[id].$effecttrackingalert.idresets them on navigation. (Not nested in{#key}—{#key}re-creates contents, not script-level$state.)Tests
datetime.test.ts: no-T no-throw→midnight; seconds preserved; no...SS:00±;SS:00±HH:MMinput; existing.edit-page.svelte.test.ts: navigating to a differentalert.idclears half-typed translation.npm run check,eslint,prettier,vitest(150) green. Fullmake web-checkpending.