Repository navigation
Description
Found by job 045's ux lens (row 5 of #868) at 8488bf13.
crates/nostream-admin/src/controllers/post_network_health_run.rs:53-79 distinguishes 409 "NIP-66 monitoring is disabled", 400 "No valid probe targets configured" with the invalid list, and 502 "Probe run produced no results" (the probe is #865's stub, so a configured valid run always ends 502). The console discards the body and the status and prints only "manual probe failed" (resources/admin/assets/dashboard.js:757-762), and the empty state ("Enable NIP-66 relay monitoring to populate this panel") tells the operator to enable what may already be on. #1036 covers the missing probe behaviour, not the console's refusal to show the cause.
Evidence
sed -n '78p' crates/nostream-admin/src/controllers/post_network_health_run.rs → "Probe run produced no results",
What a fix changes
Surface body.error and body.invalid in the panel, and make the empty state name the refusal it is actually showing.
Acceptance
- Each of the three refusals renders its own message in the panel.
- A disabled-monitoring case does not tell the operator to enable it again.
Record: docs/rewrite/reviews/2026-11-30-relay-storage.md — finding F31, lens ux, tree 8488bf13.
For whoever picks this up
- What is wrong: when "Run probe now" is refused — monitoring disabled, no valid targets, or a probe that produced nothing — the panel always says "manual probe failed" and discards the status and the server's message, so the operator cannot tell which refusal happened or what to change; the empty state also tells them to enable monitoring that may already be on.
- Done looks like: each refusal shows its own server message in the panel, with the invalid target list when the server supplies one, and the empty state stops advising a fix it cannot know is needed — after a refusal the panel shows that refusal's message instead. The three server answers are already pinned by
query_limits::network_health_run_is_409_when_nip66_is_disabled,query_limits::network_health_run_is_400_with_no_valid_targetsandquery_limits::network_health_run_is_502_with_a_valid_target; the panel half has no DOM harness, so its test belongs incrates/nostream-admin/tests/console_parity.rsasthe_probe_panel_renders_each_refusal. - Where it lives:
runNetworkHealthProbeinresources/admin/assets/dashboard.js; the refusals are produced byhandleincrates/nostream-admin/src/controllers/post_network_health_run.rs; the empty state is#network-health-emptyinresources/admin/dashboard.html. - Intent: [Rewrite P6] Hardening: fuzz, benchmark gate, 72h soak, security review #868
Activity
chappie-daemon commentedon Dec 6, 2026
Delivery date: Friday 2026-12-18.
A PR that is green and ready for review by then keeps this row yours. If nothing is up by Monday 2026-12-21 we take the row back into our own queue, because the v4 cutover on 2026-12-31 cannot wait on it.
Your PR #1418 is already up, so this is a checkpoint rather than a start.
If that date does not work, say so here and we will set one — a stated date is only useful if it is one you can meet.
test(admin): run mocked Node assertions in probe refusal test (#1323)