summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/model.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-27 00:00:48 +0200
committerPaul Buetow <paul@buetow.org>2026-02-27 00:00:48 +0200
commit62e9fc030a7ad7c6522c2db1010609441818b0a9 (patch)
treeca9e7715ee2223f3454bd1f83cffdf46bef79606 /internal/tui/dashboard/model.go
parent34e70c9cd76b0231cfff3910bb24708624d7c72d (diff)
tui: add stream regex search and unify help visibility
Diffstat (limited to 'internal/tui/dashboard/model.go')
-rw-r--r--internal/tui/dashboard/model.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go
index 0e850d4..c9c96c3 100644
--- a/internal/tui/dashboard/model.go
+++ b/internal/tui/dashboard/model.go
@@ -272,7 +272,7 @@ func (m Model) LatestSnapshot() *statsengine.Snapshot {
// BlocksGlobalShortcuts reports whether modal UI in the active tab should
// suppress top-level shortcuts (for example global export key handling).
func (m Model) BlocksGlobalShortcuts() bool {
- return m.activeTab == TabStream && (m.streamModel.FilterModalVisible() || m.streamModel.ExportModalVisible())
+ return m.activeTab == TabStream && (m.streamModel.FilterModalVisible() || m.streamModel.ExportModalVisible() || m.streamModel.SearchModalVisible())
}
// SetStreamSource updates the live stream source used by the stream tab.
@@ -284,6 +284,8 @@ func (m *Model) SetStreamSource(source *eventstream.RingBuffer) {
func (m Model) View() string {
width, height := common.EffectiveViewport(m.width, m.height)
activeHeight := height
+ streamModel := m.streamModel
+ streamModel.SetFooterVisible(m.showHelp)
if m.activeTab == TabStream {
_, activeHeight = streamViewport(width, height)
}
@@ -294,7 +296,7 @@ func (m Model) View() string {
b.WriteString(renderActiveTab(
m.activeTab,
m.latest,
- &m.streamModel,
+ &streamModel,
width,
activeHeight,
m.syscallsOffset,