Skip to content

feat(chat): rebuild the radial context menu and move its settings to General - #1961

Merged
vastsa merged 4 commits into
mainfrom
feat/radial-menu-redesign
Oct 28, 2026
Merged

vastsa merged 4 commits into
mainfrom
feat/radial-menu-redesign

Conversation

@vastsa

@vastsa vastsa commented Oct 28, 2026

Copy link
Copy Markdown
Owner

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-dark scenes over a seeded transcript, plus a seedRadialMenu capture 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).
  • Source-contract suites that read the edited files — 80/80.
  • 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 build and cargo build -p host-core — pass; the real-app capture suite produced pi-radial / pi-radial-dark (light + dark, hovered sector), which were visually reviewed.
  • Full desktop suite in the task worktree: 4337 tests, 4317 pass, 17 fail, 3 skip. All 17 failures are symlinked-worktree environment gaps (per-package node_modules / dist absent, 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

  • No persistence, IPC, protocol, or permission changes; existing AppSettings.radialMenu values keep working.
  • pnpm check:pr-base verified the branch contains the current main tip (68868df).

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.
Copilot AI balanced review requested due to automatic review settings October 28, 2026 18:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@vastsa
vastsa merged commit 79fb39b into main Oct 28, 2026
6 checks passed
@vastsa
vastsa deleted the feat/radial-menu-redesign branch October 28, 2026 18:26
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.

2 participants