Files
HaytandWill Pfleger 4c169b0743 fix(desktop): probe role via /probe, refresh lists, gate kick, toast errors
The desktop admin console had four e2e defects.

Probe discarded role/source: it hit /reports and hardcoded role: None
behind a comment referencing X-Admin-Role headers the relay never sends,
so the Staffing tab and role badges were unreachable for operators. Probe
now targets the signed /probe endpoint and parses the ProbeResponse
contract, carrying the relay-resolved role/source through.

Reports and Feedback lists served stale rows after a detail-view mutation
until a tab switch forced a remount. Each tab now bumps a list generation
fence on mutation completion so back-nav refetches.

Kick was offered on every event report, but the relay 400s it when the
report carries no channel. It is now suppressed when channelId is null.
Mutation errors rendered raw admin API error JSON inline; they now route
through toast.error with the parsed relay message.

The seed script inserted no channel_id on any report, so the
failed-enforcement -> Cancel & reopen path was unreachable locally. It now
seeds a channel and an event report carrying it.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-08-13 14:22:50 -04:00
..
2026-07-27 14:18:24 -04:00