Repository navigation
feat(tui): round 3 spacing polish and overlay mouse support - #658
Merged
Merged
Conversation
Follow-up to #657 (round 2), driven by a fresh PTY review of the merged build. Spacing - Distinct tool/activity groups are separated by one blank row in airy density; rows inside one group stay tight. Compact density unchanged. - Source viewer and diff pane render one blank row between the pane title and the content when the pane is tall enough, so the header reads as chrome rather than the first file/patch line. - Session rows take a weight step on hover, matching file rows. Overlay mouse support (round 2's deferred item) - Overlay list rows record screen rects during paint (`OverlayWidget::row_sink`, `render_theme_dock`), so pointer hit-testing and the renderer share one geometry. - Single click selects a row (and the focused column for the unified provider/model/effort picker); double-click confirms through the same `Enter` path the keyboard uses, so side effects stay in one place. - Hover takes the shared treatment (surface_hover ground + weight step); selection keeps its stronger ground and `>` marker, and hover never moves the selection or pane focus. - Coverage: unified picker (providers/models/effort), resume picker, session switcher, theme dock (hover re-previews, click selects, double-click applies). Slash palette stays keyboard-only by design. Docs: FORGE-DESIGN SS7.5.1/SS8.6/SS9.4/SS9.7/SS9.8 updated. Tests: forge-tui 1264 lib + integration pass; fmt and clippy clean. PTY verified: hovered picker row #303030 bold, click moves selection, double click applies the model; source/diff title spacer visible.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Round 3 of the UI work, following #657. Fresh PTY review of the merged build found three gaps; this PR fixes them. Local study artifacts:
docs/ui-spacing-review/round-3/(gitignored).Spacing
Overlay mouse support (round 2's deferred item)
OverlayWidget::row_sink,render_theme_dock), so pointer hit-testing and the renderer share one geometry.Enterpath the keyboard uses, so side effects stay in one place.surface_hoverground + weight step); selection keeps its stronger ground and>marker. Hover never moves the selection and never moves pane focus.Docs
FORGE-DESIGN.md§7.5.1, §8.6, §9.4, §9.7, §9.8 updated.Validation
cargo test --package forge-tui --locked— 1264 lib tests + integration passcargo fmt --all -- --check,cargo clippy --workspace --all-targets --locked -- -D warnings— clean#303030bold; single click moves selection and window; double-click applies the model (footer chip changed toOpenCode/glm-5.1); source/diff title spacer visible at 140×42No keybinding, persistence or JSON changes.