fix(tui): cohesion polish across all views
- Hide nonsense latency/histogram data for group monitors in detail view - Add missing status colors to fmtStatusWord (LATE, STALE, PENDING, etc) - Wrap Maint and Settings tabs in titled panels to match Monitors tab - Standardize headers: breadcrumb style (History > Name, SLA > Name) - Standardize footer key order: actions first, [q/Esc] Back last - Add # column to Nodes table for consistency with all other tables - Use titleStyle for section headers (CONFIGURATION, DAILY BREAKDOWN) - Fix panel focus not switching when clicking monitor rows from logs panel
This commit was merged in pull request #161.
This commit is contained in:
@@ -14,13 +14,13 @@ func (m Model) viewNodesTab() string {
|
||||
var headers []string
|
||||
var widths []int
|
||||
if m.isWide() {
|
||||
headers = []string{"NAME", "REGION", "LAST SEEN", "VERSION", "STATUS"}
|
||||
widths = []int{24, 14, 16, 12, 10}
|
||||
headers = []string{"#", "NAME", "REGION", "LAST SEEN", "VERSION", "STATUS"}
|
||||
widths = []int{4, 24, 14, 16, 12, 10}
|
||||
} else {
|
||||
headers = []string{"NAME", "REGION", "SEEN", "VER", "STATUS"}
|
||||
widths = []int{16, 10, 10, 8, 8}
|
||||
headers = []string{"#", "NAME", "REGION", "SEEN", "VER", "STATUS"}
|
||||
widths = []int{4, 16, 10, 10, 8, 8}
|
||||
}
|
||||
nameW := widths[0]
|
||||
nameW := widths[1]
|
||||
|
||||
tbl := m.renderTable(
|
||||
headers,
|
||||
@@ -43,7 +43,7 @@ func (m Model) viewNodesTab() string {
|
||||
version = m.st.subtleStyle.Render("—")
|
||||
}
|
||||
status := m.fmtNodeStatus(node.LastSeen)
|
||||
rows = append(rows, []string{name, region, lastSeen, version, status})
|
||||
rows = append(rows, []string{fmt.Sprintf("%d", i+1), name, region, lastSeen, version, status})
|
||||
}
|
||||
return rows
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user