1ccacad63281094de8a3372d5a507d38f9969e5c
2
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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 |
||
|
|
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 |