Commit Graph
2 Commits
Author SHA1 Message Date
yetone 5b1709eee8 gui tests: six more pages get a minute for their first load (#4470)
nav-timeout.test.cjs (ce8b67de3) holds every page with a 5s default to a
60s navigation timeout. account-weight (88ecae173), account-refresh,
claude-tui-setting, editor-advanced-align, routing-day-tallies and
vision-instead were added or changed after it without one, so the guard
was red on main ("every page with a short default timeout loads with a
minute's room", six files listed). Each now sets
setDefaultNavigationTimeout(60000) beside its 5s default.

Run on the Linux box (wsl-run) at this head: nav-timeout and the six
files, 45/45; nav-timeout was red there at 88ecae173 and at f63cf0bfc.
Test-only, so no tag.
2026-10-31 15:57:17 +08:00
yetone 923812362a gui: each account in a provider editor has its own usage refresh
The owner, on the editor's account list: 在这里也要加上手动刷新用量的按钮。
Each signed-in account gets a refresh after its plan chip, always shown.
It posts usage/quotas/refresh for that provider and user, as the Usage
page's does, then reads the account rows again (quotaRefresh takes a
then-hook its turn waits for), so the row shows the new reading. A
signed-out account has none.

It sits on the account's own line, which never wraps. First it was at
the end of the readings line: where the meters filled it, it added a
second line, and WebKit kept the old row height until a click, drawing
that line over the next row (window-cap, WebKit 1100 en: "row moved
152 !== 134"). A nowrap wrapper with the last meter still wrapped.

Run: account-refresh.test.cjs (new: shown without hover, beside the
plan, inside the row, tip in every language, a click asks for
"claude first@example.com" and the line shows 64, no sideways scroll),
both engines, en/zh/zh-TW/ja/de at 1000, 560 and web 390, on wsl-run
(mote's WebKit is broken, #4125). With window-cap, account-models,
editor-advanced-align and account-row-line: 90/90.
Broken by hand: without the then-hook the line never shows 64 and the
test times out; the readings-line placement is red in window-cap.
Budgets: app.js 1,315,479 and the core 1,538,554 at this head, rebased
on 23a5e822d; both raised to exactly that, no room added (the editor is
the core's own; noted in core_budget_test.go).
go test ./internal/gui/ on mote: ok but TestCoveredWindowStaysUp, killed
at its deadline (mote's AppKit hang, #4125). go vet ./internal/gui/ on the
Windows box: ok; on the WSL box it can't build (no webkitgtk-6.0/gtk4
dev packages there), so Linux vet is CI's.
i18n-keys, gui-ja and three editor files: 45/45 on wsl-run.
Not tried: a real account's refresh in the app.
2026-10-31 10:40:12 +08:00