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/eventstream/render.go | |
| 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/eventstream/render.go')
| -rw-r--r-- | internal/tui/eventstream/render.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/tui/eventstream/render.go b/internal/tui/eventstream/render.go index 4d7970b..cd4d528 100644 --- a/internal/tui/eventstream/render.go +++ b/internal/tui/eventstream/render.go @@ -5,6 +5,7 @@ import ( "strconv" "strings" + "ior/internal/globalfilter/presenter" "ior/internal/tui/common" "charm.land/lipgloss/v2" @@ -75,7 +76,7 @@ func renderStatusLine(paused bool, totalCount, filteredCount, bufferLen, bufferC } func renderFilterLine(filter Filter) string { - summary := filter.Summary() + summary := presenter.FilterSummary(filter) if summary == "all" { summary = common.HighlightStyle.Render(summary) } |
