Repository navigation
experimental theme how: a clash with a see-through fill joins its text too; another look's text leaves it joined - #13411
Conversation
…l's choice [skip ci]
…t too; another look's text color leaves it joined Fixes the review findings on #13375. [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
|
/approve-spec 7b7f1c1 |
There was a problem hiding this comment.
Changes requested: the code does what an engineering owner approved for this head, but the release note promises more than it does.
- The release note (
.changeset/experimental-theme-how-clash-fill-text.md:5) says an ask that colors the clashing look's own text keeps its own text and that no line writes text for a fill the person has not picked, butprimary buttons #ffff00, primary buttons #0000ff, buttons white textstill prints a separatecolor '#000000'line measured on#ffff00only, so say that such an ask is answered as before (its own text line plus a separate readable-text line for the first fill said) and correct the description's "every line of a how answer writes something the ask asked for" to match.
Both new shapes now give one line per choice with its own text, and the three new tests fail on the base and pass here. Optional: the other-look test only checks that the separate line is gone, so also asserting the #ffffff and #000000 joins, and that the see-through line has no &&, would pin the rest of the claim. The fix is a new commit, so it needs a fresh /approve-spec from an engineering owner for that head.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Release note: each measurable clashing fill is measured in either order, and its readable text goes in that fill's own choice. Verified by the new tests and by both orders answered on the base and here.
- Release note: see-through fills stay in the choice. Verified: such a line prints alone.
- Release note: an ask that colors that look's text keeps its own text. False: a separate readable-text line, measured on the first fill only, still appears (blocking finding).
- Release note: each choice prints as one line, so no line writes text for a fill not picked. True for the shapes the tests cover, false for the asks above.
- Release note: a patch with the experimental tag. Verified.
- Title: a clash with a see-through fill joins its text, and another look's text leaves it joined. Verified.
- Description, before: a solid fill said before a see-through one got a separate text line, and said after it got no text. Verified on the base.
- Description, before: a clash beside another look's text got a separate text line, and the yellow choice got no text. Verified on the base.
- Description: a clash is any choice of one fill each on the same part and look; unmeasurable fills keep no text and the others get theirs in their own option. Verified.
- Description: the said-text check looks at the clash's own look. Verified; a text color for the whole part still blocks the join.
- Description: the earlier release note is narrowed to match. Partly: the new sentence over-claims (blocking finding).
- Description: no new rule. An engineering owner approved this head.
- Description: every line of a how answer writes something the ask asked for. False for asks that color the clashing look's own text.
- Description evidence: the see-through ask in both orders joins white text to the blue line, prints the see-through line alone, and leaves no separate line. Verified.
- Description evidence: the other-look ask gives both choices their text, and the secondary white text stays its own answer. Verified.
- Description: the three new tests fail on the base and pass here. Verified.
- Description: no setting, command or flag changes, and the scope checklist holds. Verified.
- Description: the whole theme-edit test directory passes apart from one environment-only failure. Not repeated; every theme-how test file passes here.
- File
.changeset/experimental-theme-how-clash-fill-text.md: blocking finding (line 5). - File
packages/cli/api/theme-edit/_how-question.mjs: clear. - File
packages/cli/api/theme-edit/theme-how-clash-fill-text.test.mjs: clear, with a non-blocking note on what it asserts.
…text gets; tests check both choices' lines [skip ci]
|
/approve-spec e1b7462 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The release note now says what an ask that also colors the clashing look's or the whole part's text gets, and the tests check both choices' joined lines, so both points from the last review are addressed. The three new tests fail on the base and pass here, and the whole theme-edit test directory passes on this head. Optional: the see-through check at theme-how-clash-fill-text.test.mjs:69-70 passes even if the #0069d61a line is missing, so also asserting that the line exists would pin "see-through ones included in the choice".
Claims and files checked
Review mode: incremental; reason: none
- Release note: each measurable clashing fill is measured in either order, see-through fills stay in the choice, and the readable text goes in that fill's own choice. Verified by the new tests and by both orders answered on the base and here.
- Release note: each choice prints as one command line holding the fill and its text, so no line writes text for a fill not picked. Verified for the clashes it covers.
- Release note: an ask that also colors that look's or the whole part's text is answered as before, with its own text line plus a readable-text line for the first fill. Verified: four such asks answer identically on the base and here.
- Release note: a patch for the CLI with the experimental tag. Verified.
- Title: a clash with a see-through fill joins its text, and another look's text leaves it joined. Verified.
- Description, before: a solid fill said before a see-through one got a separate text line, and said after it got no text. Verified on the base.
- Description, before: a clash beside another look's text got a separate text line, and the yellow choice got no text. Verified on the base.
- Description: a clash is any choice of one fill each on the same part and look; unmeasurable fills keep no text and the others get theirs in their own option. Verified in the clash condition and by a transparent fill.
- Description: the said-text check looks at the clash's own look. Verified; a text color for the whole part still sends the ask to the old answer, as the description says later.
- Description: the earlier release note is narrowed to match. Verified.
- Description: no new rule. An engineering owner approved this head.
- Description: in a clash, no line writes text for a fill the person has not picked, and the tests cover it. Verified.
- Description: an ask that also colors the clashing look's or the whole part's text is answered as before, and the release note says so. Verified.
- Description: no setting, command or flag changes. Verified.
- Description evidence: the see-through ask in both orders joins white text to the blue line, prints the see-through line alone, and leaves no separate line. Verified.
- Description evidence: the other-look ask gives both choices their text, and the secondary white text stays its own answer. Verified.
- Description: the three new tests check both choices' lines and that a see-through line stays alone, fail on the base and pass here. Verified, with the optional note above on the see-through check.
- Description: the scope checklist holds. Verified.
- Description: the theme-edit test directory passes apart from one environment-only failure. Verified: it passes here with no failure.
- File
.changeset/experimental-theme-how-clash-fill-text.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: clear. - File
packages/cli/api/theme-edit/theme-how-clash-fill-text.test.mjs: clear, with a non-blocking note (lines 69-70).
| const clear = choice?.commands.find(c => /'#0069d61a'/.test(c)) ?? ''; | ||
| expect(clear, q).not.toMatch(/&&/); |
There was a problem hiding this comment.
Non-blocking: if the #0069d61a option dropped out of the choice, find(…) ?? '' gives '' and this assertion still passes, so nothing pins "see-through ones included in the choice". Also assert the line exists, for example expect(clear).toMatch(/background-color '#0069d61a'/), or that the choice has two commands as the plain-clash cases do.
- #12787 experimental theme: a pressed or hovered part's flat tint is measured as the fill it is - #13252 experimental theme: a one-color layer is a fill only where it covers the whole box - #13300 experimental theme: a fill and its on-color set inside a part are measured as that part draws them - #13321 experimental theme: a part's fill pair is measured though its on-color is set for the whole theme - #13360 experimental theme: an on-color set on a part holding the readers leaves the fill pair out - #12768 feat(cli): experimental theme editor show <theme> --on <part> gives what one part of a theme shows - #13057 experimental theme pictures: sheet cells are never narrower than what they hold, and a panel over the page is drawn at its cell's full width - #13200 experimental theme pictures: a change removes the pictures cut from a tall one - #13199 experimental theme pictures: the pages section draws the sample app whole, cut between pages and named - #13320 fix(cli): corners said before their edge run after it, so the whole answer does both - #13375 experimental theme how: a clashing fill's text color goes in that fill's choice - #13411 experimental theme how: a clash with a see-through fill joins its text too; another look's text leaves it joined - #13420 fix(cli): experimental theme editor - glossy writes no sample gradient - #13452 test(cli): the said-order test reads a named corner as that corner - #13262 fix(cli): experimental theme editor - an ask that starts with clear the and names only removable looks takes them away - #13450 fix(cli): experimental theme editor - a bar's text token is checked in the menus its items open - #13442 feat(cli): a light neutral also fills the page, surface and card backgrounds in light mode - #13477 docs(changeset): the clear reading takes looks away for one part
|
Landed on main in #13470. |
Fixes the review findings on #13375 (stacked directly on it; the two enter together).
User impact
With #13375 alone, two clash shapes still came out the old way:
Problem and solution fit
Decision
The rule the owner approved on #13375, applied to these shapes. No new rule.
Expected behavior and authority
In a clash, no line writes text for a fill the person has not picked. It is covered by
theme-how-clash-fill-text.test.mjs. An ask that also colors the clashing look's text, or the whole part's, is answered as before (its own text line plus the first fill's readable-text line), and the release note says so.Smallest restoration
The clash test and the text-color check. No setting, command or flag changes.
Evidence
&&its#fffffftext, the see-through line runs alone, and no separate text line is left.#ffffff,#000000). The secondary buttons' white text stays its own answer.theme-how-clash-fill-text.test.mjs. They check both choices' lines (#0000ff … && … #ffffff,#ffff00 … && … #000000), and that a see-through line stays alone. All three fail on experimental theme how: a clashing fill's text color goes in that fill's choice #13375 and pass here.Scope
Testing
CI=1 vitest run --project node packages/cli/api/theme-edit: 6,189 pass. The one failure,theme-build-names-pictures-removed, is an environment-only failure that fails the same on the base.replay: worse 0 at e1b7462
preflight: pass e1b7462