Commit Graph
2 Commits
Author SHA1 Message Date
yetone fd568caf7d plugins: Discover is one market, with this week's picks on top
The owner asked for one market instead of three (magpie's community,
other npm authors and repositories tagged magpie-plugin on GitHub) and
approved the mockup: every plugin is the same card, its source said
under its name, a strip picks the kind and a menu the source. The top
is the week's picks: one a day from the community's most downloaded
not installed yet, the most downloaded and the most starred. A search
looks through every source at once, most used first. GitHub's slower
answer shows a word that it is being asked, and a failed ask a quiet
line with another go.

The GUI tests that named the three sections now find the cards by
source. plugin-manual-float picks Subscriptions so all 40 cards draw
(Discover's shelves cap at 6). plugin-github waits for WebKit's wheel
scroll to come to rest after reaching a card: it went on after the
last wheel, and the scroll that was measured as the click's was its
own (logged before, settled, open and closed: it moved before the
click, never after).

Run at 563b3dd92, the pushed head's tree (only messages changed since),
on origin/main 40fbec705:
- mote: gofmt -l internal/gui empty; go vet ./internal/gui,
  GOOS=linux go vet -tags nogui, GOOS=windows go vet; go build,
  GOOS=linux go build -tags nogui, GOOS=windows go build: ok.
  go test ./internal/gui ./internal/plugin ok (TestCoreScriptBudget
  in it).
- mote GUI, plugin*, old-webkit, market*, builtins, skill-edit, i18n*,
  gui-*, about*, agent-plugin* files: 1,283 ok, 50 not ok, in
  plugin-move-unserved (#4410), market-have (#5997), old-webkit's
  app.css :has() (#5919), gui-ja's {model} (#5943),
  plugin-signin-no-url (#5938), plugin-signed-out-account (#5998) and
  plugin-card-update once; each red the same alone at origin/main
  90f9f01a2, where plugin-card-update was red too.
- Rebased onto 459405960 (c4da9a97d's title-bar drag in app.js and
  app.css among it): gofmt, go vet ./internal/gui and the Budget and
  Script tests of internal/gui again: ok.
- Before the rebase (on 783cd0f84): the whole GUI suite on
  magpie-desktop (WSL), its 132 red files again beside main: 95 red the
  same on main (#4600, commented), key-replace red 3 of 3 alone on main
  too; old-webkit's color-mix and plugin-github were this change's and
  are fixed; library-hooks, -items, -loading and -subagents red the
  same alone on main (#5997).
Not tried: the real app; screenshots come from the GUI test pages.
2026-11-11 01:51:15 +08:00
yetone 93b31f5b79 plugins: Discover's install box floats at the foot of the list (0x3108 on X)
With many plugins, Discover's "Have one in mind?" box (install by name)
was found only after scrolling to the very end. It now sticks to the
bottom of the view while the cards scroll under it, on a strip of the
page's own background (no shadow, no gradient), with the same dashed
box. At the end of the list it sits in its place, above the npm
registry line, and every card is above it. Its place in the DOM is
unchanged. The strip blocks clicks so they can't reach a card hidden
under it. Because a sticky box paints its ::before over its own border,
the dashed border is now drawn by ::after. A scroll-padding-bottom keeps
a card reached with Tab from stopping under the box.

CSS only (plugins.css), so no script budget moves. Main's existing core
budget red is #4526. Siblings: Discover is the only page that renders
this box (manual() in plugins.js). Library's skills install card is
already at the top of its page.

Run:
- New test, internal/gui/tests/plugin-manual-float.test.cjs: 40 cards,
  en/zh/zh-TW/ja/de, 390x780, 560x800, 980x820 and 1280x800. The box is
  in the view at the foot at the top and mid-way (wheel scrolling), with
  no card showing above or below it. At the end, the last card is above
  the box and the registry line is below it. Tab from the cards never
  stops under the box. The search field takes keys and Escape brings
  the box back.
  Chromium on mote: 6/6 pass, 3 runs. WebKit through wsl-run (Linux):
  6/6 pass.
  With plugins.css at origin/main, both engines are red: "390x780 at
  the top: the box is in the view" (the box sits at ~6100 in a 780 view).
- The 63 GUI files the change can reach (plugin*, plugins-more-discover,
  signin-paste-plugin, account-plugin-user, agent-plugin-agents,
  i18n-keys, click-scroll), run at --test-concurrency=4:
  - WebKit (wsl-run): 9 reds in 5 files. Rerun serially, they are the
    same 9 at base 0956ca49d and on this change: click-scroll's
    late-heard wheel (#4385), i18n-keys "Unmarked" (#4524),
    plugin-card-update (#3079), plugin-move-unserved (#4392, #4410) and
    plugin-move (#4393). All were already filed.
  - Chromium (mote): most reds are "browser has been closed" crashes
    under the parallel load (#4304). A serial rerun on mote was not
    finished when this was pushed.
- Screenshots checked by eye at 980x820 mid-way and end, and 390x780 de.

At the pushed head (on origin/main 2eac91617): the new test is 6/6 in
Chromium on mote and 6/6 in WebKit through wsl-run.

Not tried: WebKit on macOS (it times out at launch on mote), the real
app window.
2026-10-31 13:52:36 +08:00