Repository navigation
feat(chat): rebuild the radial context menu and move its settings to General - #1961
Merged
Merged
Conversation
The opt-in transcript ring showed icons only and put the active label in a tiny hub label, so an action could not be read before hovering it, and the wedge fill plus a separate button background painted two highlights over one target. Rebuild the surface: every sector carries its icon and label at rest, the active sector fills once with no focus rectangle, the hub is a recessed well the click point sits in, the disc shrinks from 320 to 248 px with hairline separators and the composer shadow, and hover and reveal follow the shared motion tokens. Add the standard marking gesture: a right-press started while the ring is open runs the sector it is released on, releasing in the hub dismisses without running, and the trailing release of the opening right-click is inert. Storage, action vocabulary, and defaults are unchanged.
The ring's switch lived in the AI tab although the surface is a transcript-interaction preference. The card now sits in General right after Sidebar and the settings-search index follows it, so a search for the ring still lands on the owning tab and the settings-search test pins the owner. Resolution, persistence, and the direction pickers are unchanged.
Two capture scenes shoot the opt-in ring over a seeded transcript in both themes with a hovered sector, so the redesigned surface stays reviewable outside the app shell. The capture rig gains a seedRadialMenu fixture that flips the preference in the store the transcript reads, without writing the settings file.
The interaction spec describes the at-rest sector labels, the single wedge highlight, the recessed hub, and the marking gesture; the settings-IA card moves to General in both languages; the E2E scenario covers at-rest labels, the marking release, and hub dismissal; and the decisions log records D678 in English and Chinese.
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
Reimplement the opt-in radial context menu on the empty transcript background (D678): every sector now shows its action's icon and label at rest, the active sector fills as a single highlight (the duplicate button background and the focus rectangle are gone), the hub is a recessed well carrying the click-point dot, the disc shrinks from 320 to 248 px with hairline separators and the composer shadow, and hover / reveal motion follows the shared motion tokens. The standard marking gesture is added: a right-press started while the ring is open runs the sector it is released on, releasing in the hub dismisses without running, and the release trailing the opening right-click is inert.
The settings card moves from the AI tab to General (after Sidebar), with the settings-search index following it. Action vocabulary, per-direction defaults,
AppSettings.radialMenu, persistence, and IPC are unchanged; the ring stays opt-in and off by default.Changes
feat(chat)—RadialMenu.tsx,ui-kit.css, transcript ring icons 18→16 px, and the updated Chromium component probe (scripts/e2e/radial-menu.tsx) covering at-rest labels, the marking release paths, and hub dismissal.feat(settings)— card relocation, settings-search index, and unit pins (radial-menu.test.mjs).test(capture)—pi-radial/pi-radial-darkscenes over a seeded transcript, plus aseedRadialMenucapture fixture.docs(spec)— interaction-patterns §1.11, settings-IA, E2E-CHAT-radial-background-menu (EN + zh-CN mirrors), decisions log D678.Validation
node --test apps/desktop/test/radial-menu.test.mjs— 6/6.node scripts/e2e-radial-menu.mjs— Chromium component check green (at-rest labels, pointer highlight, click / hub / disabled / Escape, marking release + hub dismissal + inert trailing release, arrow keys, viewport clamp).tsc --noEmit(desktop) — clean;scripts/check-style-tokens.mjs— clean;scripts/check-architecture.mjs— passed;docs:check— 86 locale pairs and 596 pages verified.electron-vite buildandcargo build -p host-core— pass; the real-app capture suite producedpi-radial/pi-radial-dark(light + dark, hovered sector), which were visually reviewed.node_modules/distabsent, e.g.Cannot find module .../worktrees/.../packages/i18n/dist/...); the same 17 files pass 261/261 in the clean checkout, and no failure touches the edited surface.Notes
AppSettings.radialMenuvalues keep working.pnpm check:pr-baseverified the branch contains the currentmaintip (68868df).