icon-tile was red on main: PenguinHarness's logo (3fd7e1698) is solid
to its edges but app.css's tile rule didn't name it, so it was drawn a
size bigger than a line logo beside it. It now has its alphabetical
place in the rule. The test also measured apple-touch-icon.png and
icon-512.png, the app's own icons that manifest.json lists for a
phone's home screen, which no .ic ever draws; it now leaves
manifest.json's icons out.
Patch from Coffemon (JoeyWu-tech) on #3858, 70707eed, reviewed line by
line and taken as is.
What was run (mote, Playwright 1.62.0, at origin/main f02d92c7b):
- origin/main: icon-tile red ("apple-touch-icon is solid to its edges
but not in app.css's tile rule").
- This change: icon-tile 3 runs, 3 of 3 each; mono-icon-redraw 5,
models-add-and-icons 4 and agent-grip 10, all pass.
- Broken by hand: penguin-color out of the rule: red, "penguin-color is
solid to its edges but not in app.css's tile rule"; the manifest
filter out is main's red above.
Not tried: looked at by eye with PenguinHarness installed.
Co-authored-by: JoeyWu-tech <joey110551567@gmail.com>
The owner saw the Agents list's logos at two sizes. They were: every logo
is drawn to its 16-22px box, and a tile or disc logo (Codex, WorkBuddy,
ZCode, Qoder) inks ~96% of that box edge to edge, while a line logo (Pi,
OpenCode, Hermes, Grok) inks ~40% and Alma's and Cindy's tiles bring their
own margin (82% of the box). Measured on every file in icons/ at 256px.
The 25 logos solid to their edges (inked to within 7% of each edge, 70% or
more of the box) are now drawn at 82%, Alma's and Cindy's size. The list
is a data-icon rule in app.css, so app.js and its budget are unchanged.
icon-tile.test.cjs measures every file in icons/ and fails when a tile
logo is missing from the rule or a line logo is in it, and checks in the
Agents list that Codex and ZCode draw at 82%, centred, and Pi whole.
Run:
- icon-tile, mono-icon-redraw, models-add-and-icons, plugin-own-icon and
i18n-keys GUI tests, chromium and webkit: 38 of 38.
- go test -run Budget ./internal/gui: ok.
- Broken by hand: codex-color taken out of the rule, the test goes red
on both the list and the drawn size (22/22).
- Before/after screenshot of the screenshot's 11 agents, dark, zh: the
tiles now match Alma's and Cindy's.
Not run: the whole GUI suite. A plugin's own icon or a user's file: icon
that is a tile is not measured and stays full size.