Skip to content

Fix editor upgrade affordances and user-facing copy - #2960

Merged
camielvs merged 7 commits into
masterfrom
cvs/editor-polish-bugs
Oct 30, 2026
Merged

camielvs merged 7 commits into
masterfrom
cvs/editor-polish-bugs

Conversation

@camielvs

@camielvs camielvs commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Add review tasks button and upgrade components flow back to v2 editor

Summary

  • wire published component “Review tasks” to the current editor upgrade window anywhere in the v2 editor, including details opened from a task on the canvas
  • show the “Upgrades available” alert in the Component Search v2 window
  • make Ctrl the primary shortcut modifier on Windows/Linux in the v2 editor (it was Alt), so shortcuts match their Ctrl badges and the Learn tips; Ctrl-only shortcuts show as ⌃ on Mac
  • move Default layout from Cmd/Ctrl+D to Cmd/Ctrl+Shift+D; it shared Cmd/Ctrl+D with Duplicate, and whichever mounted last won
  • make unregistering a shortcut actually remove it (the shortcuts map stored observable copies, so the identity check never matched)
  • replace the internal search_components tool name in missing-implementation errors with user-facing “component search” copy

Tests

  • pnpm vitest run
  • pnpm run typecheck
  • pnpm run lint
  • pnpm prettier --check src/components/shared/ManageComponent/PublishedComponentDetails.tsx src/models/componentSpec/validation/validateSpec.ts src/models/componentSpec/tests/validation/validateSpec.test.ts src/routes/v2/pages/Editor/components/ComponentSearchV2Content.tsx src/routes/v2/shared/components/ShortcutBadge.tsx src/routes/v2/shared/components/ShortcutBadge.test.ts

@camielvs
camielvs requested a review from a team as a code owner October 27, 2026 22:21
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🎩 Preview

A preview build has been created at: cvs/editor-polish-bugs/173bda2

@camielvs
camielvs force-pushed the cvs/editor-polish-bugs branch 4 times, most recently from de1290e to ff223f8 Compare October 29, 2026 21:22

@Mbeaulne Mbeaulne left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤖 This is an AI-generated code review comment.

AI-assisted review, posted by Mbeaulne. Comments only, not an approval.

2 findings on this PR: 1 medium, 1 low. Each comment says in plain English what breaks and why, then how to test it, with the technical breakdown collapsed.

Two things that don't belong on one line:

  • Tests: the new "Review tasks" routing and the new alert in the Component Search window have no tests. The PR adds tests only for the shortcut label and the error-message wording.
  • Existing review: the only earlier review on this PR (5675577052, an AI-generated comment posted from the author's account) is a word-for-word copy of the #2956 review and says nothing about this PR's changes.

@camielvs
camielvs force-pushed the cvs/editor-polish-bugs branch 4 times, most recently from fcd2758 to 57915df Compare October 30, 2026 01:47
@camielvs
camielvs force-pushed the cvs/editor-polish-bugs branch from 57915df to 7c5cd26 Compare October 30, 2026 15:47
camielvs and others added 5 commits October 30, 2026 09:39
"Review tasks" picked the new-editor flow only when the details dialog
was rendered inside a window, so opening it from a task card on the
canvas fell back to the legacy overlay flow, which does nothing in the
new editor. Key the choice on the new editor's shared store instead.

Render the upgrade alert in Component Search directly; that window
always has window context and the alert box already branches on it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The new editor's keyboard store treated Alt (and the Windows key) as
the primary modifier on Windows/Linux, so Ctrl+Z, Ctrl+C and the other
shortcuts did nothing there while the rest of the app, the Learn tips
and the shortcut badges all said Ctrl.

Map the primary modifier to Cmd on Mac and Ctrl elsewhere. Off Mac,
shortcuts declared with Ctrl share that key, so Ctrl+O and Ctrl+Shift+M
keep working. Badges go back to "Ctrl", and Ctrl shows as the Control
symbol on Mac.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The primary shortcut modifier is now Cmd on Mac and Ctrl elsewhere, so
the old name no longer describes it. No behavior change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Default layout and Duplicate were both registered on Cmd/Ctrl+D, and the
registry keeps one handler per combo, so which one the key ran depended
on mount order. The Learn tip promises that Cmd/Ctrl+D duplicates the
selection.

Also update the tips that still described the old Alt modifier.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The shortcuts map deep-converted each definition into an observable
copy, so unregister's identity check never matched and shortcuts stayed
registered after their owner unmounted, still running stale handlers.
Store definitions as-is.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@camielvs
camielvs merged commit 383e6bf into master Oct 30, 2026
18 checks passed
@camielvs
camielvs deleted the cvs/editor-polish-bugs branch October 30, 2026 18:05
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.

3 participants