Repository navigation
feat(tui): editorial emphasis hues and airy transcript rhythm - #656
Merged
Merged
Conversation
The conversation read flat: strong and emphasis were weight-only, every transcript block used one identical blank line, hover was a barely visible 7% lift, and the navigator tabs had no hover at all. - Add md_strong/md_emph theme tokens (optional, text_primary fallback): orange bold for **strong**, greenish yellow italic for *emphasis*, prose-only and never in chrome, status, diffs or code. - Add transcript density: airy (default) puts one blank row before section headings, after heading rules, between list items and around fenced code; compact stays the fallback below AIRY_MIN_ROWS (24) so 80×18 keeps its content budget. Density joins the stream cache key. - Lift surface_hover so hover reads as a pointer affordance, and give navigator tabs a hover ground plus leading marker, sharing the click boundary calculation so hover and click can never disagree. - Resolve FORGE-DESIGN conflicts: orange is the only orange state marker (prose emphasis may share the family); italics are allowed for model-prose emphasis with the modifier never the sole signal. Tests: emphasis hue assertions, airy list/heading/code rhythm, tab hover ground and marker, theme token accessors.
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.
Problem
The conversation reads flat:
**strong**and*emphasis*were weight-only and shared the body colour, every transcript block used the same single blank line, hover was a ~7% lift that was easy to miss, and the navigator tabs had no hover at all despite being clickable.Changes
md_strong/md_emphpalette tokens (optional in theme TOML with atext_primaryfallback for existing user themes).**strong**renders orange bold,*emphasis*greenish-yellow italic. Prose-only: never chrome, status, diffs, code, or composer. Weight/style remain the fallback so emphasis survives monochrome terminals and terminals without italics.Density::{Airy, Compact}in the markdown renderer. Airy (the app default at comfortable heights) adds one blank row before section headings, after heading rules, between list items, and around fenced code. Compact is the fallback when the conversation pane is shorter thanAIRY_MIN_ROWS(24), so the enforced 80×18 minimum keeps its content budget. Density is part of theStreamMarkdownCachekey alongside width.surface_hoverlifted (#292929 → #2E2E2Edark,#E2E2E2 → #D4D4D4light) so it clearly differs fromselection; navigator tabs gain a hover ground plus a leading›marker. Click and hover now sharenavigator_tab_at, so the hit boundary cannot disagree. Queue/background rows intentionally stay hover-free — they are not clickable.Tests
strong_and_emphasis_take_their_editorial_hues, airy list/heading/code rhythm tests,editorial_emphasis_accessors_expose_theme_tokens,hovered_inactive_tab_takes_the_hover_ground, emphasis-token fallback for older themes.Validation
cargo fmt --all -- --check,cargo clippy --workspace --all-targets --locked -- -D warningscleancargo build --release --locked --package forge-cliOK