Repository navigation
feat(workbench): one surface, row and tooltip for menus and popovers - #6733
Merged
Merged
Conversation
Menus, selects, context menus and popovers each set their own inset (4, 6 or 8), fill and row geometry, and none of them cast a shadow, so a popover over the composer blended into it. They now share `floatingStyle` and `menuRowStyle` from ui.tsx: one step above the panel, a line and a shadow, radius 12 with inset 4 so rows (radius 8) are concentric, an icon lane at 12 points and text at 36. - Sandbox and approvals: no title or close button; access levels get their own icons and a trailing check instead of radio buttons, full access reads in warning with its consequence, and approval requests become one switch row whose detail replaces the separate note. - Recent folders: one line per folder (the path moves to the tooltip, a parent name is added only when names collide) and no remove command. The list keeps the latest ten, so the `remember: false` path is gone. - Conversation actions: no title, distinct icons (children and fork, rename and compaction prompt no longer share one), 32-point rows, groups by purpose, an ellipsis on commands that open an editor, and one term (对话, 分支) across the menu. - Rows inside every floating surface hover with `floatingRaised`, since the dark surface is `raised` and the old hover would vanish. DESIGN.md records the rules under "Menus and popovers". Co-Authored-By: Claude Opus 5.5 <[email protected]> Generated-by: Claude Code (Claude Opus 5.5)
…he menu rules The composer's completion list, its send-button menu and the three tooltip variants still drew their own surfaces after the first pass. - Completions use the floating surface and menu row: 32-point rows with the description on the same line, a section name per kind (Commands, Skills, Files) instead of one title that said "Skills" over commands, one highlight for the current row, hover and focus, and a borderless search row with a separator in place of a filled field that would vanish on the light surface. "Add to message" moves its shortcuts to the trailing lane and gives Goal its own icon. - The send-button menu uses the shared surface and rows; Esc sits in the trailing lane instead of a tooltip on the item. - Tooltips keep NSH's bubble but read Maka's colors, so custom palettes reach them; turn navigation and image previews use the rich variant. Co-Authored-By: Claude Opus 5.5 <[email protected]> Generated-by: Claude Code (Claude Opus 5.5)
…ents on read Review of the menu redesign found two gaps. - A new draft's approval setting is null until the user picks one: it inherits the Host's setting when the conversation is created. The switch drew that as Off while the conversation would still ask for approval. It now reads Default until a value is chosen. - The ten-folder cap ran only on writes, so a list stored before it kept every folder until the next selection. Reading now caps too. The client's tests/workspaces.rs has not been compiled since #6713 removed `mod tests;` from lib.rs, so it never ran; a test beside `workspaces::set` replaces it and fails without the cap. Completion rows also keep the name whole and truncate the description first. Co-Authored-By: Claude Opus 5.5 <[email protected]> Generated-by: Claude Code (Claude Opus 5.5)
Astro-Han
marked this pull request as ready for review
November 10, 2026 08:09
This was referenced Nov 10, 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.
Summary
Menus, selects, context menus, popovers and tooltips each set their own inset (4, 6 or 8), fill, row geometry and colors, and none cast a shadow, so the sandbox, folder and completion menus blended into the composer they open over. They now share one surface, one row and one tooltip from
ui.tsx, andDESIGN.mdrecords the rules under Menus and popovers.floatingStyle): one step above the panel (floating:backgroundin light,raisedin dark), onelineborder and one shadow, radius 12 and inset 4 so 8-radius rows are concentric. Every menu, select, context menu and popover in the workbench and the composer uses it. Rows inside hover and take focus withfloatingRaised, since the dark surface is alreadyraised.menuRowStyle): 32 points high, a 16-point icon 12 points from the edge, text at 36, a trailing lane for the check, switch or shortcut. No titles or close buttons; the trigger names the menu and Escape or a press outside closes it.warningand says what it means. Approval requests become one switch row whose detail replaces the separate note; a new draft that still inherits the Host's setting shows Default rather than a guessed On or Off.workspaces.rs), an unavailable folder already has Retry, soset_recent_workspaceloses itsrememberflag.tooltipLook: popover fill, border, radius 6, no shadow, not inverted) but read Maka's colors, so custom palettes reach them; turn navigation and image previews use NSH's rich variant.scripts/lucide.py(eye, file-pen, shield-off, hand, list-tree, fold-vertical, goal).Before / after
Desktop test renderer (Helvetica), same fixtures. Left:
rust-previewbaseline; right: this branch. The first three rows are 1280×800; the completion rows reusedesktop_new_draft_completes_commands_skills_and_files_without_creating_a_sessionat 1280×800 with one extra capture for the + menu.Review focus
products/maka/client/src/tests/workspaces.rshas not been compiled since feat(agent): add durable execution and interruption recovery #6713 removedmod tests;fromlib.rs. This PR deletes it and addsjournal::workspaces::tests::recent_workspaces_keep_the_latest_ten_without_duplicatesbeside the code; that test fails without the cap.Verification
cargo nextest run -p maka-cli -p maka-desktop-shell --features maka-cli/desktop-tests --test native-desktop): 17 of 21 pass, including the completion, folder and model-settings cases.desktop_continues_a_failed_run_without_duplicating_the_user_message,desktop_goal_commands_create_pause_resume_and_finish_without_losing_the_draft,desktop_lists_a_scripts_tool_calls_in_place_of_the_scriptanddesktop_steering_freezes_each_message_and_queue_is_one_shotfail the same way onorigin/rust-preview(bb914bde38) on this machine: the submitted message never reaches the fixture provider.maka-workbenchnextest 27/27;maka-app-client1/1 (the new journal test).ui_types+tsc),tsc -p products/maka/bundle,node scripts/ci.mjs check formatclean;cargo clippy --no-deps -- -D warningsonmaka-app-clientandmaka-workbenchclean.a4985ca2f7: the inherited approval state drawn as Off, and recents stored before the cap not capped on read.AI use
Select exactly one:
Tool(s) and scope: Claude Code wrote the implementation, the tests and this description; GPT 6.1 Sol (Codex CLI) reviewed the branch. The commits carry
Generated-by: Claude Codetrailers.Checklist
Does this PR entail a change in behavior?
🤖 Generated with Claude Code