feat(tui): persist bottom panel preference across restarts

Save bottom_panel pref (logs/maint/none) to store on toggle.
Restore on startup via InitialModel, same pattern as detail_open.
This commit is contained in:
2026-07-01 21:02:45 -04:00
parent a32a443a4a
commit 14cec4283d
3 changed files with 28 additions and 1 deletions
+2
View File
@@ -662,6 +662,7 @@ func (m *Model) handleDashboardKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
m.focusedPanel = panelMaint
}
m.recalcLayout()
return m, m.saveBottomPanelPref()
case "l":
if m.bottomPanel == bottomLogs {
m.bottomPanel = bottomNone
@@ -671,6 +672,7 @@ func (m *Model) handleDashboardKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
m.focusedPanel = panelLogs
}
m.recalcLayout()
return m, m.saveBottomPanelPref()
case "up", "k":
if m.focusedPanel == panelDetail && m.detailOpen {
m.detailScrollOffset--