Files
magpie/internal/gui
yetone 611a6331fb gui: the update's notes open once, with every release, not one line first
Clicking Update (the header pill, or Settings › About's Restart to
update) opened the sheet at once on the downloaded update's own notes,
often one line, and only after /api/update/notes answered (it asks the
feed again and fetches every release between, seconds) swapped in the
real list. It read as a one-line changelog that then jumped to the full
one (the owner). Now the clicked button is busy while the list is asked
for, and the sheet opens once with all of it; past 15s, or on a failed
ask, it opens with the update's own notes as before. A release out since
the download (#910) is named in the title from the start.

Run on mote at this tree (base ef81b7ad1):
- update-notes-ask: 16/16 (chromium, webkit; en, zh). The new check
  records every sheet drawn and needs the first to hold the whole list,
  and the pill busy until then.
- Broken by hand: the new test against origin/main's app.js and
  whatsnew.js fails "the sheet opens with the whole list, never the
  update's own notes first" (and the busy check), 4/16 red.
- update-wait 22/22, whats-new 4/4, whats-new-failed 4/4,
  whats-new-range 12/12, menu-scroll 24/24, old-webkit 6/6.
- go test ./internal/gui (TestCoreScriptBudget): ok.
- Red the same at untouched ef81b7ad1, already filed: recovered-file
  10/10 (#4320), i18n-keys "a plugin's words are its own" (#5332,
  #5426, #5482).

Not tried: the real app with a real pending update; the sheet's
behaviour is the same JS the tests load.
2026-11-07 21:45:31 +08:00
..
…
…
…
…