summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 23:14:09 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 23:14:09 +0200
commit106fcb3fe959966dec19d1242ff87df644a43fad (patch)
tree5152e1d4dadbf991040d0db069c8d76db889364d /internal/tui/dashboard
parent013e46d7856a604d4890a880b8bbfb4b8c58202b (diff)
fix(tui): restore bubble modes and stabilize flame zoom lineage
Diffstat (limited to 'internal/tui/dashboard')
-rw-r--r--internal/tui/dashboard/model.go6
-rw-r--r--internal/tui/dashboard/model_test.go12
2 files changed, 15 insertions, 3 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go
index fb509b0..5949755 100644
--- a/internal/tui/dashboard/model.go
+++ b/internal/tui/dashboard/model.go
@@ -728,12 +728,12 @@ func (m *Model) setTabVizMode(tab Tab, mode tabVizMode) {
func (m Model) allowedVizModes(tab Tab) []tabVizMode {
switch tab {
case TabSyscalls:
- return []tabVizMode{tabVizModeTable, tabVizModeTreemap}
+ return []tabVizMode{tabVizModeTable, tabVizModeBubbles, tabVizModeTreemap}
case TabProcesses:
- return []tabVizMode{tabVizModeTable, tabVizModeTreemap}
+ return []tabVizMode{tabVizModeTable, tabVizModeBubbles, tabVizModeTreemap}
case TabFiles:
if m.filesDirGrouped {
- return []tabVizMode{tabVizModeTable, tabVizModeTreemap}
+ return []tabVizMode{tabVizModeTable, tabVizModeBubbles, tabVizModeTreemap}
}
return []tabVizMode{tabVizModeTable}
default:
diff --git a/internal/tui/dashboard/model_test.go b/internal/tui/dashboard/model_test.go
index 2e1ca17..8b03b2b 100644
--- a/internal/tui/dashboard/model_test.go
+++ b/internal/tui/dashboard/model_test.go
@@ -353,6 +353,12 @@ func TestVisualizationCycleForSyscallsTab(t *testing.T) {
next, _ := m.Update(tea.KeyPressMsg{Code: []rune{'v'}[0], Text: string([]rune{'v'})})
model := next.(Model)
+ if got := model.syscallsVizMode; got != tabVizModeBubbles {
+ t.Fatalf("expected syscalls bubbles mode enabled")
+ }
+
+ next, _ = model.Update(tea.KeyPressMsg{Code: []rune{'v'}[0], Text: string([]rune{'v'})})
+ model = next.(Model)
if got := model.syscallsVizMode; got != tabVizModeTreemap {
t.Fatalf("expected syscalls treemap mode enabled")
}
@@ -419,6 +425,12 @@ func TestFilesTreemapRequiresDirectoryMode(t *testing.T) {
next, _ = model.Update(tea.KeyPressMsg{Code: []rune{'v'}[0], Text: string([]rune{'v'})})
model = next.(Model)
+ if got := model.filesVizMode; got != tabVizModeBubbles {
+ t.Fatalf("expected files bubbles mode enabled in directory mode")
+ }
+
+ next, _ = model.Update(tea.KeyPressMsg{Code: []rune{'v'}[0], Text: string([]rune{'v'})})
+ model = next.(Model)
if got := model.filesVizMode; got != tabVizModeTreemap {
t.Fatalf("expected files treemap mode enabled in directory mode")
}