summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-18 09:29:33 +0200
committerPaul Buetow <paul@buetow.org>2026-03-18 09:29:33 +0200
commitc234be24815452fa1143c9a523f4615e0d745fb7 (patch)
tree8737bfef26f4208f31e296cdabf6849a3daf1cb8 /docs
parentdbb98cd8dbd70dd92b8a541653e64c45b18348fa (diff)
refactor: extract keyboardState, filterState, processState sub-structs from tui.Model (task 429)
tui.Model had 33 fields mixing keyboard tracking, filter chain, process selection, and UI presentation concerns (SRP violation). Extract three focused sub-structs: - keyboardState (kb): enhancements, lastEvent{ID,At,WasPress}, suppress{ID,Until} — 7 fields managed by keys_normalize.go - filterState (filter): global filter, history slice, label stack — 3 fields for the trace filter chain - processState (proc): pid, tid, pickerReturn — 3 fields for PID/TID selection and picker navigation Model drops from 33 to 23 top-level fields. All field accesses in tui.go, keys_normalize.go, and tui_test.go are updated accordingly. Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions