Skip to content

feat(tui): add splitlayout for shared two-pane geometry and borders - #86

Merged
mariusvniekerk merged 2 commits into
kenn-io:mainfrom
rodboev:tui-splitlayout
Sep 16, 2026
Merged

mariusvniekerk merged 2 commits into
kenn-io:mainfrom
rodboev:tui-splitlayout

Conversation

@rodboev

@rodboev rodboev commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Roborev and kata each implement the same split-screen sizing — a clamped list pane beside a detail pane with matching 140x36 breakpoints and border-box frames. tui/splitlayout extracts it so both can delete their copies and vet's TUI starts on the shared implementation.

Config carries each application's constants (list-width clamps, detail pane reserved width, body-height floor). Geometry computes border-box outer and inner pane rectangles from the terminal size and footer height with no hidden clamping, so undersized calls keep each project's current results, including roborev's negative detail widths. PickLayout owns the shared breakpoints; PaneStyle wraps content in the standard border with a caller-resolved color.

Layout locking, focus dispatch, and content rendering stay with each application. Output matches the existing implementations byte for byte across the sizing grid and both focus states.

The consumer migrations follow as separate PRs, independent of #85. Whichever of that one and this one merges first rebases the other.

Refs kenn-io/kennel#132 (vet roadmap slice 9)

@roborev-ci

roborev-ci Bot commented Sep 16, 2026

Copy link
Copy Markdown

roborev: Combined Review (f412fb8)

Verdict: No findings at or above medium severity.


Reviewers: 2 done | Synthesis: codex | Total: 2m26s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants