feat(tui): column sort with indicator on monitors table
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).
This commit is contained in:
@@ -102,6 +102,13 @@ const (
|
||||
panelDetail = 2
|
||||
)
|
||||
|
||||
const (
|
||||
sortStatus = 0
|
||||
sortName = 1
|
||||
sortLatency = 2
|
||||
sortMax = 3
|
||||
)
|
||||
|
||||
type sessionState int
|
||||
|
||||
const (
|
||||
@@ -125,6 +132,8 @@ type Model struct {
|
||||
settingsSection int
|
||||
cursor int
|
||||
selectedID int
|
||||
sortColumn int
|
||||
sortAsc bool
|
||||
tableOffset int
|
||||
maxTableRows int
|
||||
termWidth int
|
||||
|
||||
Reference in New Issue
Block a user