refactor(tui): status icons, clean STATUS column, relative time #62

Merged
lerko merged 1 commits from fix/tui-status-cleanup into main 2026-06-04 21:24:41 +00:00
Owner

Summary

  • STATUS column shows icon + clean state only: ▲ UP, ▼ DOWN, ◆ LATE, ◆ STALE, ◇ PAUSED, ◼ MAINT, ○ PENDING
  • Error classification (DNS/TLS/TMO) removed from STATUS — stays in NAME inline hint where it belongs
  • Detail panel Last Check shows relative time ("12s ago") instead of absolute timestamp
  • Extract shared fmtTimeAgo() to format.go, consolidate duplicate formatters in tab_alerts.go and tab_nodes.go

Phase 2 Backlog

Covers items #12a (status icons) and #12b (relative time).

Test Plan

  • go test ./... — all pass (updated format tests)
  • go build ./... — clean
  • go vet ./... — clean
  • Manual: verify status icons in dashboard table across all states
  • Manual: verify DOWN monitors show error detail in NAME column, not STATUS
  • Manual: verify detail panel Last Check shows relative time
## Summary - STATUS column shows icon + clean state only: ▲ UP, ▼ DOWN, ◆ LATE, ◆ STALE, ◇ PAUSED, ◼ MAINT, ○ PENDING - Error classification (DNS/TLS/TMO) removed from STATUS — stays in NAME inline hint where it belongs - Detail panel Last Check shows relative time ("12s ago") instead of absolute timestamp - Extract shared `fmtTimeAgo()` to format.go, consolidate duplicate formatters in tab_alerts.go and tab_nodes.go ## Phase 2 Backlog Covers items #12a (status icons) and #12b (relative time). ## Test Plan - [x] `go test ./...` — all pass (updated format tests) - [x] `go build ./...` — clean - [x] `go vet ./...` — clean - [x] Manual: verify status icons in dashboard table across all states - [ ] Manual: verify DOWN monitors show error detail in NAME column, not STATUS - [x] Manual: verify detail panel Last Check shows relative time
lerko added 1 commit 2026-06-04 21:12:22 +00:00
refactor(tui): status icons, clean STATUS column, relative time
CI / test (pull_request) Successful in 2m30s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 51s
fb709b34c5
- STATUS column shows icon + clean state only (▲ UP, ▼ DOWN, ◆ LATE,
  ◆ STALE, ◇ PAUSED, ◼ MAINT, ○ PENDING). Error classification
  (DNS/TLS/TMO) removed from STATUS — stays in NAME inline hint.
- Detail panel Last Check shows relative time ("12s ago") instead of
  absolute timestamp.
- Extract shared fmtTimeAgo() to format.go, consolidate duplicate
  formatters in tab_alerts.go and tab_nodes.go.
lerko merged commit fb709b34c5 into main 2026-06-04 21:24:41 +00:00
lerko deleted branch fix/tui-status-cleanup 2026-06-04 21:24:41 +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#62