Repository navigation
cmux NEXT menus and pickers: checkmarks, icons, text and shortcuts on one menu grid (draft: red measurement first) - #27616
teamleaderleo wants to merge 16 commits into
Conversation
|
Owned by an agent session · session |
|
Found 14 test failures on Blacksmith runners: Failures
...and 4 more test failures. View all on Blacksmith Blacksmith runners detected OOM events on the following jobs:
|
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
Probably yours: CI failed on
Failures:
Matched log linesNot re-run automatically: Written by red: web / Web status; a job it gathers is red on this change (its line here); do not merge until green; see lane-rules Gallery before/after for
States
Pick other states with a |
|
Awareness: cmux#28530 merged as c8a6942 and changed the shared ui/Select rules (checkmark gutter, 28px rows on the menu row token, menu aligned to the trigger's left edge, glass tint and blur). This PR also changes popupSurface.css and ui.css, so please merge base and check the menu grid doesn't collide with those rules. Spec: design/settings.md in leo-workspace (teamleaderleo/leo-workspace#1746). Comment only; nothing pushed here. |
Resolves popupSurface.css (keeps base's data-popup-shift rule beside the shared menu columns) and composerLocation.css (the allowed rules keep #27579's text and trailing columns, now from the shared menu row). Leaves the model picker (.acpmux-quick-menu and its side menus) on its settled columns from #29791: its running row's check shares the ⌘N column, so this PR no longer moves it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
…oken baseline Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
…row has an icon; Claude Code pickers keep their trailing check - A title with no icon column starts at iconX (15), or right after the check at 22 in a menu with a state column (schemas/menu-metrics; a select's 22 from #28530 / design/settings.md). - The project chooser's own lead icon (#28590's .acpmux-project-lead) sits on the icon column. - The model picker (#29791), its effort menu and the mode menu keep the chosen row's check in its number's place at the trailing edge (Leo 2026-10-19; composer-claude-split.test.ts), so they stay out of the shared grid and their files are base's. Row defaults stay for menus outside it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
…text column right-to-left Review (codex gpt-6-astra, BLOCK at 2e59359): the shared heading rule used physical four-value padding. checkmark-alignment now measures headings and runs each menu right-to-left too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
|
Review (codex gpt-6-astra high, fast, via review-router): BLOCK at 2e59359
The supplied LTR measurements match the intended leading columns and highlight metrics. The shared selectors outrank the ordinary Fixed the blocking finding in the next commit; the two follow-ups stay follow-ups. |
|
Review (codex gpt-6-astra high, fast, via review-router): SHIP at 872fc4e The prior RTL heading blocker is fixed: headings now use logical [follow-up] The alignment suite runs Chromium only; WebKit behavior for [follow-up] Height checks only require [follow-up] [follow-up] Removing the static Follow-ups: the [follow-up] items above, plus the earlier ones from the BLOCK at 2e59359 (fixed), go to one issue for the menu-grid lane. |
…parator inset, not the text column Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
# Conflicts: # webviews/src/agent-session/acpmux/styles.css # webviews/src/ui/ContextMenu.tsx
…ng checks #28611 (now on base) excludes .acpmux-scope-list from the shared menu grid; this PR's rules matched it and moved ScopeMenu's and ChatFilterMenu's checks to the leading state column. Exclude it here too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-90f18511b4bf53b41d20
|
Merged feat-cmux-next (4453d0b) into this branch, which now carries #28611's menu grid. Conflicts: Review (codex gpt-6-astra high, fast, via review-router): BLOCK at 7352039
Fix 5941893: every one of this PR's selectors also excludes Review (codex gpt-6-astra high, fast, via review-router): SHIP at 5941893 Tests at 5941893 ( |
|
Orphaned: only the sweep's base merge since, and no lane holds a lease on it. The orphan sweep could not merge |
|
Batch 1 composer-menu migration is in #34299. It consumes the shared grid metrics from this draft and moves the remaining composer Picker, slash, and mention lists onto ui/Menu and ui/Listbox while leaving nativePopup direction untouched. Please treat #34299 as the composer integration that supersedes the remaining work here; this PR remains yours. |
popupSurface.css: both sides appended at the end of the file. Keep base's shared scroll-edge fade (#32836) and put the menu grid after it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-ac5053f7854c8635a4d0
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
HOLD: landing waits until base is restored (webview reds from #27559, #27570 and #27580); the grid coordinator lifts this line.
Leo, 2026-10-29: "we need to have better fing grids. We need to have the fing stuff aligned on f***ing grids and lines" (and, the night before, misaligned checkmarks).
Puts every webview menu outside the Claude Code pickers on AppKit's menu metrics (
schemas/menu-metrics,--cmux-menu-*; spec: leo-workspacedesign/grid.md5.3): the highlight 5 from the popup edge, radius 5, 28 rows, the checkmark centred on the state column at 10 in every row of a menu that has one, icons on one column, and the text on one column. One shared rule inpopupSurface.cssreplaces each menu's own row padding.An icon column is reserved only when a row in the menu carries an icon: the text starts at 15 with no state column, at 22 right after the check (the select keeps #28530's 22,
design/settings.md), and at 35 or 42 when there are icons.Kept as they are, because a newer settled design puts the chosen row's check in its number's place at the trailing edge: the model picker and its side menus (#29791,
design/model-picker.md), its effort menu, and the mode menu (Claude Code's look, Leo 2026-10-19;composer-claude-split.test.ts,access-grants-columns.test.ts). Whether grid.md 5.3's leading state column should also cover them is a follow-up for the picker owner.Measured (Chromium, gallery, light; px from the popup's leading edge)
Right-to-left, every column above measures the same from the menu's leading edge, headings included.
Before / after (gallery, Linux Chromium, 2x, light and dark)
I opened every after image: the checks sit on one state column, icons and titles on one column each, headings on the titles' column, and the project chooser's hairline back on the separator inset. The composer + menu's filled search field keeps its own inset (a separate field style, follow-up #30142).
Viewed after image: yes (2x, light and dark, above)
Tests (Linux, real Chromium/WebKit via
cmux-ci test):checkmark-alignment,project-menu-geometry,picker-row-geometry,quick-model-menu-layout,model-menu-density,access-grants-columns,composer-claude-splitand 16 other menu suites pass (336 pass);bun scripts/check-design-tokens.tsandcheck-menu-metrics.py's web check pass. The only reds aregrid-linestranscript.actions/after-steer(warn-level), which fail the same way on base.checkmark-alignmentandproject-menu-geometryfail on every menu (17 tests).Follow-ups from review: #30142.
Gallery: ui.menu/open, ui.select/open, ui.context-menu/open, ui.combobox/open, agent-pane.composer-plus-menu/balanced, agent-pane.header-tools/menu-open, agent-pane.project-chooser/open-current
Agent session: agent session
🤖 Generated with Claude Code