Repository navigation
fix(cli): a color said with a tint word fills with that color again - #13186
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, and two findings need fixes either way.
No current spec record settles whether astryx experimental theme editor how reads a tint word ("cards tinted blue", "a slightly blue tint") as the color at 15% over what is beneath or as the solid color, and the round-15 editor change's spec approval covered the reading this pull request withdraws. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Blocking findings:
- The change deletes the only tests of the text-measurement pass it keeps: "names an ink that reads at 4.5:1, never one just short of it" asks no tint word and still passes on this head, and the deepen and keep-to-modes branches still run for fills written as "N% " ("buttons 15% blue with white text" is deepened to 60%), so keep that test and restate the other two with such asks.
.changeset/experimental-theme-how-tint-solid.mdtells release readers that the tint reading is withdrawn, but no release shipped it (0.7.16's changelog has none and its notes are still pending), and the two edited notes already keep changeset coverage for@astryxdesign/cli, so delete the new note.
Non-blocking: the kept pass's comments in _how-question.mjs (lines 31359-31369) still describe tint-word fills and "the tint pass", and the "(a tint: …)" strip at lines 31561-31565 is now dead.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim: before the change, the light-blue-tint secondary-button ask writes a 15% mix and no readable-text line: verified on the base.
- Claim: after the change, that ask writes a solid
#dbeafefill,#dbeafetext and a dark-mode#000000text line, the same lines as before the tint reading: verified (identical to the editor before the round-15 change); the#dbeafetext is the fill's color rather than the asked blue, which predates this change. - Claim: the glassy-window ask answers as before: verified (same answer on base and head).
- Claim: the list-items test asserts the solid fill and no mix: verified (passes on head; the base answers that ask with the mix).
- Claim: the tint reading's own tests are removed with it: false (the removal also takes the tests of the text-measurement pass the change keeps).
- Claim: nothing else changes and the clause binding for tint words stays: verified ("cards tinted blue with a navy header" keeps the navy header solid).
- Claim: two unreleased release-note lines about the tint reading are removed: verified.
- Claim: the theme-edit tests, typecheck and changeset checks pass: partly verified (the two changed test files and the 50 theme-edit test files that mention a tint or wash word pass on head; the full directory, typecheck and lint were not rerun, and CI was skipped for this commit).
- Changeset claim: a color said with a tint word fills with that color: verified; "as before" and "withdrawn": false for release readers (finding above).
.changeset/experimental-theme-how-tint-solid.md: finding (blocking)..changeset/theme-round15-part-02.md: clear..changeset/theme-round15-part-13.md: clear.packages/cli/api/theme-edit/_how-question.mjs: clear for the removal; non-blocking stale comments on the kept pass.packages/cli/api/theme-edit/theme-how-list-items.test.mjs: clear.packages/cli/api/theme-edit/theme-how-tint-and-mode-pairs.test.mjs: finding (blocking).
4a931b9 to
a316130
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision; the findings from the earlier review are fixed.
No current spec record settles whether astryx experimental theme editor how reads a tint word ("cards tinted blue", "a slightly blue tint") as the color at 15% over what is beneath or as the solid color, and the round-15 editor change's spec approval covered the reading this pull request withdraws. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner.
Claims and files checked
Review mode: full; reason: history
- Claim: before the change, the light-blue-tint secondary-button ask writes a 15% mix and no readable-text line: verified on the base.
- Claim: after the change, that ask writes a solid
#dbeafefill,#dbeafetext and a dark-mode#000000text line, the same lines as before the tint reading: verified (identical to the editor before the round-15 change). - Claim: the glassy-window ask answers as before: verified (same answer on base and head).
- Claim: the list-items test asserts the solid fill and no mix: verified (it fails on the base and passes on the head).
- Claim: the text-on-fill pass keeps its tests, restated with see-through asks, plus the readable-ink test: verified (they pass on the head, and their asks still reach the deepen and keep-to-modes branches).
- Claim: only the tint step and its copy into the whole-ask answer are withdrawn, and the clause binding for tint words stays: verified ("cards tinted blue with a navy header" keeps the navy header; "N% " fills and tints of the accent answer as on the base).
- Claim: two unreleased release-note lines about the tint reading are removed, and no new note is added because no published version had it: verified (the 0.7.16 changelog has no tint-word reading, and the edited notes still cover the CLI).
- Claim: no new public API, default or interaction model, and no internal context in public text: verified.
- Claim: the theme-edit tests, strict typecheck and changeset checks pass: partly verified (all 546 theme-edit test files and the changeset check pass on the head; the strict typecheck stops only on two unrelated page templates that import a theme package not built here, the same on the base).
- Title: a color said with a tint word fills with that color again: verified.
.changeset/theme-round15-part-02.md: clear..changeset/theme-round15-part-13.md: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/theme-how-list-items.test.mjs: clear.packages/cli/api/theme-edit/theme-how-tint-and-mode-pairs.test.mjs: clear.
…before; the low-strength tint reading is withdrawn [skip ci]
a316130 to
3b8b145
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision; no other finding remains.
No current spec record settles whether astryx experimental theme editor how reads a named color said with a tint word ("cards tinted blue", "a slightly blue tint") as that color at 15% over what is beneath or as the solid color, and the round-15 editor change's spec approval covered the reading this pull request withdraws. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request, and the author may do so as an engineering owner. The restated release note and the restored part test check out, and the findings from the earlier reviews stay fixed.
Claims and files checked
Review mode: full; reason: history
- Claim: before the change, the light-blue-tint secondary-button ask writes a 15% mix and no readable-text line: verified on the base.
- Claim: after the change, that ask writes a solid
#dbeafefill,#dbeafetext and a dark-mode#000000text line, the same lines as before the tint reading: verified (identical to the editor before the round-15 change). - Claim: the glassy-window ask answers as before: verified (same answer on base and head).
- Claim: the list-items test asserts the solid fill and no mix: verified (it fails on the base and passes on the head).
- Claim: the text-on-fill pass keeps its tests, restated with see-through asks, plus the readable-ink test and the test that a color said for one part stays that part's: verified (they pass on the head; the one-part test fails on the base).
- Claim: only the tint step and its copy into the whole-ask answer are withdrawn, and the clause binding for tint words stays: verified ("cards tinted blue with a navy header" keeps the navy header; fills with a strength said as a number and tints of the accent answer as on the base).
- Claim: the unreleased tint-word note line is removed, the part about text on a see-through fill is restated, and no new note is added because no published version had the reading: verified (the 0.7.16 changelog has no tint-word reading).
- Claim: no new public API, default or interaction model, and no internal context in public text: verified.
- Claim: the theme-edit tests, strict typecheck and changeset checks pass: partly verified (all 546 theme-edit test files and the changeset check pass on the head; the strict typecheck stops only on two unrelated page templates that import a theme package not built here, the same on the base).
- Changeset: text asked with a see-through fill deepens it until it reads, else is kept to the modes it reads in with a readable ink named: verified ("buttons 15% blue with white text" is deepened to 60%; the yellow ask keeps white to dark mode and names
#111827; the editor before round 15 did neither). - Title: a color said with a tint word fills with that color again: verified.
.changeset/theme-round15-part-02.md: clear..changeset/theme-round15-part-13.md: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/theme-how-list-items.test.mjs: clear.packages/cli/api/theme-edit/theme-how-tint-and-mode-pairs.test.mjs: clear.
- #13225 experimental theme: a whole-theme border color reaches the fields' edge at the nearest shade that keeps 3:1... - #13186 fix(cli): a color said with a tint word fills with that color again - #13091 experimental theme: a kept palette stays as saved through hand edits and undo - #13233 fix(cli): on a one-family base, a body font set alone keeps empty-state titles on the heading font - #13256 fix(cli): the fields-at-3:1 note prints its exact-color command in full, with the color quoted - #13044 feat(cli): experimental theme how: readings held back from round 15 - #13241 experimental theme: a text color on an option row reaches the tokens its label and description read
|
Landed on main in #13276. |
User impact
Someone theming with
astryx experimental theme editor howwho says a color with a tint word, for example "secondary button light blue tint with blue text" or "header with a light gray wash", gets that color at 15% over the page. For a pale color the fill barely shows, and the readable-text line for it is not offered. Before the tint reading, the same asks filled with the color itself. A strong color said with a tint word ("cards tinted blue", "a slightly blue tint") fills solid again too.Problem and solution fit
Expected behavior and authority
Regression against the behavior before the tint reading: a color said with a tint word filled with that color.
Smallest restoration
The tint reading is withdrawn: the step that mixed a tint word's color at 15%, and the step that copied that mix into the answer that runs a whole ask. Nothing else changes; the clause binding for tint words ("cards tinted blue with a navy header": the cards' blue, never the header) stays.
Evidence
how "secondary button light blue tint with blue text"writesbackground-color 'color-mix(in srgb, #dbeafe 15%, transparent)' --on button --when variant:secondaryand no readable-text line.background-color '#dbeafe' --on button --when variant:secondary, solid, the same as before the tint reading (checked by replaying every ask against the CLI before and after; the text lines for that ask are also the same as before, and its "blue text" read as the tint's light blue is an older, separate matter).theme-how-list-items.test.mjs("a tint word fills with the color it names") asserts the solid fill and no mix. The text-on-fill pass keeps its tests, restated with asks that still write a see-through fill ("buttons 15% blue with white text"), plus the readable-ink test, and the test that a color said for one part ("cards tinted blue with a navy header") stays that part's.Scope
Components: CLI experimental theme editor (
howtint reading)The unreleased release note line for the tint reading is removed, and the part of it that described the text-on-see-through-fill check, which stays, is restated with a see-through ask; no published version had the tint reading, so no new release note is added.
Testing
vitest run --project node packages/cli/api/theme-edit(full directory, 546 files) passes; strict typecheck and changeset checks pass.replay: worse 0 at 3b8b145
preflight: pass 3b8b145