Repository navigation
test(tui): golden frames at five sizes, gallery dump, QA gallery fixture (U0) - #86
Merged
Merged
Conversation
Collaborator
Author
|
Linear: ENG-844. Stacked PR #87 (L1) targets this branch; retarget it to main after merge. |
…ure (U0) Slice U0 of docs/plans/tui-redesign.md (ENG-844). Seven review scenes built from protocol events (markdown gallery, golden path, tools expanded/folded, edit approval, reasoning, steering) render to 35 plain-text goldens at 80x24, 120x40, 200x60, 320x90 and 480x120. A pin records that a 480-column terminal currently receives a 320-wide frame, which slice L1 moves. An ignored gallery test writes 490 ANSI frames (14 themes) for real-terminal review, and the QA runbook gains an endpoint that streams the same gallery, tied to the constant by a drift test. view::render_size is extracted so goldens and draw clamp alike; no rendering behavior changes. Render bench within host noise (A/A recorded). Also activates the plan: responsive tiers, slices L1-L4/U9, decisions D1-D11, ledger, ADR 0036/0037 reservations, Linear ENG-843..857.
lg2m
force-pushed
the
feat/eng-844-u0-tui-goldens
branch
from
September 21, 2026 00:15
ebd57ff to
34919ae
Compare
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.
U0: review harness for the TUI redesign
Spec: docs/plans/tui-redesign.md#slices Linear: ENG-844 (parent ENG-843)
What changed
qq_tui::bench_supportgains sevenScenes built from protocol events only (markdown gallery, golden path, tools expanded/folded, edit approval, reasoning, steering),GOLDEN_SIZES(80×24, 120×40, 200×60, 320×90, 480×120),MARKDOWN_GALLERY,plain_frame(),ansi_frame(),select_theme().tests/goldens.rs: 35 plain-text goldens undertests/goldens/;QQ_UPDATE_GOLDENS=1rewrites. A pin records that a 480-column terminal currently gets a 320-wide frame (widest row 319) — the defect slice L1 moves, so its diff will show the before/after. A drift test ties the runbook's embedded gallery to the constant.tests/gallery.rs(ignored): writes 490 ANSI frames (14 compiled themes × 35) totarget/qq-tui-gallery/with highlights settled, forcatreview in a real terminal.docs/runbooks/tui-qa.md: a second fake endpoint that streams the gallery line by line.view::render_sizeextracted so goldens anddrawclamp identically;frame_and_commitexposed underbench-support. No rendering behavior changes.docs/plans/tui-redesign.mdrewritten with the responsive model (Compact/Regular/Wide/Ultra tiers, panes, per-pane viewports), slices L1–L4/U9 added, decisions D1–D11 resolved; new ledgerdocs/plans/progress/tui-redesign.md; ADR 0036/0037 reserved and two root requests filed inprogress/root.md.How verified
cargo test --workspacegreen (qq-tui 246 lib + 4 goldens; gallery ignored)cargo fmt --all -- --check,cargo clippy --workspace --all-targets --all-features -- -D warningscargo test -p qq-tui --test gallery -- --ignored→ 490 filesMeasurements
cargo bench -p qq-tui --bench render,target/qq-perf/tui-U0-2026-09-20/{baseline,after,after-aa}.txtThe A/A pair spans the same range as the deltas; no code on the frame path changed.
Docs
docs/plans/tui-redesign.md,docs/plans/progress/tui-redesign.md,docs/plans/progress/root.md,docs/runbooks/tui-qa.mdCompatibility
qq-configadded as aqq-tuidev-dependency (already in the graph viaqq-core).Follow-ups / decisions needed
root.md):AGENTS.mdnames Linear teamDEV; the board isENG. Plan row fordocs/plans/README.md.finalmode fails runs with no tool evidence (reproduced; root cause of the "simple question ends in an error" reports).