feat(tui): column sort and alert failure badge #148

Merged
lerko merged 3 commits from feat/sort-and-badge into main 2026-06-25 00:00:33 +00:00
Owner

Summary

Column sort (#12c):

  • < / > cycle sort column: Status, Name, Latency
  • r reverses sort direction
  • / indicator on the sorted column header
  • Applies to both ungrouped monitors and group children
  • Groups always float to top
  • Default: Status descending (DOWN first)

Alert failure badge (#12e):

  • Settings tab warn badge now includes failed alert channels
  • Alerts where last send failed (LastSendOK=false) count toward the red badge
  • Combined with offline node count — surfaces broken channels at a glance

Test plan

  • < / > cycles through Status▼, Name▼, Latency▼
  • r reverses to ▲ and table reorders
  • Sort applies to group children (not just top-level monitors)
  • Groups stay at top regardless of sort
  • Settings tab badge turns red when an alert channel has a failed send
  • Badge clears when alert health recovers
## Summary **Column sort (#12c):** - `<` / `>` cycle sort column: Status, Name, Latency - `r` reverses sort direction - `▲` / `▼` indicator on the sorted column header - Applies to both ungrouped monitors and group children - Groups always float to top - Default: Status descending (DOWN first) **Alert failure badge (#12e):** - Settings tab warn badge now includes failed alert channels - Alerts where last send failed (LastSendOK=false) count toward the red badge - Combined with offline node count — surfaces broken channels at a glance ## Test plan - [x] `<` / `>` cycles through Status▼, Name▼, Latency▼ - [x] `r` reverses to ▲ and table reorders - [x] Sort applies to group children (not just top-level monitors) - [x] Groups stay at top regardless of sort - [x] Settings tab badge turns red when an alert channel has a failed send - [x] Badge clears when alert health recovers
lerko added 3 commits 2026-06-24 23:46:18 +00:00
Press < / > to cycle sort column (Status, Name, Latency). Press r to
reverse direction. Sorted column shows ▲/▼ arrow in the header.

Groups always float to top. Sort applies to ungrouped monitors and
group children independently. Default: Status descending (DOWN first).
Settings tab warn count now includes failed alert channels — alerts
where the last send failed (LastSendOK=false, LastSendAt not zero).
Shows as a red badge number alongside offline node count. Surfaces
broken alert channels without navigating to Settings.
fix(tui): apply sort to group children, not just ungrouped monitors
CI / test (pull_request) Successful in 2m4s
CI / lint (pull_request) Successful in 1m17s
CI / vulncheck (pull_request) Successful in 56s
6799163cd4
lerko merged commit 6799163cd4 into main 2026-06-25 00:00:33 +00:00
lerko deleted branch feat/sort-and-badge 2026-06-25 00:00:33 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lerkolabs/uptop#148