summaryrefslogtreecommitdiff
path: root/internal/tui/flamegraph/renderer.go
AgeCommit message (Collapse)Author
2026-05-12refactor flamegraph TUI model into focused sub-controllersPaul Buetow
Break the god-class Model in internal/tui/flamegraph/model.go into four focused sub-controllers that each own a single concern: - ZoomNavigator : zoom path, stack, root node, and reset/undo logic - SelectionManager: selected frame index, clamp, traversal, navigation - FrameAnimator : spring animation, frame layout swap, ancestry index - SearchController: search query, match indices, filter-visible set All four are embedded in Model so existing field access (m.selectedIdx, m.zoomPath, etc.) is promoted unchanged, keeping tests and callers intact. Model methods now delegate to the sub-controllers rather than holding all logic inline. Also split RenderTerminalView (88 lines) into computeRenderParams, buildToolbar, buildFilteredStatus, and buildNormalStatus helpers, and extracted buildSnapshotMsg from RefreshFromLiveTrieCmd. All functions are now ≤ 50 lines. All tests pass. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-18cleanupPaul Buetow
2026-03-09tui: fix flamegraph click re-rootingPaul Buetow
2026-03-09tui: remove flame selected underlinePaul Buetow
2026-03-06feat(tui): add flamegraph bytes metric togglePaul Buetow
2026-03-06flamegraph: use full viewport with capped bar height and preserve footer/statusPaul Buetow
2026-03-06flamegraph: keep non-matches visible in filter and add pgup/pgdn selection jumpsPaul Buetow
2026-03-06Add live flamegraph test modes and dynamic synthetic live feedPaul Buetow
2026-03-06Fix flamegraph navigation, filtering, and system-share feedbackPaul Buetow
2026-03-06Keep flame children visible under heavy rounding and clarify filter percentPaul Buetow
2026-03-06Start flame ticks on dashboard entry and use purple selectionPaul Buetow
2026-03-06Improve flamegraph selection, filter, and zoom feedbackPaul Buetow
2026-03-05Normalize Go import grouping with local ior sectionPaul Buetow
2026-03-05Make flame tab default and fix flame hotkey routingPaul Buetow
2026-03-05Reduce flamegraph hot-path allocationsPaul Buetow
2026-03-05Add flamegraph benchmark suite and reuse hot-path buffersPaul Buetow
2026-03-05task 360: add flamegraph search and match navigationPaul Buetow
2026-03-05task 359: add flamegraph zoom interactionsPaul Buetow
2026-03-05task 358: add flamegraph keyboard navigationPaul Buetow
2026-03-05task 357: add flamegraph subtree highlightingPaul Buetow
2026-03-05task 356: implement flamegraph terminal view rendererPaul Buetow
2026-03-05task 355: add terminal flamegraph layout rendererPaul Buetow