diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-25 08:55:58 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-25 08:55:58 +0200 |
| commit | 22f1589e62aeafed805b8dd07d4610b7662f205e (patch) | |
| tree | 1661bd680ccd0d969359c3f3cf3cbd3d8ec4a5a3 /internal/tui/dashboard | |
| parent | d423225771a10ebae87d22c69fe88e5b65a3d378 (diff) | |
Polish stream filter UX and expand TUI viewport
Diffstat (limited to 'internal/tui/dashboard')
| -rw-r--r-- | internal/tui/dashboard/model.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go index 5500369..407802f 100644 --- a/internal/tui/dashboard/model.go +++ b/internal/tui/dashboard/model.go @@ -228,6 +228,17 @@ func (m Model) LatestSnapshot() *statsengine.Snapshot { return m.latest } +// 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() +} + +// SetStreamSource updates the live stream source used by the stream tab. +func (m *Model) SetStreamSource(source *eventstream.RingBuffer) { + m.streamModel.SetSource(source) +} + // View renders the tab bar, active tab scaffold, and help bar. func (m Model) View() string { var b strings.Builder |
