Files
magpie/internal/gui
yetone 6a46bad344 gui: Settings' search finds settings on every page, ⌘K opens it (canlee886 on X)
canlee886 asked for a search that reaches a setting by keyword even
when it lives outside Settings, such as routing group strategy and
members. Settings' search now lists, under its own results, hits from
the other pages, each under that page's name: Routing groups (a group
by name, its strategy, its members), Providers (the editor's fields,
e.g. Proxy, per provider), Agents, Library and Usage. Open goes to that
page and row (a group's editor at the field, a provider's editor with
the field lit) without scrolling anything the user didn't ask for.
⌘K / Ctrl+K, or the header's new magnifier, opens the search from any
page.

- The finder is a lazy module, finder.js (like provlinks.js), loaded on
  the first search. app.js only calls it, so TestCoreScriptBudget's
  budget is unchanged: core 1272271 (310 under), app 1087580 (668
  under), at fe038cfac rebased on 7f11dfc77.
- The routing plugin exposes routingFind and routingOpenGroup for its
  groups.
- The magnifier is the header's first thing to go when room runs short
  (a new "spare" stage before "tight"), so the brand still shows at 860px
  in the Windows window (brand.test.cjs went red without it). ⌘K and
  Settings' own box still reach the search there.
- No native select, no accents. Rows reuse the settings-search look.

Guard: find-anywhere.test.cjs, in Chromium and WebKit, in en, zh, zh-TW,
ja and de at 560x420 (with the magnifier at 1100), and on magpie web
at phone width. It types a group's name, "strategy" and Proxy, checks
the pages listed, opens each, and checks the landing row is in view
with no overflow. Red on the base (an archive of 88b65d758 plus the
test): both engines time out, with no results from other pages.

What was run, and where:
- WSL magpie-desktop (xiaomi-gpu), at fe038cfac (rebased on 7f11dfc77):
  gofmt -l clean; go vet -tags gtk3, GOOS=linux go vet -tags nogui and
  GOOS=windows go vet for ./internal/gui/... ok. go test -tags gtk3
  ./internal/gui: only TestClipboardReadBack red, the same on the base
  (#7073, #7074). GUI files find-anywhere, brand, settings-search,
  settings-search-reach, header-zoom-fit, header-centre, header-presets,
  header-relang, click-scroll, text-size, group-editor-fits,
  group-editor-align, i18n-keys and menu-scroll: 181 pass, 29 fail.
  The reds are webkit click-scroll (#4385), webkit header-centre
  (#3479), menu-scroll in both engines (#1550) and webkit text-size
  (#1866), all red the same on the base run.
- WSL magpie-desktop, before the rebase (on 88b65d758): the whole GUI
  suite, 29497 tests, 28180 pass, 1317 fail. find-anywhere was green in
  both engines. Comparing by name against a base run over the 418 tests
  both covered: 13 ok to red and 13 red to ok, all noise except brand's
  "the logo and name in the header", fixed by the spare stage above. A
  near-file run then had the same reds on mine and the base, plus
  group-editor-selected (#5049, #6876), and the guard red only on the
  base.
- mica: go vet before the rebase was ok. go test and the GUI suite there
  hit ENOSPC (disk full from other runs); the 8 tests it broke passed
  alone. That's why the suites moved to WSL.

Not tried: the real desktop app (only the GUI suite's pages), and
Windows' own webview.
2026-11-19 15:05:57 +08:00
..
…
…
…
…