diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 09:45:09 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 09:45:09 +0300 |
| commit | 6c7a5d5fb3e88068799fb414e316b6bec31015e9 (patch) | |
| tree | c47a73f3fd3d3a1089f77e00934bcdb45168965c /internal/tui/dashboard | |
| parent | 50d5220ed5a2187dbf548d70f3d795a39f7bfd00 (diff) | |
split globalfilter presentation and parsing into sub-packages
Move ParseDurationNs to globalfilter/parser and move CompareOpSymbol,
AppendStringSummary, AppendNumericSummary, FilterSummary to
globalfilter/presenter. The domain Filter type retains only matching,
equality, clone, and active-predicate logic. All callers updated;
tests for the new sub-packages added.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/tui/dashboard')
| -rw-r--r-- | internal/tui/dashboard/model.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/tui/dashboard/model.go b/internal/tui/dashboard/model.go index 123600a..8548481 100644 --- a/internal/tui/dashboard/model.go +++ b/internal/tui/dashboard/model.go @@ -7,6 +7,7 @@ import ( "time" "ior/internal/globalfilter" + "ior/internal/globalfilter/presenter" "ior/internal/statsengine" common "ior/internal/tui/common" "ior/internal/tui/eventstream" @@ -1104,7 +1105,7 @@ func (m Model) View() tea.View { } func (m Model) filterSummary() string { - summary := "filter: " + m.globalFilter.Summary() + summary := "filter: " + presenter.FilterSummary(m.globalFilter) if len(m.filterStack) > 0 { summary += " | stack: " + strings.Join(m.filterStack, " | ") } |
