Files
meshcore-analyzer/public
AdamandAdam 01d2bbbbfd fix(account): keep Unclaim and Unlink disabled until the list reloads (#2440)
Follow-up to #2430, covering the two points from @efiten's re-review.

- **Unclaim and Unlink stay disabled until the list reloads.** Both
click handlers now return the list reload from the DELETE's `.then`
(`public/account.js`), so the button is re-enabled only after the
redrawn list has replaced it. Before, a click between the DELETE's
answer and the list GET's answer sent a second DELETE.
- **The dropped-from-node-list note shows in every state.**
`repeaterHealth` adds "no longer in the node list" whenever `r.inactive`
is set, so an inactive repeater that was heard recently or whose prefix
still relays is marked too, not only a silent one.

Tests (`tests/unit/test-user-management-ui.js`, 103/103):
- For both Unclaim and Unlink, the button stays disabled while the list
GET after the DELETE is pending, and a click in that window sends no
second DELETE.
- An inactive repeater carries the note when active, uncertain, stale
and never heard, and none of those rows links to a node page.

`tests/e2e/test-lint-network-calls.js` 47/47.

Co-authored-by: Adam <196335+anieto@users.noreply.github.com>
2026-11-21 22:26:28 +01:00
..