Files
magpie/internal/gui/tests/fixtures
yetone 1eea68e0cd gui: Plugins' "Unofficial, on GitHub" has its kinds to pick and a field of its own to narrow it
The owner: 这里应该有分类以及搜索框方便用户筛选. The section lists every
repository tagged magpie-plugin, 31 on the dev instance today, as one
long grid, and the page's only search ("Search plugins and npm…") sits
at the top and also asks npm.

Once more than six repositories are tagged, the section's head has:
- its kinds as a segmented control (All · 31, Provider · 27,
  Middleware · 3, Agent · 1): only kinds that have repositories, each
  counting what the field leaves, and none when one kind is all there is;
- a field that narrows by name, author or description as it is typed,
  with Escape to clear it;
- "No plugin on GitHub matches" with Show all when nothing is left.
Both narrow what the page's search has already found. Only the section
is drawn again as they change. The section, its field and the page's
body are made once and kept in the page, as the page's own field is
(#1055), so an answer that redraws the page while someone types (npm's)
keeps the field's focus and every key. Strings in zh, zh-TW, ja and de.

Run:
- plugin-github-filter.test.cjs (new), built on the dev instance's real
  /api/plugins/github answer: chromium and webkit, en/zh/zh-TW/ja/de,
  980px and 440px, 22/22. Putting back drawBody's replaceChildren turns
  the field-keeps-its-focus check red.
- Every other plugin-* GUI test, plus i18n-keys and nav-sub-unroll, in
  both engines: all green. plugin-github went 0/18 at first, because two
  fields matched its `.pm-find input`; with the six-repository threshold
  its four repositories show the plain grid, and it is 18/18.
- Looked at in dark WebKit at 1200px and light Chromium at 440px.
2026-10-13 04:52:38 +08:00
..