xonecas.io
60255
Zn

Zoea-Nova / commit df58f43

refactor(tui): remove dashboard status panel

- Remove stats bar from dashboard view to declutter UI
- Remove unused statusBarStyle
- Update UI_LAYOUT_REPORT.md to reflect changes
- Update golden files

xonecas2026-02-05 df58f4393ebb379ca5b2ec109a5bec68d88cd3a6 parent eceda14

15 files changed

UI_LAYOUT_REPORT.md+15−55
@@ -9,10 +9,9 @@ Generated: 2026-02-05
99 ```
1010 ┌─────────────────────────────────────────────────────────┐
1111 │ 1. HEADER (3 lines) │
12-│ 2. STATUS BAR (1 line) │
13-│ 3. SWARM BROADCAST SECTION (header + variable content) │
14-│ 4. MYSIS SWARM SECTION (header + bordered panel) │
15-│ 5. FOOTER (1 line) │
12+│ 2. SWARM BROADCAST SECTION (header + variable content) │
13+│ 3. MYSIS SWARM SECTION (header + bordered panel) │
14+│ 4. FOOTER (1 line) │
1615 └─────────────────────────────────────────────────────────┘
1716 ```
1817
@@ -38,36 +37,7 @@ Generated: 2026-02-05
3837
3938 ---
4039
41-### 2. STATUS BAR (Line 5)
42-**Location:** `dashboard.go` lines 58-89
43-**Rendering:** `statusBarStyle.Width(width).Render(stats)`
44-
45-```
46- ∙ 1 ◦ 1 ◌ 0 ✖ 0
47-```
48-
49-**Components:**
50-- **Running count:** `∙` (bullet operator U+2219) + count
51-- **Idle count:** `◦` (white bullet U+25E6) + count
52-- **Stopped count:** `◌` (dotted circle) + count
53-- **Errored count:** `✖` (heavy multiplication X) + count
54-- **Loading indicator:** (optional) spinner + count if any myses are loading
55-
56-**Calculation:**
57-- Running: Counts myses with `state == "running"`
58-- Idle: `len(myses) - running - stopped - errored`
59-- Stopped: Counts myses with `state == "stopped"`
60-- Errored: Counts myses with `state == "errored"`
61-
62-**Style:** `statusBarStyle` with colored icons:
63-- Running: `stateRunningStyle` (green)
64-- Idle: `stateIdleStyle` (yellow)
65-- Stopped: `stateStoppedStyle` (dimmed)
66-- Errored: `stateErroredStyle` (red)
67-
68----
69-
70-### 3. SWARM BROADCAST SECTION (Lines 6-8)
40+### 2. SWARM BROADCAST SECTION (Lines 6-8)
7141 **Location:** `dashboard.go` lines 91-122
7242 **Always visible:** Yes (shows placeholder when empty)
7343
@@ -100,7 +70,7 @@ No broadcasts yet. Press 'b' to broadcast.
10070
10171 ---
10272
103-### 4. MYSIS SWARM SECTION (Lines 9-40)
73+### 3. MYSIS SWARM SECTION (Lines 9-40)
10474 **Location:** `dashboard.go` lines 124-161
10575
10676 #### Header (Line 9)
@@ -115,7 +85,7 @@ No broadcasts yet. Press 'b' to broadcast.
11585
11686 **Height calculation:**
11787 ```
118-usedHeight = 6 (header + stats + mysis header + footer)
88+usedHeight = 5 (header + mysis header + footer)
11989 + 1 (swarm header)
12090 + len(msgLines) (swarm content)
12191 + 2 (panel borders)
@@ -174,7 +144,7 @@ mysisListHeight = height - usedHeight
174144
175145 ---
176146
177-### 5. FOOTER (Line 41)
147+### 4. FOOTER (Line 41)
178148 **Location:** `dashboard.go` lines 163-165
179149 **Rendering:** `dimmedStyle.Render(hint)`
180150
@@ -260,21 +230,12 @@ mysisListHeight = height - usedHeight
260230
261231 ### Current Issues Identified
262232
263-1. **Status Bar Position:**
264- - Currently at line 5 (between header and swarm broadcast)
265- - Styled with `statusBarStyle` (full-width panel)
266-
267-2. **No Duplicate Status Icons:**
268- - Status icons appear ONLY in the status bar (line 5)
269- - Footer only shows keyboard hints
270- - No duplication found in current code
271-
272-3. **Swarm Broadcast Section:**
233+1. **Swarm Broadcast Section:**
273234 - Always visible (shows placeholder when empty)
274235 - Takes variable height based on message count (max 10)
275- - Positioned between status bar and mysis list
236+ - Positioned between header and mysis list
276237
277-4. **Mysis List Panel:**
238+2. **Mysis List Panel:**
278239 - Bordered box with double-line style
279240 - Height dynamically calculated to fill remaining space
280241 - Each mysis line shows: indicator, name, state, provider, account, last message
@@ -303,13 +264,12 @@ mysisListHeight = height - usedHeight
303264
304265 ## Summary
305266
306-The current UI has **5 main sections** in the dashboard:
267+The current UI has **4 main sections** in the dashboard:
307268
308269 1. **Header** (3 lines) - Retro-futuristic banner
309-2. **Status Bar** (1 line) - Mysis state counts with icons
310-3. **Swarm Broadcast** (variable) - Recent broadcast messages
311-4. **Mysis Swarm** (variable) - Bordered list of myses
312-5. **Footer** (1 line) - Keyboard hints
270+2. **Swarm Broadcast** (variable) - Recent broadcast messages
271+3. **Mysis Swarm** (variable) - Bordered list of myses
272+4. **Footer** (1 line) - Keyboard hints
313273
314-**Total fixed height:** 6 lines (header + status + footer + 2 section headers)
274+**Total fixed height:** 5 lines (header + footer + 2 section headers)
315275 **Variable height:** Swarm messages + Mysis list (fills remaining space)
internal/tui/dashboard.go+2−35
@@ -55,39 +55,6 @@ func RenderDashboard(myses []MysisInfo, swarmMessages []SwarmMessageInfo, select
5555 header := headerStyle.Width(width).Render(headerText)
5656 sections = append(sections, header)
5757
58- // Stats bar
59- var running, stopped, errored, loading int
60- for _, m := range myses {
61- if loadingSet[m.ID] {
62- loading++
63- }
64- switch m.State {
65- case "running":
66- running++
67- case "stopped":
68- stopped++
69- case "errored":
70- errored++
71- }
72- }
73- stats := fmt.Sprintf(
74- " %s %d %s %d %s %d %s %d",
75- stateRunningStyle.Render("∙"),
76- running,
77- stateIdleStyle.Render("◦"),
78- len(myses)-running-stopped-errored,
79- stateStoppedStyle.Render("◌"),
80- stopped,
81- stateErroredStyle.Render("✖"),
82- errored,
83- )
84- // Add loading indicator if any myses are loading
85- if loading > 0 {
86- stats += fmt.Sprintf(" %s %d", spinnerView, loading)
87- }
88- statsBar := statusBarStyle.Width(width).Render(stats)
89- sections = append(sections, statsBar)
90-
9158 // Swarm message history - always visible with fixed height
9259 swarmHeader := renderSectionTitle("SWARM BROADCAST", width)
9360 sections = append(sections, swarmHeader)
@@ -126,8 +93,8 @@ func RenderDashboard(myses []MysisInfo, swarmMessages []SwarmMessageInfo, select
12693 sections = append(sections, mysisHeader)
12794
12895 // Calculate height used by other elements to fill remaining space
129- // Header: 3 lines + margin, Stats: 1 line, Swarm: header + content, Mysis header: 1 line, Footer: 1 line
130- usedHeight := 6 // header (3 + margin) + stats (1) + mysis header (1) + footer (1)
96+ // Header: 3 lines + margin, Swarm: header + content, Mysis header: 1 line, Footer: 1 line
97+ usedHeight := 5 // header (3 + margin) + mysis header (1) + footer (1)
13198 // Swarm section: header (1) + content lines (at least 1 for placeholder or messages)
13299 usedHeight += 1 + len(msgLines)
133100 // Account for panel borders (top + bottom = 2 lines)
internal/tui/styles.go+0−6
@@ -57,12 +57,6 @@ var (
5757 Bold(true).
5858 Foreground(colorBrand)
5959
60- // Status bar - teal on dark, command center vibe
61- statusBarStyle = lipgloss.NewStyle().
62- Foreground(colorTeal).
63- Background(colorBgAlt).
64- Padding(0, 1)
65-
6660 // Mysis list - double border for that 80s terminal aesthetic
6761 mysisListStyle = lipgloss.NewStyle().
6862 Border(lipgloss.DoubleBorder()).
internal/tui/testdata/TestDashboard/empty_swarm/ANSI.golden+1−1
@@ -2,7 +2,6 @@
22  ⬡ Z O E A N O V A ⬡ COMMAND CENTER 
33  ⬥═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════⬥
44
5-  ∙ 0 ◦ 0 ◌ 0 ✖ 0  
65 ⬧────────────────────────────────────────────────── SWARM BROADCAST ───────────────────────────────────────────────────⬧
76 No broadcasts yet. Press 'b' to broadcast.
87 ⬧──────────────────────────────────────────────────── MYSIS SWARM ─────────────────────────────────────────────────────⬧
@@ -37,5 +36,6 @@
3736 ║ ║
3837 ║ ║
3938 ║ ║
39+║ ║
4040 ╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
4141 [ ? ] HELP · [ n ] NEW MYSIS · [ b ] BROADCAST
internal/tui/testdata/TestDashboard/empty_swarm/Stripped.golden+1−1
@@ -2,7 +2,6 @@
22 ⬡ Z O E A N O V A ⬡ COMMAND CENTER
33 ⬥═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════⬥
44
5- ∙ 0 ◦ 0 ◌ 0 ✖ 0
65 ⬧────────────────────────────────────────────────── SWARM BROADCAST ───────────────────────────────────────────────────⬧
76 No broadcasts yet. Press 'b' to broadcast.
87 ⬧──────────────────────────────────────────────────── MYSIS SWARM ─────────────────────────────────────────────────────⬧
@@ -37,5 +36,6 @@ No broadcasts yet. Press 'b' to broadcast.
3736 ║ ║
3837 ║ ║
3938 ║ ║
39+║ ║
4040 ╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
4141 [ ? ] HELP · [ n ] NEW MYSIS · [ b ] BROADCAST
internal/tui/testdata/TestDashboard/with_swarm_messages/ANSI.golden+1−1
@@ -2,7 +2,6 @@
22  ⬡ Z O E A N O V A ⬡ COMMAND CENTER 
33  ⬥═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════⬥
44
5-  ∙ 1 ◦ 1 ◌ 0 ✖ 0  
65 ⬧────────────────────────────────────────────────── SWARM BROADCAST ───────────────────────────────────────────────────⬧
76 11:00:00 All units: proceed to sector 7
87 11:05:00 Target rich environment detected
@@ -37,5 +36,6 @@
3736 ║ ║
3837 ║ ║
3938 ║ ║
39+║ ║
4040 ╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
4141 [ ? ] HELP · [ n ] NEW MYSIS · [ b ] BROADCAST
internal/tui/testdata/TestDashboard/with_swarm_messages/Stripped.golden+1−1
@@ -2,7 +2,6 @@
22 ⬡ Z O E A N O V A ⬡ COMMAND CENTER
33 ⬥═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════⬥
44
5- ∙ 1 ◦ 1 ◌ 0 ✖ 0
65 ⬧────────────────────────────────────────────────── SWARM BROADCAST ───────────────────────────────────────────────────⬧
76 11:00:00 All units: proceed to sector 7
87 11:05:00 Target rich environment detected
@@ -37,5 +36,6 @@
3736 ║ ║
3837 ║ ║
3938 ║ ║
39+║ ║
4040 ╚══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╝
4141 [ ? ] HELP · [ n ] NEW MYSIS · [ b ] BROADCAST
internal/tui/testdata/TestFocusView/with_all_roles/ANSI.golden+2−2
@@ -1,9 +1,9 @@
1- ◆───────────────────────────────────────────────── ⬡ MYSIS: alpha ⬡ ──────────────────────────────────────────────────◆
1+ ⬥───────────────────────────────────────────────── ⬡ MYSIS: alpha ⬡ ──────────────────────────────────────────────────⬥
22
33 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
44 │ ID: test-mysis State: running Provider: ollama Account: crab_explorer  │
55 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
6-◈────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────◈
6+⬧────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────⬧
77 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
88 │ │
99 │ SYS:  You are a space exploration AI controlling a ship in the Crustacean Cosmos. │
internal/tui/testdata/TestFocusView/with_all_roles/Stripped.golden+2−2
@@ -1,9 +1,9 @@
1- ◆───────────────────────────────────────────────── ⬡ MYSIS: alpha ⬡ ──────────────────────────────────────────────────◆
1+ ⬥───────────────────────────────────────────────── ⬡ MYSIS: alpha ⬡ ──────────────────────────────────────────────────⬥
22
33 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
44 │ ID: test-mysis State: running Provider: ollama Account: crab_explorer │
55 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
6-◈────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────◈
6+⬧────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────⬧
77 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
88 │ │
99 │ SYS: You are a space exploration AI controlling a ship in the Crustacean Cosmos. │
internal/tui/testdata/TestFocusView/with_scrollbar/ANSI.golden+2−2
@@ -1,9 +1,9 @@
1- ◆────────────────────────────────────────────────── ⬡ MYSIS: beta ⬡ ──────────────────────────────────────────────────◆
1+ ⬥────────────────────────────────────────────────── ⬡ MYSIS: beta ⬡ ──────────────────────────────────────────────────⬥
22
33 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
44 │ ID: test-mysis State: running Provider: ollama Account: (not logged in)  │
55 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
6-◈────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────◈
6+⬧────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────⬧
77 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
88 │ │
99 │ YOU:  Test message line Q │
internal/tui/testdata/TestFocusView/with_scrollbar/Stripped.golden+2−2
@@ -1,9 +1,9 @@
1- ◆────────────────────────────────────────────────── ⬡ MYSIS: beta ⬡ ──────────────────────────────────────────────────◆
1+ ⬥────────────────────────────────────────────────── ⬡ MYSIS: beta ⬡ ──────────────────────────────────────────────────⬥
22
33 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
44 │ ID: test-mysis State: running Provider: ollama Account: (not logged in) │
55 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
6-◈────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────◈
6+⬧────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────⬧
77 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
88 │ │
99 │ YOU: Test message line Q │
internal/tui/testdata/TestFocusViewWithViewport/with_scrollbar/ANSI.golden+2−2
@@ -1,9 +1,9 @@
1- ◆─────────────────────────────────────────────── ⬡ MYSIS: test-mysis ⬡ ───────────────────────────────────────────────◆
1+ ⬥─────────────────────────────────────────────── ⬡ MYSIS: test-mysis ⬡ ───────────────────────────────────────────────⬥
22
33 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
44 │ ID: test-id State: running Provider: ollama Account: crab_pilot  │
55 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
6-◈────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────◈
6+⬧────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────⬧
77 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
88 │ │
99 │ █ │
internal/tui/testdata/TestFocusViewWithViewport/with_scrollbar/Stripped.golden+2−2
@@ -1,9 +1,9 @@
1- ◆─────────────────────────────────────────────── ⬡ MYSIS: test-mysis ⬡ ───────────────────────────────────────────────◆
1+ ⬥─────────────────────────────────────────────── ⬡ MYSIS: test-mysis ⬡ ───────────────────────────────────────────────⬥
22
33 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
44 │ ID: test-id State: running Provider: ollama Account: crab_pilot │
55 ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
6-◈────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────◈
6+⬧────────────────────────────────────────────────── CONVERSATION LOG ──────────────────────────────────────────────────⬧
77 ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
88 │ │
99 │ █ │
internal/tui/testdata/TestHelp/content/ANSI.golden+1−1
@@ -9,7 +9,7 @@
99
1010 ╔═══════════════════════════════════════════════╗
1111 ║ ║
12- ║  ◆═══ ⬡ COMMAND REFERENCE ⬡ ═══◆  ║
12+ ║  ⬥═══ ⬡ COMMAND REFERENCE ⬡ ═══⬥  ║
1313 ║   ║
1414 ║ q / Ctrl+C  Quit  ║
1515 ║ n  New mysis  ║
internal/tui/testdata/TestHelp/content/Stripped.golden+1−1
@@ -9,7 +9,7 @@
99
1010 ╔═══════════════════════════════════════════════╗
1111 ║ ║
12- ║ ◆═══ ⬡ COMMAND REFERENCE ⬡ ═══◆ ║
12+ ║ ⬥═══ ⬡ COMMAND REFERENCE ⬡ ═══⬥ ║
1313 ║ ║
1414 ║ q / Ctrl+C Quit ║
1515 ║ n New mysis ║