refactor(tui): replace # column with colored status dot & adjust column visibility at narrower terminal widths #169

Merged
lerko merged 1 commits from refactor/status-dot-column into main 2026-07-01 03:43:48 +00:00
Owner

Summary

  • Drop # and STATUS columns — replaced by colored status dot as first column
  • Dot uses same icon/color as before (▲ green, ▼ red, ◼ purple, ◆ yellow, etc.)
  • Progressive column hiding based on available width instead of fixed breakpoints
  • Drop order: HISTORY → RETRIES → SSL → UPTIME → TYPE (core columns never drop)
  • With detail sidebar open, more columns stay visible at narrower terminal widths

Files changed

  • internal/tui/tab_sites.gocolNum/colStatuscolDot, progressive computeLayout(), columnDropOrder
  • internal/tui/format.go — new fmtStatusDot() function

Test plan

  • Colored dot as first column, no # or STATUS columns
  • Open detail sidebar — TYPE, LATENCY, UPTIME still visible at ~140 char width
  • Narrow terminal further — columns drop one at a time from right
  • At minimum width only dot, NAME, LAT remain
  • Sort by status still works (click dot column header area)
## Summary - Drop `#` and `STATUS` columns — replaced by colored status dot as first column - Dot uses same icon/color as before (▲ green, ▼ red, ◼ purple, ◆ yellow, etc.) - Progressive column hiding based on available width instead of fixed breakpoints - Drop order: HISTORY → RETRIES → SSL → UPTIME → TYPE (core columns never drop) - With detail sidebar open, more columns stay visible at narrower terminal widths ## Files changed - `internal/tui/tab_sites.go` — `colNum`/`colStatus` → `colDot`, progressive `computeLayout()`, `columnDropOrder` - `internal/tui/format.go` — new `fmtStatusDot()` function ## Test plan - [x] Colored dot as first column, no `#` or `STATUS` columns - [x] Open detail sidebar — TYPE, LATENCY, UPTIME still visible at ~140 char width - [x] Narrow terminal further — columns drop one at a time from right - [x] At minimum width only dot, NAME, LAT remain - [x] Sort by status still works (click dot column header area)
lerko added 1 commit 2026-07-01 03:39:09 +00:00
refactor(tui): replace # column with colored status dot
CI / test (pull_request) Successful in 2m7s
CI / lint (pull_request) Successful in 1m27s
CI / vulncheck (pull_request) Successful in 1m1s
faf7d36c64
Drop the row-number column and add a colored status dot as the first
column. Dot uses the same icon/color as the existing status indicators
(▲ green for up, ▼ red for down, ◼ purple for maint, etc). Matches
the maint strip visual pattern. Status text column retained for
explicit label.
lerko force-pushed refactor/status-dot-column from 24b0cb05ba to faf7d36c64 2026-07-01 03:39:09 +00:00 Compare
lerko changed title from refactor(tui): replace # column with colored status dot to refactor(tui): replace # column with colored status dot & adjust column visibility at narrower terminal widths 2026-07-01 03:40:54 +00:00
lerko merged commit faf7d36c64 into main 2026-07-01 03:43:48 +00:00
lerko deleted branch refactor/status-dot-column 2026-07-01 03:43:48 +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#169