Repository navigation
fix(appearance): follow-ups on imported themes from the #3547 review - #3588
Conversation
- The filled button's text reads on its fill and on the fill under the pointer. Fitted to the resting fill alone it could drop to 3.4:1 on hover; where no colour reads on both, the hover takes a step the text does read on. - A theme's name is kept as its file wrote it: the joiners and the emoji selector that an emoji sequence and Persian and Indic words need are no longer stripped. Names are compared without them (nameKey), so two that look the same are still one theme on import. The blank Braille cell is dropped. - Two imported themes of one name say their sides on their cards and their Remove buttons, as the list beside them already did. - A YAML key may be quoted, as a value may. - YAML that holds two sides is refused with that reason, not as a file in which no theme was found. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Local merge gate: PASS
The Linux suites of the required checks (Fast checks, Integration and browser), run on main 62a5192 with this PR's head 19e1866 merged in (local merge 69b75d5052a7, not pushed), as groups side by side in the self-hosted CI runner image on
Reruns:
Total 644s. |
Merge passMerged head
Both reviewers CLEAR (Claude Opus 5.5, Codex Terra); follow-up to #3547 (unreleased feature). Contrast held on 16,000 random and 184,880 adversarial imports (lowest 4.50 at rest and on hover); built-in themes byte-identical. Left as known, none in a release: the two-sides refusal also fires for a non-theme file with a top-level dark:/light: line; broken JSON that does not start with a brace goes through the YAML reader; names differing only by joiners or the emoji selector are one name (same as before); a main-built test app's list with U+2800 in a name is not taken by this build. |
What
The five LOW findings of the merge pass's last review of #3547 (at 976e95e), which that PR left for a follow-up so its head stayed merge-only. All of it is the imported-theme feature merged in 68f1fa9 and not yet released, so there is no new changelog fragment:
changelog.d/theme-files.mdstill describes it.Change
primary-textis fitted against the fill and the hover fill together. Where no color reads on both, it keeps the fill andprimary-hovertakes a step the text does read on: toward the background instead of the text, or none. The derived-theme tests now holdprimary-textonprimary-hoverto 4.5:1 for every palette. The built-in themes are not touched, and the pair is not added toCONTRAST_PAIRS, which several of them would fail.cleanNamekept U+2800, and stripped ZWJ, ZWNJ and VS16 from names that need themnameKey: everything unseen removed, NFC), so two that look the same are still one theme on import. A name of only joiners or blanks is no name. Cleaning a kept name changes nothing; tested.Mine · Dark,Mine · Dark · Light), as the list beside them already did. One label function for both.nameis still not the scheme's.two-sides: "That file holds more than one side. A YAML scheme is one side: write a dark and a light side as one JSON file." (en, ko, ja, zh).Left as the report said it could stay: a full list still refuses an edit that drops a side, with the message that says to remove one first.
Validation
Ran, on 19e1866 (branched from
origin/mainat 9243bc3):bun run check fast: workflow syntax, generated types, generated themes, typecheck, build, unit tests (14,779 pass, 0 fail).bun scripts/theme-file-demo-regression.tsat 390 and 1440 px, dark and light, with two new steps: a second "Lamplight" with other sides is its own card and both say their sides, and a two-sided YAML is refused with its reason.Skipped:
bun run check full: no server route or herdr call changed.🤖 Generated with Claude Code