Skip to content

fix(session-view): align composer spine, whisper-tint MCP chips, docks, shimmer, and execute tokens - #2568

Open
kitlangton wants to merge 1 commit into
devfrom
ui-audit-batch-b
Open

kitlangton wants to merge 1 commit into
devfrom
ui-audit-batch-b

Conversation

@kitlangton

Copy link
Copy Markdown
Collaborator

The composer, tool rows, working indicator, approval docks, and Execute sheet now share aligned spines, quiet borderless pills, and theme-native tokens.
Attachment cards, prompt text, and toolbar controls line up on one 16 pt left edge, while MCP chips switch to borderless whisper-tint pills with a comma before trailing counts. Existing session behavior, keyboard shortcuts, and custom themes work as before.

❌ Before

  1. Composer attachments (8 pt), prompt text (16 pt), and leading toolbar labels (19 pt) sat on three different left edges, light-mode context/quote cards painted white on white, the remove badge drew a harsh 1 pt outline, and the mic button sat 2 pt from Submit.
  2. Timeline tool rows mixed three bordered micro-chip styles (18 pt r5 1 pt border, 16 pt r2 0.5 pt border, and 11 pt sans +1 pt offset), ran server chips into 1 model call without a comma, and mixed 11 / 12 / 13 pt monospace in expanded MCP parameter cards.
  3. The live Working row hardcoded #8f8f8f (~3.2:1 contrast in light mode) and froze identical to static muted labels under Reduce Motion.
  4. Question and Permission docks shifted between 10 pt and 12 pt card corners, 28 pt and 32 pt buttons, 12 pt and 16 pt horizontal insets, and legacy v1_* colors.
  5. The Execute details sheet hardcoded 8 hex colors on the default theme and shifted its Copy button 3 pt inward when output scrolled.

✅ After

  1. Attachments, prompt text, toolbar controls, and dictation status share one 16 pt left spine; composer cards use p.hover at a locked 52 pt height with a 0.5 pt surface cutout ring on remove, and the mic sits 6 pt clear of Submit.
  2. Collapsed activity rows render server names as borderless whisper-tint pills (18 pt, r4) in proportional UI text with an "MCP tool" tooltip and a comma before trailing counts; Called rows use the same borderless mono pill (namespace muted, . faint, method base) alongside matching ×N and status badges and a single 12 pt mono parameter grid.
  3. Working sweeps from semantic p.muted (> 6:1 in light mode) to p.text, and stands out in medium p.text when Reduce Motion is enabled.
  4. Question and Permission docks share the composer's 10 pt card radius, 16 pt text spine, 28 pt footer buttons, 530 / 440 Inter optical weights, and v2 Pal tokens.
  5. SheetPal derives every surface and elevation from Pal across all themes, and pins the Copy button at 10 pt from the right edge regardless of vertical overflow.
- composer: attachments px(8) + prompt pl(16) + ghost pl(11), white-on-white light cards, 2pt mic gap
+ composer: unified 16pt left spine, p.hover 52pt cards, 0.5pt surface ring, 6pt mic gap
- codemode: 3 bordered chip geometries, missing comma before counts, 11/12/13pt mono params
+ codemode: borderless whisper-tint pills (UI summary + split mono Called), comma before counts, 12pt grid
- working / docks / execute: #8f8f8f light ink, 10pt vs 12pt dock corners, 8 hardcoded SheetPal hexes
+ working / docks / execute: semantic Pal tokens everywhere, 10pt/28pt sibling docks, fixed 10pt Copy inset

📊 Proof

Area Before After
Composer spine, light cards & Working contrast ❌ 8 / 16 / 19 pt left edges, white-on-white cards, #8f8f8f (3.2:1) ✅ Single 16 pt left spine, p.hover 52 pt cards, p.muted (> 6:1)
Code Mode & MCP pills + parameter grid ❌ 3 bordered chip styles, no comma before 1 model call, 11/12/13 pt mono ✅ Borderless whisper-tint pills, comma separator, unified 12 pt mono grid
Question & Permission docks ❌ 10 pt vs 12 pt corners, 32 pt vs 28 pt buttons, v1_* tokens ✅ 10 pt corners, 16 pt spine, 28 pt buttons, 530/440 weights, v2 Pal
Execute details sheet ❌ 8 hardcoded hexes on default theme, 7 pt → 10 pt Copy jump ✅ Semantic p.code_bg / p.overlay across all themes, constant 10 pt Copy

Composer, attachments & Working row (light mode)

Before After

Code Mode & MCP whisper-tint pills + parameter grid

Before After

Permission & Question docks

Before After

Execute details sheet

Before After

👀 Read: crates/session-view/src/tools/codemode.rs (namespace_chip vs called_chip) and crates/session-view/src/turns/labels.rs (render_car), where summary chips stay proportional UI with a trailing comma before clauses while expanded Called rows split namespace.method across three Span tones in monospace. The rest is routine.

🔍 Found in a UI audit · no user reports · verified with 2× headless fixture captures

Checks run
  • cargo check --bin opencode-desktop: pass
  • cargo check -p session-view --examples: pass
  • cargo check -p opencode-web --target wasm32-unknown-unknown: pass
  • bash scripts/guardrails.sh: 12/12 pass

This branch has not been deployed

No deployments
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