Skip to content

feat(tui): airier spacing across panes, composer, footer, transcript - #654

Merged
mohitranka merged 1 commit into
mainfrom
feat/tui-airier-spacing
Sep 12, 2026
Merged

mohitranka merged 1 commit into
mainfrom
feat/tui-airier-spacing

Conversation

@mohitranka

Copy link
Copy Markdown
Contributor

What

Full spacing pass so the TUI stops reading as congested. Panes no longer touch, text no longer sits flush against borders, and the chrome is separated from the work surface.

Changes

  • design.rs: PANE_PAD_X 1 → 2; new PANE_GAP_X, PANE_GAP_Y, CHROME_GAP_Y = 1
  • layout.rs: blank gutters between Files │ Workspace │ Sidebar, left column ↔ bottom panel, transcript ↔ composer, status/approve-all ↔ content, content ↔ Footer
  • render.rs: sidebar padding + transcript width follow PANE_PAD_X
  • input.rs: TEXT_INSET = PANE_PAD_X + 1 — composer text aligns with the transcript text origin
  • footer.rs: inset follows PANE_PAD_X
  • file_explorer.rs / source_viewer.rs / diff_view.rs / feedback.rs: pane padding follows PANE_PAD_X
  • conversation.rs: turn-boundary rule gets one blank row each side
  • FORGE-DESIGN.md §7.5 updated to the airy scale

Verification

  • cargo test -p forge-tui --all-targets: 1245 lib + integration pass
  • cargo clippy -p forge-tui --all-targets --locked -- -D warnings: clean
  • cargo fmt --all -- --check: clean
  • tmux PTY check at 120×40 (3-column gutters, inset text) and 80×18 (enforced minimum holds, Files collapses)

Notes

Transcript inter-block gaps stay at the §9.4 "exactly one blank line" invariant; the added air comes from pane padding and the turn-rule cushion instead.

The 2026 layout left panes edge-to-edge and text one cell from borders,
which reads as congested. Increase the cell-spacing scale:

- PANE_PAD_X 1 -> 2 (pane text off the border)
- add PANE_GAP_X / PANE_GAP_Y / CHROME_GAP_Y = 1
- layout: gutters between Files | Workspace | Sidebar, between the left
  column and the bottom panel, between transcript and composer, and
  between the chrome rows and the content band
- composer/footer inset follows PANE_PAD_X; composer text aligns with
  the transcript's text origin
- transcript turn-boundary rule is cushioned by one blank row each side

Updates FORGE-DESIGN.md 7.5 and the pinned geometry tests.
@mohitranka
mohitranka enabled auto-merge (squash) September 12, 2026 04:36
@mohitranka
mohitranka merged commit 24858a5 into main Sep 12, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant