Files
magpie/internal
yetone 48fffb60c5 gui: the provider editor waits for its Advanced headings before it draws (#7051)
31575f71a grouped the editor's Advanced rows from advgroups.js, imported
as Providers first draws. An editor opened before the import landed drew
its rows ungrouped and moved them under headings a moment later, so a
reader saw the rows jump and settings-groups read either order (red 6 of
14 on origin/main 61c714ed0, both engines, en and zh).

renderProviders now waits for the import (a local file, a few ms) before
it draws an open editor, and groupAdvanced groups in the same draw. A
failed import draws the editor ungrouped rather than not at all.
settings-groups lists Claude's rows in the grouped order.

Run (mote, at this tree):
- settings-groups 3 runs, advanced-headings, provider-prefs,
  settings-search, provider-unsaved-paths, Chromium and WebKit: all pass
  (14, 10, 20, 18, 4).
- go test ./internal/gui -run 'TestCoreScriptBudget|TestI18n|TestCSS': ok.

Broken by hand, then put back:
- the wait removed and the import held 400ms: settings-groups 6 of 14 red.
- the wait kept and the import held 400ms: settings-groups and
  advanced-headings green.

Not tried: the real app window, the full GUI suite.
2026-11-18 14:56:22 +08:00
..
…
…
…
…
…
…
…
2026-11-17 15:09:29 +08:00
…