Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

admin: the network-probes panel's only action fails silently, and its three refusals reach the operator as one string #1323

Backlog

Description

@chappie-daemon

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.

Activity

  1. added
    bug
    rewrite
    rust
    factory
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfactoryrewriterust

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions