feat(tui): mouse click for settings sections, column sort, logs panel
CI / test (pull_request) Successful in 1m44s
CI / lint (pull_request) Successful in 1m17s
CI / vulncheck (pull_request) Successful in 56s

- Click Alerts/Nodes/Users sub-tabs in settings to switch sections
- Click STATUS/NAME/LATENCY column headers to sort (click again
  to reverse direction)
- Logs panel show/hide: [l] toggles sidebar visibility, click
  focused panel to hide. Monitors expand to full width when hidden.
- Logs full-screen: Enter when focused on logs opens scrollable
  full-screen log view with severity tags, filter toggle [f],
  and live updates
This commit was merged in pull request #159.
This commit is contained in:
2026-06-28 11:34:34 -04:00
parent ab1194f74d
commit 18e2d60210
6 changed files with 120 additions and 4 deletions
+6 -2
View File
@@ -1,6 +1,8 @@
package tui
import (
"fmt"
"github.com/charmbracelet/lipgloss"
)
@@ -18,11 +20,13 @@ func (m Model) viewSettingsTab() string {
var tabs []string
for i, name := range sections {
var rendered string
if i == m.settingsSection {
tabs = append(tabs, m.st.activeTab.Render(name))
rendered = m.st.activeTab.Render(name)
} else {
tabs = append(tabs, m.st.inactiveTab.Render(name))
rendered = m.st.inactiveTab.Render(name)
}
tabs = append(tabs, m.zones.Mark(fmt.Sprintf("section-%d", i), rendered))
}
header := lipgloss.JoinHorizontal(lipgloss.Top, tabs...)