Repository navigation
experimental theme how: an ask's corners are the ones it names - #12512
josephfarina wants to merge 18 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
c29dc08 to
7a96955
Compare
469de38 to
36beb44
Compare
7a96955 to
eb23b22
Compare
36beb44 to
cf0c94d
Compare
There was a problem hiding this comment.
Approval needs an engineering owner's decision on direction, and three fixes.
No current spec record says how astryx experimental theme editor how reads corner words, so an engineering owner needs to approve this direction, or name the record that governs it, by commenting /approve-spec followed by the full head commit SHA; the author is an engineering owner and can record that decision. The decision has to settle three behaviors: corners are read as named (a side, one corner, "only"/"just" and "except", never from the part's own words); one four-value border-radius is written when every corner is settled; and "rounded" with no size keeps the part's current radius and squares the other corners.
- "Rounded" with no size writes
var(--radius-element)orvar(--radius-container)even when that token is0px, so in a theme based on Y2K "tabs rounded on top" answers "rounded" but nothing rounds (_how-question.mjslines 20665-20674); take the round rung when the token is 0, as the base'scorners roundanswer did. - The new four-value
border-radiusis physical while the longhands are logical, so under right-to-left "round only the left corners of tabs 6px" and "4px left corners on tabs" round opposite corners; write the shorthand only for the top, bottom or all four corners, and logical longhands otherwise (lines 20679-20683). - The test plan says this part's own CI runs on this exact head, but CI's
pull_requesttrigger covers onlymainandrelease/**bases (.github/workflows/ci.ymlline 22) and this head has no CI run, so reword the claim or run CI before merge.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim:
howreads a side, one corner, "only" and "except": verified by the new corner-positions test. - Claim: a part's own words name no corner ("bottom sheet top corners 16px" sets the top only): verified by the test; the base writes all four corners.
- Claim: an ask that settles every corner answers with one four-value radius: verified ("tab corners 4px except the bottom" writes
'4px 4px 0 0'). - Claim: rounded with no size keeps the radius the part reads: verified for non-zero tokens; with a 0 token it writes a square radius (first fix above).
- Claim: a corner "except" stays in its ask: verified (the clause splitter keeps it, and the test answers in one ask).
- Claim: editor-only, with no Core, spec record or official-theme change: verified (four files, all outside Core, records and themes).
- Claim: the how-question module changes by +231/-33: verified.
- Claim: adds no mood or feel phrase matches: verified (the added patterns name only corner, side, only and except words).
- Claim: every commit was gated in the integration branch (Node suite, typechecks, answer key): not checkable from this pull request.
- Claim: this part's own CI runs on this exact head: false (third fix above).
- Claim: the look gate on a site built from the stack's top found nothing new: not checkable from this pull request.
- File
.changeset/experimental-theme-how-corner-positions.md: clear ([experimental], patch). - File
packages/cli/api/theme-edit/_how-question.mjs: the first two fixes above. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; it fails on the base and passes on the head, and it has no zero-token or right-to-left case. - File
scripts/vitest-node-durations.json: clear (one timing entry).
|
Owner decision (engineering owner, covering this pull request): how |
|
/approve-spec eb23b22 |
|
I'll run a full review to re-check this with your note. |
There was a problem hiding this comment.
Changes requested: the direction is settled, and three fixes remain.
An engineering owner approved how astryx experimental theme editor how reads corner words at this head, so the earlier direction question is closed. Please fix:
roundedwith no size writesvar(--radius-element)orvar(--radius-container)even when that token is0px, so in a theme based on Y2Ktabs rounded on topanswers "rounded" while nothing rounds (_how-question.mjslines 20665-20674); take the round rung when the token is 0, as for a part that reads no token.- The new four-value
border-radiusis physical while the longhands are logical, so under right-to-leftround only the left corners of tabs 6pxand4px left corners on tabsround opposite corners; keep the one value for the top, bottom or all four corners and write logical longhands for a left or right side or a single corner (lines 20679-20683). - The test plan says this part's own CI runs on this exact head, but CI runs only for
mainandrelease/**bases and does not start on a base change (.github/workflows/ci.ymllines 21-22), and this head has no CI run; reword the claim or get a CI run at this head before merge.
The two inline comments from the earlier review still apply at this head.
Claims and files checked
Review mode: same-head; reason: none
- Claim:
howreads a side, one corner, "only" and "except": verified by the new corner-positions test. - Claim: a part's own words name no corner (
bottom sheet top corners 16pxsets the top only): verified by the test; the base writes all four corners. - Claim: an ask that settles every corner answers with one four-value radius: verified (
tab corners 4px except the bottomwrites'4px 4px 0 0'). - Claim: rounded with no size keeps the radius the part reads, so the corners dial still moves it: verified for non-zero tokens; with a 0 token it writes a square radius (first fix above).
- Claim: editor-only, with no Core, spec record or official-theme change: verified (four files, none in Core, records or themes).
- Claim: part 16 of a stack, based on the previous part's branch: verified (the base branch).
- Claim: the how-question module changes by +231/-33: verified.
- Claim: adds no mood or feel phrase matches: verified (the added patterns name only corner, side, only and except words).
- Claim: every commit was gated in the integration branch (Node suite, typechecks, answer key): not checkable from this pull request.
- Claim: this part's own CI runs on this exact head: false (third fix above).
- Claim: the look gate on a site built from the stack's top found nothing new: not checkable from this pull request.
- File
.changeset/experimental-theme-how-corner-positions.md: clear ([experimental], patch). - File
packages/cli/api/theme-edit/_how-question.mjs: the first two fixes above. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; it fails on the base and passes on the head, and it has no zero-token or right-to-left case. - File
scripts/vitest-node-durations.json: clear (one timing entry for the new test).
eb23b22 to
3018b69
Compare
cf0c94d to
002e10d
Compare
|
/approve-spec 3018b69 |
002e10d to
dade1a1
Compare
3018b69 to
04e55f2
Compare
|
/approve-spec 04e55f2 |
There was a problem hiding this comment.
Changes requested: an engineering owner's approval at this head settles the direction, and three fixes remain.
roundedwith no size writesvar(--radius-element)orvar(--radius-container)even when that token is0px, so in a theme based on Y2Ktabs rounded on topanswers "rounded" while nothing rounds (_how-question.mjslines 20665-20674); take the round rung when the token is 0, as for a part that reads no token.- The new four-value
border-radiusis physical while the longhands are logical, so under right-to-leftround only the left corners of tabs 6pxand4px left corners on tabsround opposite corners; keep the one value for the top, bottom or all four corners and write logical longhands for a left or right side or a single corner (lines 20679-20683). - Miss: an except after
on <part>now refuses with a part that does not exist, so4px corners on tabs except the bottomanswersno part is called "tabs except"and writes nothing where the base wrote the corners; remove the corner except before the part slot is read, or end anon <part>slot atexcept(line 3427), and add that ask to the test.
The two earlier inline comments still apply at this head, and the test plan's CI wording is now accurate.
Claims and files checked
Review mode: full; reason: rebase
- Claim:
howreads a side, one corner, "only" and "except": verified by the new test and by asking the head, except an except afteron <part>(third fix). - Claim: a part's own words name no corner (
bottom sheet top corners 16pxsets the top only): verified; the base writes all four corners. - Claim: an ask that settles every corner answers with one four-value radius: verified (
tab corners 4px except the bottomwrites'4px 4px 0 0'). - Claim: rounded with no size keeps the radius the part reads, so the corners dial still moves it: verified for non-zero tokens; a 0 token gives a square radius (first fix).
- Claim: an experimental patch release of the CLI: verified (
[experimental], patch). - Claim: editor-only, with no Core, spec record or official-theme change: verified (four files, none in Core, records or themes).
- Claim: part 16 of a stack, based on the previous part's branch: verified (the base branch).
- Claim: the how-question module changes by +231/-33: verified.
- Claim: adds no mood or feel phrase matches: verified (the added patterns name only corner, side, only and except words).
- Claim: every commit was gated in the integration branch (Node suite, typechecks, structure, changesets, answer key): not checkable from this pull request.
- Claim: CI has not run on this head, and a stacked part gets CI once it targets main: verified (no CI run at this head; CI runs for main and release bases).
- Claim: each head is checked locally and a failure found only at this head is fixed here: not checkable; the new test and the existing how suites pass at this head.
- Claim: the look gate on a site built from the stack's top found nothing new: not checkable from this pull request.
- File
.changeset/experimental-theme-how-corner-positions.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: the three fixes above. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear; it has no zero-token, right-to-left oron <part> exceptcase. - File
scripts/vitest-node-durations.json: clear (one timing entry for the new test).
04e55f2 to
bc38d11
Compare
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, and don't, avoid and stop now square the named corners, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,disable rounding,i don't want rounded cornersanddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners, becauseROUNDING_NEGATEDlacks the clause reader's other negation words and its second test reads the raw ask, whose apostrophe is not normalized (_how-question.mjslines 1016-1017 and 21670).- A rounding negation anywhere else in the ask still squares a clause whose negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (line 21670). - Miss:
no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21706 and 21712). - The description says
_how-question.mjsis +429/-37, but at this head it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37 at this head).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks, the related tests and three typechecks pass at this head, and the strict typecheck reports only two errors the base also reports.
- Description: CI has not run on this head: verified (no workflow run).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, disable, don't want and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
| * rounded …") is never the rounding's. | ||
| */ | ||
| const ROUNDING_NEGATED = | ||
| /\b(?:no|not|never|without|none|don'?t|do\s+not|doesn'?t|avoid|stop|quit)\s+(?:(?:the|any|more|longer|be|being|get|have|to|so|too|very|much|at\s+all)\s+){0,2}(?:round\w*|radius|radii|curv\w*)\b/; |
There was a problem hiding this comment.
This list now has don't, avoid and stop, but not the clause reader's other negation words (turn off, disable, switch off and more, at line 4184), and want cannot stand between. So turn off the rounding on the bottom corners of tabs, disable rounding on the bottom corners of tabs and i don't want rounded corners on the bottom of tabs still answer that the bottom is already rounded and offer border-radius '0 0 var(--radius-element) var(--radius-element)', which squares the top; the base wrote corners square. Taking the lead words from the clause reader's list would keep the two in step.
| // (As said, too: the clause may carry a negation the reader | ||
| // moved from another look, "cards with no border rounded top | ||
| // corners 8px".) | ||
| ROUNDING_NEGATED.test(String(question).toLowerCase())); |
There was a problem hiding this comment.
Two cases get the wrong corners from this whole-ask test.
questionis the raw ask, so a typographic apostrophe stays:don’t round the bottom corners of tabsnever matchesdon'?there (the clause text is normalized at line 7373), and the answer offers the line that squares the top.- It passes whenever any other part of the ask negates rounding, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at0and names that part not used.
Testing the clause's own span of the ask, normalized like the clause text, would cover both.
| right: ['start-end', 'end-end'], | ||
| }); | ||
| const corners = [...new Set(sides.flatMap(x => LONG[x]))]; | ||
| if (named && named.corners.length && !c.dir) { |
There was a problem hiding this comment.
Miss: a squaring clause that also has a direction reaches neither path. no more rounding on the bottom corners of tabs sets square (so sidePx is 0, and the step reply at line 21706 is skipped) and c.dir is more (so this branch is skipped too); the clause then falls to the whole-part rung and writes corners square --on tab, squaring the top corners nobody named. The base asked for a size and wrote nothing.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer roundanddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners:ROUNDING_NEGATEDlacks the clause reader's other negation words, its second test reads the raw ask, whose apostrophe is not normalized, andno longer round …fails the same square test (_how-question.mjslines 1016-1017 and 21728-21733).- A rounding negation anywhere else in the ask still squares a clause whose negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (lines 21731-21733). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21769 and 21775).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks, all 58
howtest files and three typechecks pass, and the strict typecheck reports only two errors the base also reports. - Description: CI has not run on this head: verified (no workflow run).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer roundanddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners:ROUNDING_NEGATEDlacks the clause reader's other negation words, its second test reads the raw ask, whose apostrophe is not normalized, andno longer round …fails the same square test (_how-question.mjslines 1019-1020 and 21708-21713).- A rounding negation anywhere else in the ask still squares a clause whose negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (lines 21708-21713). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21749 and 21755).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks, all 58
howtest files and three typechecks pass, and the strict typecheck reports only two errors the base also reports. - Description: CI has not run on this head: verified (no workflow run).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners: the clause reader's negation words andROUNDING_NEGATEDdisagree, and its second test reads the raw ask, whose apostrophe is not normalized (_how-question.mjslines 1019-1020 and 21748-21753).- A rounding negation anywhere else in the ask still squares a clause whose negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (lines 21748-21753). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21789 and 21795).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks and three typechecks pass, the
howtest files pass apart from three tests that fail the same way on the base, and the strict typecheck reports only two errors the base also reports. - Description: CI has not run on this head: verified (no workflow run).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners: the clause reader's negation words andROUNDING_NEGATEDdisagree, and its second test reads the raw ask, whose apostrophe is not normalized (_how-question.mjslines 1019-1020 and 21759-21764).- A rounding negation anywhere else in the ask still squares a clause whose negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (lines 21759-21764). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21800 and 21806).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks, three typechecks and every
howtest file pass, and the strict typecheck reports only two errors the base also reports. - Description: CI has not run on this head: verified (no workflow run).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners: the clause reader's negation words andROUNDING_NEGATEDdisagree, and its second test reads the raw ask, whose apostrophe is not normalized (_how-question.mjslines 1019-1020 and 21759-21764).- A rounding negation anywhere else in the ask still squares a clause whose negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (lines 21759-21764). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21800 and 21806).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: carry-forward; reason: none
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks, three typechecks and every
howtest file pass, and the strict typecheck reports only two errors the base also reports. - Description: CI has not run on this head: verified (no workflow run).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners, because the rounding test's negation words differ from the clause reader's and its second check reads the raw ask (_how-question.mjslines 1019-1020 and 21775-21779).- A rounding negation anywhere else in the ask still squares a clause whose own negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (line 21779). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21815 and 21821).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified for the tested asks (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks, three CLI typechecks and every
howtest file pass, and the strict typecheck reports only two errors the base also reports. - Description: CI has not run on this head: verified (the CI workflow has not run at this head).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners, because the rounding test's negation words differ from the clause reader's and its second check reads the raw ask (_how-question.mjslines 1019-1020 and 21777-21781).- A rounding negation anywhere else in the ask still squares a clause whose own negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (line 21781). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21817 and 21823).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified for the tested asks (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks and every
howtest file pass at this head. - Description: CI has not run on this head: verified (no CI workflow has run at this head).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,shouldn't have rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners, because the rounding test's negation words differ from the clause reader's and its second check reads the raw ask (_how-question.mjslines 1019-1020 and 21771-21776).- A rounding negation anywhere else in the ask still squares a clause whose own negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (line 21776). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21812 and 21818).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified for the tested asks (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks and every
howtest file pass at this head. - Description: CI has not run on this head: verified (no CI workflow has run at this head).
- Description: each head is checked locally before CI: not verifiable here; the new test file passes 15 of 15.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests).
- Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, shouldn't, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,shouldn't have rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners, because the rounding test's negation words differ from the clause reader's and its second check reads the raw ask (_how-question.mjslines 1019-1020 and 21771-21776).- A rounding negation anywhere else in the ask still squares a clause whose own negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (line 21776). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21812 and 21818).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review. Separately, three text-colour tests in other theme-how files fail at this head exactly as they do on its base branch, so they need a fix in the part below this one.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified for the tested asks (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such hunk in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks pass at this head, and three text-colour tests fail here as on the base.
- Description: CI has not run on this head: verified (no CI workflow has run at this head).
- Description: each head is checked locally, and a failure found only at this head is fixed here: the new test file passes 15 of 15; the three failing tests fail on the base too, so none is found only at this head.
- Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests);
except on the rightis not read (non-blocking). - Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, shouldn't, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
| new RegExp(re.source, re.flags.includes('g') ? re.flags : `${re.flags}g`), | ||
| ' ', | ||
| ); | ||
| t = t.replace(/\bupper\b/g, 'top').replace(/\blower\b/g, 'bottom'); |
There was a problem hiding this comment.
Part of the no more rounding … finding (line 21818): this reads lower as the bottom, but lower also gives the clause a direction (c.dir), so with a size or square the corner branch takes neither path and the whole part is written. lower corners of cards 8px writes border-radius 8px and the lower corners of tabs square writes corners square, as the base did. Letting a clause with a size or square reach the corner write whatever its direction fixes both.
| /(;|\.(?=\s|$)|,(?![^(]*\))(?!\s*(?:serif|sans-serif|monospace|system-ui|cursive|fantasy|ui-[a-z-]+)\b)|\b(?:and|but|then|plus|also|y|et|und|и)\b|(?<!\b(?:tint(?:ed|s)?|paint(?:ed|s)?|wash(?:ed|es)?)(?:\s+[a-z-]+){0,3}\s+)\bwith\b(?!\s+(?:an?\s+)?\d{1,3}(?:\.\d+)?\s?%\s+(?:alpha|opacity|transparency)\b)|\bwhile\b|(?=\bexcept\b))/, | ||
| // Two sides of a corner ask joined by "and" ("rounded on top and | ||
| // bottom") are one ask, as a corner except is. | ||
| /(;|\.(?=\s|$)|,(?![^(]*\))(?!\s*(?:serif|sans-serif|monospace|system-ui|cursive|fantasy|ui-[a-z-]+)\b)|(?!(?<=\b(?:corners?|round\w*|radius|radii|square\w*|sharp\w*)\b[^;.,]*\b(?:on|at|along|across|to)\s+(?:the\s+)?(?:top|bottom|left|right)\s+)and\s+(?:(?:on|at)\s+)?(?:the\s+)?(?:top|bottom|left|right)\b(?=\s*(?:(?:$|[;.,!?]|\b(?:corners?|of|on|for|in|too|as\s+well|only|also|both)\b|(?!\d*\.?\d+(?:px|rem|em|%)?(?:\s+[^\s;.,!?]+){0,3}?\s+(?:borders?|outlines?|rings?|shadows?|padding|margins?|gaps?|spacing|underlines?|dividers?|strokes?|text|fonts?|lines?|width|height)\b)\d*\.?\d+(?:px|rem|em|%)?\b)|\b(?:sides?|edges?|ones?)\b\s*(?:$|[;.,!?]|\b(?:corners?|of|on|for|in|too|as\s+well|only|also|both)\b|(?!\d*\.?\d+(?:px|rem|em|%)?(?:\s+[^\s;.,!?]+){0,3}?\s+(?:borders?|outlines?|rings?|shadows?|padding|margins?|gaps?|spacing|underlines?|dividers?|strokes?|text|fonts?|lines?|width|height)\b)\d*\.?\d+(?:px|rem|em|%)?\b))))\b(?:and|but|then|plus|also|y|et|und|и)\b|(?<!\b(?:tint(?:ed|s)?|paint(?:ed|s)?|wash(?:ed|es)?)(?:\s+[a-z-]+){0,3}\s+)\bwith\b(?!\s+(?:an?\s+)?\d{1,3}(?:\.\d+)?\s?%\s+(?:alpha|opacity|transparency)\b)|\bwhile\b|(?=\bexcept\b)(?!(?<=\b(?:corners?|round\w*|radius|radii|square\w*|sharp\w*)\b[^;.,]*)\bexcept\s+(?:for\s+)?(?:the\s+)?(?:top|bottom|left|right|upper|lower)(?:[\s-](?:left|right))?(?:\s+(?:corners?|ones?|sides?|edges?))?(?:\s*(?:,|&|\band\b)\s*(?:the\s+)?(?:top|bottom|left|right|upper|lower)(?:[\s-](?:left|right))?(?:\s+(?:corners?|ones?|sides?|edges?))?)*(?=\s*(?:$|[;.,]|\bon\b))))/, |
There was a problem hiding this comment.
Non-blocking: the corner-except guard here takes only except [for] [the] <side>, so tabs rounded except on the right is split off as a part except: it writes corners round on every corner and says the except names no part. Accepting except on [the] <side> here keeps it in the corner clause, where cornersNamed already reads on the right.
…plies the editor-only fix
…e, one corner, only and except; a part's own words name none
- how reads the corners an ask names: a side ("the top corners", "rounded on top", "square on the right side"), one corner ("the top-left corner"), "only" and "except" ("tab corners 4px except the bottom"). The part's own words name no corner ("bottom sheet top corners" is the top corners).
- An ask that settles every corner writes one radius of four; rounded with no size keeps the radius the part reads.
- A corner except stays in its ask instead of starting one that names no part.
- Test: theme-how-corner-positions.
…ius token that is 0
- A corner ask with no size ("tabs rounded on top") on a part whose radius token resolves to 0 (a square theme) writes the round corners, not the token, so it rounds what it names.
- Test: theme-how-corner-positions.
…names; rounded on a radius of several corners changes only the corners it names - "no rounding on the bottom corners of tabs" squares those corners (border-end-*-radius 0) instead of rounding them. - "cards rounded on the bottom" on a card at '4px 8px 0 0' writes only the bottom longhands, each square one taking the card's own rounded corner (4px); the top corners stay as the theme has them, never rewritten by a radius of four. Already rounded: nothing to change. - Tests: theme-how-corner-positions.
…; only "only" or an except squares the rest
- The corners reader writes the corners an ask names and never rewrites the others: "tabs rounded on top" on rounded tabs changes nothing (it no longer squares the bottom). "Only" said of rounding ("rounded top corners only on tabs") or an except squares the rest.
- Each corner is read as CSS reads the radius: a calc() corner is one corner, and an elliptical radius gives each corner its two radii, written back as an elliptical longhand ('12px 6px') or radius.
- A named corner that is square takes the part's own rounded corner, else its token, else the round corners. When every corner is written, the answer is one radius of four. Otherwise it writes the longhands of the corners that change. An ask already answered writes nothing and says so.
- Tests: theme-how-corner-positions.
…nd offers the line that squares the other side - "tabs rounded on top" on rounded tabs writes nothing: the top corners are already rounded, and the bottom corners stay as they are. The answer offers the runnable line that squares the bottom, as "only" says (border-radius 'var(--radius-element) var(--radius-element) 0 0'), and never writes it unasked. - Tests: theme-how-corner-positions.
- "tooltips top-left corner 0" squares that corner (border-start-start-radius 0) and leaves the others. It no longer rounds that corner and squares the rest. - Tests: theme-how-corner-positions (with "cards not rounded at the bottom").
…e both - "tabs rounded on top and bottom" and "tabs rounded on the left and right" name all four corners: tabs rounded all round need nothing, and the bottom or right is never squared. The clause splitter keeps "on <side> and <side>" in one corner ask, as it keeps a corner except. - Tests: theme-how-corner-positions.
…' except - "4px corners on tabs except the bottom", "rounded corners on cards except the bottom" and "square corners on inputs except the top" write those corners. They no longer answer that no part is called "tabs except". "except" is a joining word, never half of a compound part name, and a corner rung said of some corners of a part is the corner reader's. - Tests: theme-how-corner-positions.
… the top, the bottom or every corner
- A radius of four is physical and the corner longhands are logical. So "round only the left corners of tabs 6px" and "tooltips 4px corners except the top left" write each corner's logical longhand, and a right-to-left page mirrors them. The top, the bottom or all four corners, the same in either direction, still get one radius ("tab corners 4px except the bottom" → '4px 4px 0 0'). The same holds for the offered "only" line.
- A radius whose corners are all the same is written as one value ('4px', never '4px 4px 4px 4px'), and an answer about all four corners does not add "the other corners as they are".
- Tests: theme-how-corner-positions.
…ever a corner side - In "tabs rounded on top and top nav darker", "top nav" is a part. It no longer joins the corner ask as a second side. The splitter and the corner reader read a side joined by "and" only when it ends the side phrase (the end of the clause, or a corner word such as corners, sides, edges or "of"). So the tab ask and the top-nav ask each get their answer. - Test: theme-how-corner-positions.
…s by their words; a new look after "side" is its own ask
- "top corners of tabs to 0" and "take the rounding off the top corners of tabs" square those corners. They were read as rounding ("already rounded"). A bare 0 anywhere in the clause is square, and so are "take/remove the rounding", "rounding off" and "unrounded". "pill top corners on tabs" writes the pill token (var(--radius-full)) on those corners.
- A side joined by "and" stays in the corner ask only before the end of the phrase, a corner word, a scope word (in, too, as well, only, also, both) or a length, also after "side", "edge" or "one". So "cards rounded at the bottom and right side padding 12px" writes padding-right, not padding-bottom. "tabs rounded on top and left side border blue" writes only border-left. "tabs square on top and bottom in dark mode" and "cards rounded on top and bottom too" keep both sides. The splitter and the corner reader read this the same way.
- Tests: theme-how-corner-positions.
…ook is that look's; a part's other names name no corner
- "round off the top corners of tabs 6px" rounds those corners at 6px. Only taking the rounding off ("take/strip the rounding off", "remove the rounding") squares.
- A side joined by "and" takes a following length only when no other look follows it. So in "cards rounded on top and bottom 2px border" the 2px is the border's, never the corners' radius.
- The corner reader leaves out every name the part reader knows the part by, so "square corners on right-click menus" squares the context menu: "right" is part of its name, not a side.
- Tests: theme-how-corner-positions.
…f another look end the corner ask - "cards rounded on top and bottom 2px border" reads the corners of both sides and a 2px border all round (border-width 2px). It no longer reads "bottom 2px border" as one side's border. The clause splitter ends a corner ask after its second side when a length of another look (border, outline, ring, shadow, padding, margin, gap) follows. - Test: theme-how-corner-positions.
…look said with words between; a part named with a side word names no corner; roundness taken off squares
- "tabs rounded on top and bottom 8px blue border" (and "1px solid border", "2px dashed border", "12px spacing", "2px underline") gives the length to that look, never a radius on every corner. The corner ask ends after its second side when a length follows with up to three words before a look word (border, outline, ring, shadow, padding, margin, gap, spacing, underline, divider, stroke, text, font, line, width, height). The splitter and the corner reader share that reading.
- "square corners on the top nav" squares every corner: the corner reader leaves out every part name that holds a side word ("top nav", "bottom sheet", "right-click menu"), not only the asked part's names.
- "take the roundness off the top corners of tabs" squares them: "roundness", "round", "curve(s)" and "curvature" taken off or removed square, as "rounding" does.
- Tests: theme-how-corner-positions.
…nding only, never on a negation of another look
- "cards rounded on top without a border" keeps the top corners rounded (already so), and "cards top corners 8px without a border" writes the top corners at 8px. Before, any negation in the clause squared the corners (or wrote 0). A negation squares only when it governs the rounding: no, not, never, without or none before a round, radius or curve word ("no rounding on the bottom corners", "cards not rounded at the bottom").
- The corner answer is measured as a corner ask, not as a removal, when the negation is another look's.
- Test: theme-how-corner-positions.
…oid and stop; another look's negation never governs it - "don't round the bottom corners of tabs" squares those corners, as "no rounding" does. The negation words now include don't, do not, doesn't, avoid, stop and quit. - Only small words may stand between the negation and the round word, and the negation must govern the rounding as the user said it too. So in "cards with no border rounded top corners 8px" the negation stays the border's, even after the reader moves it onto the corner clause, and the top corners get 8px. - The negation rows ask on a theme of their own whose tabs are rounded. - Tests: theme-how-corner-positions.
…n does in the editor too
There was a problem hiding this comment.
Changes requested: the corner reading works for the tested asks, but three kinds of phrasing still write or offer the wrong corners, and the description's line count is out of date.
turn off the rounding,switch off the rounding,disable rounding,i don't want rounded corners,shouldn't have rounded corners,no longer round,quit rounding, a label such asthe bottom corners of tabs: no rounding, anddon’ttyped with a typographic apostrophe are still answered as rounding with a line that squares the other corners, because the rounding test's negation words differ from the clause reader's and its second check reads the raw ask (_how-question.mjslines 1034-1035 and 21786-21791).- A rounding negation anywhere else in the ask still squares a clause whose own negation is the border's, so
no rounding on buttons and cards with no border rounded top corners 8pxwrites the cards' top corners at 0 instead of 8px (line 21791). no more rounding on the bottom corners of tabswritescorners squareon all four tab corners, because a squaring clause with a direction reaches neither corner path (lines 21827 and 21833).- The description says
_how-question.mjsis +429/-37, but it is +442/-37.
Please add those asks to theme-how-corner-positions.test.mjs with the fixes; the non-blocking notes are in the review.
Claims and files checked
Review mode: full; reason: rebase
- Description: an editor-only CLI change with no Core, spec record or theme change: verified (four changed files; the two palette commits at the ends of the branch cancel out).
- Description: a stacked part based on the previous part's branch, to merge in order: verified (base branch).
- Description: an ask's corners are the ones it names (a side, one corner, only, except; a part's own words name none): verified for the tested asks (new tests, base and head runs).
- Description: the module's line delta is +429/-37: false (+442/-37).
- Description: no mood or feel phrase matches are added: verified (no such line in the diff).
- Description: every commit was gated in an integration branch (full suite, typechecks, structure check, changeset check, held-out answer key): not verifiable here; the changeset and structure checks and every
theme-howtest file pass at this head. - Description: CI has not run on this head: verified (no CI workflow has run at this head).
- Description: each head is checked locally, and a failure found only at this head is fixed here: the new test file passes 15 of 15 and all 58
theme-howtest files pass. - Description: a look gate on a site built from the top of the stack found no new blocking issue: not verifiable here.
- Release note: sides, one corner, only and except are read: verified (tests);
except on the rightis not read (non-blocking). - Release note: a part's own words name no corner: verified (bottom sheet and top nav asks).
- Release note: only the corners an ask names are written, and only said of rounding, or an except, squares the rest: false for
no more rounding on the bottom corners of tabs(third finding). - Release note: one four-value radius for the top, the bottom or all four corners, logical longhands otherwise: verified (tests).
- Release note: rounded with no size keeps the radius the part reads: verified (tests).
- Release note: a corner ask said in the negative squares those corners: false for turn off, switch off, disable, don't want, shouldn't, no longer, quit, a label and a typographic apostrophe (first finding).
- File
.changeset/experimental-theme-how-corner-positions.md: two of its sentences are broader than the code (first and third findings). - File
packages/cli/api/theme-edit/_how-question.mjs: three blocking findings, plus non-blocking notes in the review. - File
packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear (15 of 15 pass); it lacks the asks above. - File
scripts/vitest-node-durations.json: clear.
Summary: experimental theme how: an ask's corners are the ones it names. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.Part 16 of 25 of round 15, landing as a stack: based on
theme-r15-p15; merge in order (the next part retargets onto main after this one merges).What changes
Phrase rules
_how-question.mjsline delta: +429/-37.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).