refactor(tui): status icons, clean STATUS column, relative time #62
Reference in New Issue
Block a user
Delete Branch "fix/tui-status-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
fmtTimeAgo()to format.go, consolidate duplicate formatters in tab_alerts.go and tab_nodes.goPhase 2 Backlog
Covers items #12a (status icons) and #12b (relative time).
Test Plan
go test ./...— all pass (updated format tests)go build ./...— cleango vet ./...— clean- 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.