Repository navigation
Commit 7b8733f
authored
feat(tui): rebuild the Workers view as a fleet console (#19)
The Workers view listed four static columns and a flat detail pane, so a
running fleet gave no sense of capacity, velocity, or health. Rebuild it
around what an operator asks between polls: how much of the host is in
use, which Worker is moving, and what each one just did.
- Header carries the host capacity meters (slots, memory) and the
snapshot age; meters drop off as the terminal narrows.
- Table gains a phase bar, heartbeat freshness, and token/tool counters,
groups by project in host scope, and drops columns instead of wrapping.
- Detail pane derives throughput rates and a token sparkline from
client-side history, and keeps a per-Worker activity feed built from
phase, step, failure, and log-line transitions.
- enter expands one Worker, o opens its issue, R refreshes, g/G jump.
- The tab badge counts the fleet and flags failed Workers.
OpenTUI overlaps cells when a flex subtree asks for more rows than the
terminal has, so every section is a fixed count of single lines and both
panes get explicit sizes.1 parent 3d1e6c3 commit 7b8733f
7 files changed
Lines changed: 1481 additions & 233 deletions
File tree
- .changeset
- packages/tui
- src
- routes
- workers
- test/routes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
379 | 383 | | |
380 | 384 | | |
381 | 385 | | |
| |||
1177 | 1181 | | |
1178 | 1182 | | |
1179 | 1183 | | |
1180 | | - | |
1181 | | - | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
1182 | 1190 | | |
1183 | 1191 | | |
1184 | 1192 | | |
| |||
0 commit comments