Kiko03O1 on X asked for a better-looking Plugins › Discover page
("ui 设计能不能好看点"). Five things on it said one thing twice or said
it raw:
- A GitHub card had an "Unofficial" chip. A GitHub card is only ever
drawn in the 非官方插件 · GitHub section, so the chip repeated the
section's head on every card. It is gone from the card; the plugin's
page keeps its full warning.
- Sign in on a card and on an Installed row is tinted like Install,
not filled. It stays filled only in the plugin's sheet, so each level
of action has one look.
- The GitHub line said Go's English in the middle of a zh page ("no
answer in 8s"). internal/plugin's GitHub read now wraps its timeout in
ErrNoAnswer; /api/plugins/github passes `why`: "slow" for that or any
timeout, "limited" for GitHub's rate limit (ghtoken.Limited), and the page says "GitHub 响应超时" (zh, zh-TW, ja, de); the raw
error is the line's hover. The line is smaller and muted, and Retry
takes the accent colour.
- The second filter row's All had a count. It always equalled
Installed + Not installed and the first row's picked count, so
"全部 · N" showed twice side by side. It has no count now.
- Found on the way, same page: the filter box's placeholder was cut off
in en at 1280/1100/980 and in de at every width but 420. It fits at
every width now; the filter bar wraps where it did.
Looked at and left alone: the 8px inset on the borderless Signed in,
and the monospace version numbers.
plugins.js nets -25 bytes (the Unofficial chip's code went), so the
core script budget is unchanged: TestCoreScriptBudget passes at the
pushed head with no raise.
What was run, at this change on origin/main 4b9694c34, and again after
the last rebase onto 0df6a3aba: TestCoreScriptBudget, TestTaggedWhyKind,
gofmt, and the four changed GUI files with i18n-keys in both engines
(80 of 80):
- Red without the change: with the old assets, the four changed GUI
files (plugin-github, plugin-github-wait, plugin-github-filter,
plugin-market) went 37 red in Chromium; plugin-market expected the
tinted colour and got the filled one. TestTaggedWhyKind doesn't
compile without the change.
- Changed and nearby GUI files (those four, i18n-keys,
plugin-check-github-limit, plugin-kinds-discover, plugin-page), both
engines: 124 of 124 pass.
- gofmt clean. go vet clean on darwin, linux (-tags nogui) and windows;
all three build. go test internal/gui and internal/plugin: plugin ok;
gui ok on its own, one red in the package run,
TestMainWindowCorners/macOS_15_SDK killed at its 40s deadline at load
~85 (#2645), which passes alone.
- The whole GUI suite (858 files, both engines, concurrency 3) was
started at 628e18987 and ended early when the disk filled (ENOSPC):
~350 files ran, 3108 passed. Its five reds from before the disk
filled are off the Plugins page, pass alone, and are filed:
agent-models (#3468), cli-update (#3473), context-picks (#3483),
deprecated-subscriptions (#3484). The rest failed launching a browser
with ENOSPC.
- Rerun after space was freed, at d7ad3f2a3 plus this change: every
library-* file, every plugin-* file, login-import, menu-input-scroll,
mobile-web, name-suffix-saved and i18n-keys (94 files, both engines):
1414 of 1426 pass. The 12 reds are all red on an origin/main
118486258 worktree too, and filed: library-mcp-health-wsl ja (#3350),
menu-input-scroll (#3402, 0 of 4 on main), plugin-card-update webkit
(#3079, 0-1 of 3 on main over three runs, same Update-button wait),
plugin-github chromium de 440 scrolled 1px (#3218, 18 of 18 alone).
- The two files after name-suffix-saved outside plugin-* that open the
Plugins page, settings-tabs-stick and title-bar-tools, both engines:
42 of 42 pass.
- Not run: the other ~440 GUI files after name-suffix-saved, and
go test ./... .
Screenshots, before and after, zh dark and en light, were checked by
eye at 1280.