Repository navigation
Conversation
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 21, 2026 06:50
f02fe65 to
f13e8bd
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
2 times, most recently
from
October 21, 2026 12:24
9ac8391 to
63aee33
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 21, 2026 12:24
9c1ee0c to
1ad4513
Compare
nwparker
marked this pull request as ready for review
October 21, 2026 12:24
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 21, 2026 20:13
63aee33 to
fc57ac1
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 21, 2026 20:13
1ad4513 to
b1f3d9b
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 24, 2026 11:45
fc57ac1 to
a9a0779
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 24, 2026 11:55
38e8e0a to
3afb404
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 24, 2026 13:32
a9a0779 to
5941b71
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 24, 2026 13:32
3afb404 to
605d163
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 25, 2026 05:23
5941b71 to
d09bad7
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 25, 2026 05:23
605d163 to
b9ce472
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 26, 2026 08:16
d09bad7 to
0841372
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
2 times, most recently
from
October 26, 2026 12:04
f6616e0 to
d270f1e
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 26, 2026 12:04
0841372 to
9de70e4
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 26, 2026 12:32
d270f1e to
5bb25bc
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
2 times, most recently
from
October 28, 2026 04:58
430af60 to
610baec
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 28, 2026 04:58
5bb25bc to
fafabd1
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 28, 2026 05:31
610baec to
03bfa24
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 28, 2026 05:31
fafabd1 to
0a18703
Compare
This comment has been minimized.
This comment has been minimized.
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 28, 2026 05:45
0a18703 to
4310dec
Compare
…atalog Settings > Plugins no longer opens a confirm dialog and then a review dialog. - Content-only catalog plugins install from their card or page in one click; main turns them on only when the verified manifest is data. Undo stays in place for 10s. - Plugins that run code or instructions show "If you install <Name>, it can:" on the host security surface above one Install & enable, which stays off until the access rows are read, and approves exactly the fingerprint shown. Review of an installed plugin happens on its page too (Enable / Keep off); Remove stays in its menu. - The catalog is a grid of cards drawn from what each plugin is (its theme colours once installed, a code sample, keycaps), with the name as a stretched link and one action. - The page pins the listing it opened, says "Newer version available" instead of swapping rows, and previews are prefetched only on hover intent, capped per visit. - The plugin system switch, file suggestions, catalog sources and development folders move into a header menu; amber text uses a contrast-safe token.
…ries, disclose replaced shortcuts - The page pins the listing it opened; a preview of any other release (commit, catalog commit or execution profile) leaves Install & enable off and shows "Newer version available". One-click installs from a card refuse the same mismatch. - Warnings are the union of the verified profile and the contributions: a panel that also adds commands gets the instructions warning, never "bounded" or "own files only"; unknown contributions over-warn. Access rows follow the same rule. - Shortcuts that replace one of yours are named in the consent before install, from the manifest or the catalog summary; the shortcut list itself stays in Adds to Orca. - Pages paint from the catalog summaries, capabilities and theme palettes, and show the cover (or the card's art) as a hero, with screenshots in a strip and lightbox. - Installing fills a reserved status line and keeps its action row (Undo, Use now), so the page doesn't move; the settings scroller keeps a stable gutter. - Row art names the plugin type instead of initials, rows drop the "Needs review" word, the content hash moves into the menu, and card art is tinted and coloured.
…us line follow what an installed plugin carries
…nifest, polish the page Code review: - A page or card arms Install only when the preview matches everything the listing showed (catalog commit, release commit, content hash, execution); any change, including a catalog-only refresh, reads "Newer version available". One-click installs send the preview's fingerprint as expectedFingerprint, so main turns on only those bytes. - Install stays off while a catalog refresh is in flight. - Trust uses the full verified preview manifest when present; a capped catalog summary counts as unknown and gets the stronger warning. - The installed-manifest read is keyed by plugin and installed revision, so a same-key update never pairs old contents with the new fingerprint. - A failed Undo shows its error on the card or page and keeps Undo to retry. - The security-surface test now covers the inline consent instead of the removed dialog. Visual: - Lightbox: close button clear of the image, "1 of N" with previous/next and arrow keys, content scrolls on short windows, focus returns to the opening thumbnail. - Keycap art shows the plugin's own first shortcut, larger, with the platform's keys. - The hero fills the content column; a screenshot identical to the cover isn't repeated. - "Change in Shortcuts" is a link; the chip says "Adds commands" (or "Runs a worker", "Adds a panel", "Content only"); the disabled button says "Reading what it can access…". - A content-only plugin's action row keeps fixed slots, so its note doesn't move on install.
…age, final review fixes
- The page shows the decision (Install, the consent, Enable) before the picture, and the
picture is capped and cropped from its centre, so the button is in view at 1280x800 and
900x700. Nothing grows after first paint.
- The consent gives no access verdict while the plugin is still being read.
- A file-type suggestion opens the plugin's page instead of the old install dialog; that
dialog now serves updates only.
- A theme plugin reserves its "Use now" line from first paint; the action slot and its
button share one width.
- The file-suggestion toggle reports a failed save; a failed Undo is reported once, on
the card or page that offered it.
- Cards show a plain trust chip ("Content only", "Adds commands"); the local and bundled
group reads "Bundled & local".
- Install error copy moves into the protected plugin namespace, and the new consent
components join the language-pack security pins.
- Dead code goes: the keybinding consent preview (its conflict helper stays), its strings,
trustRunsNothing and the access-only preview plumbing.
…in on/off switch in the UI - Plugin page: Install (content only), Install & enable (disabled until its access is read), Enable / Keep off (installed, waiting for review) and the installed switch share one slot top-right of the title. The consent sits directly under the header with no button of its own; the "Can't reach anything outside its own files" note sits on the line under the publisher, which every state reserves, so nothing moves between states. - Removed "Turn off plugins" from the ⋯ menu and the "Turn on plugins" button from the off state. The setting and all gating stay: off now comes only from policy, and the page says so without a switch. - e2e journeys turn plugins on through the setting and use the page's one button.
…card menu Plugins stay opt-in, so the off state keeps its Turn on button; only the menu's Turn off item stays removed. Installed catalog cards get a sibling more-actions menu with Remove (immediate, inline error) and Turn off/on, inside a fixed-width action slot so the footer doesn't shift.
… Use now buttons The toast action opens the plugin page rather than applying a theme, so it always says Try it. Terminal themes often share their app themes' names, so their Use now buttons carry a terminal icon. Update the update-review e2e for the Use now accessible names.
… enables it Installing (card or page) or enabling a plugin that adds themes now applies its app theme (matching the current light/dark mode), icon theme and terminal theme at once, with a 'Now using' toast whose Switch back restores the previous selections. Updates, startup discovery and catalog refreshes never apply. Co-Authored-By: Claude <[email protected]>
… art by stable names
nwparker
force-pushed
the
nwparker/plugins-v2-12-plugin-list
branch
from
October 28, 2026 10:53
03bfa24 to
9e718e2
Compare
nwparker
force-pushed
the
nwparker/plugins-v2-13-install-ux
branch
from
October 28, 2026 10:53
4310dec to
5a78039
Compare
Contributor
Author
|
Folded into #35470 (Plugin Alpha), which lands the rest of the plugin stack in one PR. |
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.
ELI5
Installing a plugin used to take two pop-up windows. Now a theme or language installs in one click, and a plugin that can run commands or code shows what it may do right on its page, above a single "Install & enable" button. The catalog also shows plugins as picture cards instead of a plain list.
What Changed
Stacked on #31107 (
nwparker/plugins-v2-12-plugin-list).Before: In Settings › Plugins, Install opened an "Install plugin" dialog that repeated the plugin's name. After the download, a second "Review plugin" dialog appeared on top. A plugin page loaded part of its content late, so the page jumped down after it opened. Plugins appeared as text rows with two-letter initials. Two set-once settings sat in a large card above the catalog.
After:
Mechanism:
installMarketplacePluginwithenableIfDataand the preview'sexpectedFingerprint. Main turns the plugin on only if the installed manifest is verified asdataand its fingerprint matches. Otherwise the plugin stays off, and the page shows the consent. That main-side path landed in the schema branch; this PR wires the UI to it.consent(approve, reviewedFingerprint)using the fingerprint of the preview the page showed. Main refuses the approval if the installed bytes differ.Why
The two dialogs asked twice for the same decision and showed the trust information only after the download. Putting the consent on the page, directly above the button that grants it, lets you read it before you act and removes both pop-ups.
Content-only plugins can't run anything, so the click is the consent, as in other editors' theme stores. That is only safe if main checks it, which is why the page asks and main decides by the verified manifest and fingerprint.
We considered keeping one confirmation dialog for code plugins. A modal still interrupts, and it would hide the plugin page you were reading. We also considered prefetching previews on idle. Each preview is a git checkout, so hover intent with a cap keeps network and disk use bounded.
Linked Issue
Stacked on #31107.
Visual Proof
Screenshots will be attached in a comment: before (the two dialogs and the late-loading page) and after (catalog grid, consent page, one-click with Undo, installed theme with "Use now"), at 1280 and 900, light and dark.
Testing
expectedFingerprintis sent;plugin-demoandplugin-marketplace-contente2e specs now install and review on the page and assert that no dialog appears. All 8 plugin e2e specs pass;plugin-demo's panel hot-reload step is flaky on the base branch too.Not tested on Linux, Windows or SSH. Shortcut labels and keycap art pick ⌘/Ctrl from the platform, and all checks run in the host's main process.
Review
Start with
use-plugin-page-model.ts(pinning, release match, trust inputs) anduse-plugin-install-action.ts(one-click, approval, Undo). Then readPluginInstallConsent.tsxandplugin-access-profile.tsfor the consent and warnings.Agent skill upstream boundary
Notes
enableIfDataandexpectedFingerprint, so the plugin comes back pending and the page shows the consent;executionfield or catalog summary gets the stronger warning.Checklist
N/Awith reason (to be attached in a comment)pnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass:plugin-grammar-worker-client, "ErrorEvent is not defined");pnpm lintandpnpm buildwere not run; CI will cover them.