Repository navigation
feat(tui): code panel with heavy gutter, wrap marks, label and padding rows (U3) - #100
Merged
Merged
Conversation
…g rows (U3) Slice U3 of docs/plans/tui-redesign.md (ENG-849), stacked on U2. Fenced code panels now carry a `┃ ` rail in `border` on the surface, one padding cell, and surface padding to the content width; rows a source line wrapped onto show `↪` in the rail. The top padding row right-aligns the language label in `muted` (blank when untagged) and a blank bottom padding row is always present, so a streaming panel has the same rows as the finished one. Diff add/remove tints keep their own background inside the panel; only untinted spans take the surface. `Style::dim` is removed (the old gutter was its only caller). Verified: fmt, clippy -D warnings (all targets/features), 274 lib + 5 golden tests; the five markdown-gallery goldens regenerated and inspected (gutter, label, padding rows only). Bench on a pinned core within 5 % of U2 on every gated scene (steady 21.8, focused 34.4, run-on 443.4, golden path 39.3, keystroke 26.6 µs).
lg2m
force-pushed
the
feat/eng-849-u3-code-panel
branch
from
September 21, 2026 07:20
ab2a187 to
346691b
Compare
This was referenced Sep 21, 2026
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.
U3: code panel with heavy gutter, wrap marks, label and padding rows
Spec: docs/plans/tui-redesign.md#s4-code-panel Linear: ENG-849 (parent ENG-843)
Stacked on #102 (U2). Review the top commit only until #102 merges.
What changed (
crates/qq-tui/src/view/markdown.rs)┃inborderonsurface(was│in dimmed accent), then one padding cell, content, and surface padding to the content width.↪in the gutter cell.muted(rust), blank when untagged. Bottom padding row always present. Both rows keep the gutter so the rail is continuous.difffences: add/remove tints now win over the surface inside the panel. Previouslysurface(diff_line_style(..))overwrote the diff background, so the tint was lost inside panels; two existing test expectations updated to the spec'd behavior.Style::dimbuilder removed: the old gutter was its only caller and-D warningsflagged it. TheDIMbit andwrite_linehandling remain; re-adding is four lines.Before / after (
markdown-gallery-120x40)How verified
cargo test -p qq-tui --all-features274 lib + 5 golden; fmt; clippy-D warnings.code_panels_carry_a_labelled_top_row_and_a_blank_bottom_row,wrapped_code_rows_show_the_wrap_mark_in_the_gutter,diff_tints_win_over_the_surface_inside_the_panel,streaming_and_completed_panels_render_the_same_rows(open fence at 3 widths + a just-opened fence). The 16-source settled-prefix corpus passes unchanged.markdown-gallery-*only; every hunk is gutter glyph, padding cell, label position, or the new bottom row (80×24 and 120×40 also scroll one row because the panel is one row taller).tools-expanded-*unchanged (tool output panels are U7).Measurements (
target/qq-perf/tui-U3-2026-09-20/after*.txt, pinned core)Docs
docs/design/transcript.md§ Code Blocks rewritten to the shipped panel. Ledger receipt.Compatibility