73ecef0b36cd8a3467eb70fbdd9799ea98db9b7d
1
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
65f745dd4c |
plugins: Installed is narrowed by Discover's kinds and origins
WJaunita45604 on X asked for the Installed tab to be filtered by Discover's categories, and by whether a plugin is official, with Discover's own categorisation. Installed now has the same strip and menu as Discover: - the kinds strip (All, Subscriptions, Middleware, Agents, Tools, Pages), each with how many are installed; - the Origin menu (magpie community, other authors, unofficial on GitHub), without Discover's "Not installed only". browseBar's strip and Origin button are split out (kindStrip, originButton) so both tabs draw the same component. The rest is in plugininstalled.js, imported when Plugins first draws, as plugingrid.js is (old-webkit lists it); until it is in, the list is drawn whole. What is left in the core is 674 bytes, within its budget's room. A plugin Discover lists is put where its card is (kindOf, srcOf). One it doesn't list (a folder, an unlisted npm package) is put by what it is: middleware or gateway, agent, tools only, a page, else a subscription; from GitHub, @magpie-community, else other authors. The strip shows only when two or more kinds are installed, and the menu only when two or more origins are. A pick that leaves nothing says "No plugin matches" with Show all. Installed keeps its pick across tabs and Discover keeps its own. The list head grows when it wraps (.pm-listhead.pm-bar), so a narrow row doesn't run under the list. There are no new strings, no native select (the app menu), and no left-border accents. New plugin-installed-filter.test.cjs: seven installed plugins of every kind and origin, two of them GitHub repos from fixtures/plugins-github-31. It runs in every language, both engines, at 1100px and 420px. Run (on mote, Playwright 1.62.0, chromium + webkit): the new test, 20 of 20. Red on origin/main |