On a slow line the section wasn't drawn until /api/plugins/github
answered, so Discover read as having no unofficial plugins (yetone:
当还没加载完的时候,压根就不显示,会让那些网慢的用户以为没有非官方插件).
While it waits, the section stands in its place before the field: its
head and hint, a quiet "Looking on GitHub" with three breathing dots
(role=status, aria-busy on the section), and three card-shaped ghosts
(logo, name, author, button, two lines, two chips) a soft light passes
over, each card a beat after the last. When GitHub answers, its cards
come in where the ghosts were with a short staggered fade-up. A search
while it waits shows the same. When the ask fails (and nothing was
loaded before) the section says "Couldn't ask GitHub: <error>" with Try
again, instead of disappearing. prefers-reduced-motion stops all of it.
Strings in zh, zh-TW, ja and de.
Run:
- new internal/gui/tests/plugin-github-wait.test.cjs: 18/18 on this tree
(Chromium and WebKit; en, zh, ja, de; 980 and 440 wide; held, search
while held, let go, 502 then Try again, no scroll on the click).
With MAGPIE_WAIT_ASSETS at origin/main's assets: 9/9 red (Chromium).
Screenshots of each state looked at.
- GUI files around it (plugin-*, i18n-*, builtins, nav-sub*,
click-scroll, old-webkit, mobile-web): 602/620 under load. The reds,
rerun one file at a time here and on origin/main a751f5282: the same
31 pass / 6 fail on both; the fails are plugin-other-ways, filed as
#2590. i18n-keys' plugins/routing duplicates and the nav-sub-unroll /
plugin-market timeouts passed on the one-at-a-time rerun.
- go test ./internal/gui: TestMainWindowCorners killed at 40s at load
~140-200 (#1936, sighting added); alone it passes here and on main.
- node --check on plugins.js and i18n.js.
Not tried: the real app on Linux WebKitGTK (CSS animation of
background-position and opacity only, no view transition).