feat(tui): split narrow main view to surface live logs
When the dashboard TUI collapses to single-pane mode (narrow width or short terminal), show a horizontal log strip at the bottom of the screen while the active section renders on top. The split is content-driven: the top pane gets exactly the rows it needs to render its section without truncating (computed from SystemPanel's chip wrap at the current width, or each panel's known row count for Stats/Utilities/Settings), and the log strip absorbs every remaining row to maximize log visibility. Down-arrow shifts sub-focus into the log strip with the same key bindings as the dedicated Logs section (j/k, Home/G, Enter to expand, w to wrap, c to copy, f to filter, mouse wheel). Up-arrow at the top of the strip or Esc returns focus to the main pane. Right/Left/Tab continue to cycle sections, so the dedicated full-screen Logs view is unchanged. The split auto-disables if the log strip would get fewer than 6 rows. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
20
.changeset/tui-narrow-mode-log-split.md
Normal file
20
.changeset/tui-narrow-mode-log-split.md
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
"@runfusion/fusion": minor
|
||||
---
|
||||
|
||||
Add a horizontal log split to the TUI's narrow single-pane main view. When
|
||||
the terminal is too narrow for the multi-pane grid, the bottom of the
|
||||
screen now shows a live log strip while the top keeps the active section
|
||||
(System, Stats, Utilities, or Settings). The split is dynamic: the top
|
||||
pane gets exactly the rows it needs to render its content without
|
||||
truncating (computed from the System chip wrap at the current width, or
|
||||
each panel's known row count for Stats/Utilities/Settings), and the log
|
||||
strip absorbs all remaining rows — maximizing log visibility without
|
||||
clipping the active section. The split disables itself if the leftover
|
||||
would give the log strip fewer than 6 rows. Down-arrow shifts sub-focus
|
||||
into
|
||||
the strip with the same key bindings as the dedicated logs section
|
||||
(j/k, Home/G, Enter to expand, w to wrap, c to copy, f to filter).
|
||||
Up-arrow at the top of the strip returns focus to the main pane; Esc
|
||||
also exits the split. Right/Left/Tab continue to cycle sections,
|
||||
including the dedicated full-screen logs view.
|
||||
Reference in New Issue
Block a user