Repository navigation
fix(cli): corners said before their edge run after it, so the whole answer does both - #13320
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
…k gives a part that shows no corners yet run after that edge, so they are kept [skip ci]
7e53d9c to
2bc7e49
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new step order, and the release note needs one correction.
No current spec record decides the order in which how runs a part's corners and the fill, border or shadow the same ask gives it, so an engineering owner settles whether corners on a part that shows none yet always run after that edge (at rest or in the corners' state, never after a removal); they record it by commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner. Whatever the decision, fix this:
- The changeset (
.changeset/theme-editor-corners-after-edge.md:5) and the description say "the header with a blue to purple gradient and 12px corners" lost its corners before this change, but the base already writes the gradient and thenborder-radius 12pxfor that ask, so describe the case this actually fixes: corners said before their fill, border or shadow (for example "active links: 12px corners and a red border"), where the base refused the whole answer.
A non-blocking note on the reorder loop is inline.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim (title): corners said with the edge an ask gives a part run after it: verified on the head.
- Claim (changeset): corners said with a fill, border or shadow on a part that shows no corners run after that edge: verified on the head (new test 16 of 16; corners-first link and header asks).
- Claim (changeset): the gradient-and-corners header ask dropped its corners before: false; the base writes the gradient, then the corners.
- Claim (description): a corners step moves after the last edge step on the same part when the part shows no corners, and nothing else moves: verified (
_how-question.mjs:29109-29119; a card ask keeps its order). - Claim (description): before the change, the blue-to-white header ask writes only the gradient: false; the base writes both commands.
- Claim (description): the person gets no rounding with nothing said: false; the base says the part needs a background or border first.
- Claim (description): after the change, the header, state-link and hovered-checkbox asks write the edge, then the corners: verified on the head.
- Claim (description): corners on a part that shows its own corners keep their place: verified (card ask unchanged).
- Claim (description): the test's 16 asks gain their corners and 6 fail on the base: partly false; 6 fail on the base, the other 10 already keep their corners there.
- Claim (description): an owner-approved reading exists: not found on this pull request.
- Claim (description): no Core change, no new target, no new option: verified.
- Claim (description): the theme editor's node tests match the base plus the new test: the 61
theme-howtest files and 35 more pass on the head; the rest of the directory was not run. - Claim (description): one defect, no tagalongs, no new public API, no internal context: verified.
- File
.changeset/theme-editor-corners-after-edge.md: finding (before-state is wrong). - File
packages/cli/api/theme-edit/_how-question.mjs: non-blocking note (two corners steps said before the edge come out reversed). - File
packages/cli/api/theme-edit/theme-corners-after-edge.test.mjs: clear (6 rows fail on the base; 10 rows guard asks that already worked).
…said first keep the edge said after them [skip ci]
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about the new step order, and the release note still needs one correction.
No current spec record decides the order in which how runs a part's corners and the fill, border or shadow the same ask gives it, so an engineering owner settles whether corners on a part that shows none yet always run after that edge (at rest or in the corners' state, never after a removal); they record it by commenting /approve-spec <full head SHA> on this pull request, which the author may do as an engineering owner. Whatever the decision, fix this:
- The changeset (
.changeset/theme-editor-corners-after-edge.md:5), the title and the description say the base dropped the shadow or border and kept the corners, but on the base "focused links: 12px corners and a shadow" offers the shadow in its own result and refuses the corners and the whole answer with a reason, so describe the change as the whole answer now keeping the corners (suggested wording inline).
The earlier non-blocking note on the reorder loop still applies.
Claims and files checked
Review mode: incremental; reason: none
- Claim (title): corners said before their edge run after it: verified (new test 16 of 16 on the head).
- Claim (title): those corners now keep their edge: false; the base already offers the edge and refuses the corners.
- Claim (changeset): corners said before the edge, on a part that shows no corners, run after that edge: verified on the head.
- Claim (changeset): the focused-links shadow ask writes the shadow, then the corners: verified on the head.
- Claim (changeset): before, the shadow was dropped and the edge is now kept too: false; the base offers the shadow in its own result and refuses the corners and the whole answer.
- Claim (description): the base writes the corners and drops the shadow or border: false, for both link asks.
- Claim (description): the person gets less than asked with nothing said: false; the base prints why the corners are refused.
- Claim (description): the steps after the corners are cut from the whole answer: false; the whole answer is refused entirely.
- Claim (description): corners move after the last edge on the same part, at rest or in their state, never after a removal, whichever came first, and nothing else moves: verified (
_how-question.mjs:29096-29119). - Claim (description): parts that already show corners and asks that name the edge first answer as before: verified (card and header-gradient asks unchanged).
- Claim (description): an owner-approved reading exists: not found on this pull request.
- Claim (description): after the change the two link asks write the shadow or border before the corners: verified on the head.
- Claim (description): a replay of every recorded ask changes exactly six answers: not verifiable from the repository.
- Claim (description): the 6 corners-first test rows fail on the base and all 16 pass here: verified.
- Claim (description): the theme editor's node tests match the base plus the new test: partly verified (the theme-how test files pass on the head; the whole directory was not run).
- Claim (description): no Core change, no new target, no new option, one defect, no tagalongs, no new public API, no internal context: verified.
- File
.changeset/theme-editor-corners-after-edge.md: finding (before-state reversed). - File
packages/cli/api/theme-edit/_how-question.mjs: non-blocking notes (two corners steps said before the edge come out reversed; the comment's example never moves). - File
packages/cli/api/theme-edit/theme-corners-after-edge.test.mjs: clear (6 rows fail on the base; 10 rows guard asks that already worked).
…said order; only a set counts as an edge; the changeset says the whole answer was refused before [skip ci]
|
/approve-spec 11b46f7 |
There was a problem hiding this comment.
Changes requested: one test needs a fix; the new step order itself is recorded by an engineering owner's /approve-spec for this head.
- The said-order case in
theme-corners-after-edge.test.mjs(lines 121-139) never checks the order, becausehowreads "a 4px top left radius" asborder-radius 4px, so theborder-top-left-radiusmatch is always -1 and the guarded assertions never run; matchborder-radius 4pxand assert unconditionally that the shadow, then12px, then4pxcome in that order.
The earlier release-note, loop-order and comment-example points are fixed. The suggested assertions are in the inline comment.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0)
- Claim: corners said before their edge now run after it, so the whole answer does both (title, release note): verified by running the asks before and after the change.
- Claim: before, the whole answer was refused and only the shadow or border was offered on its own (release note, description): verified.
- Claim: the whole answer now writes the shadow or border, then the corners, and the corners' own answer still says they show nothing alone: verified.
- Claim: parts that already show corners and asks that name the edge first are unchanged, and removals and edges in another state never count: verified with cards, an edge-first header ask, "no shadow" and a hovered border.
- Claim: only the corners step moves, with no Core change and no new target or option: verified in the code and the file list.
- Claim: the six corners-first asks of the new test fail before the change and all 16 pass after it: verified.
- Claim: the test also proves that two corners steps moved past one edge keep their order: false (the finding above); the code does keep the order.
- Claim: replaying every recorded ask changes exactly these six answers: not checkable, as the recorded asks are not in the repository.
- Claim: the theme editor tests give the same results as before plus the new test: the
howtest files pass before and after; the full directory was not run. .changeset/theme-editor-corners-after-edge.md: clearpackages/cli/api/theme-edit/_how-question.mjs: clearpackages/cli/api/theme-edit/theme-corners-after-edge.test.mjs: the said-order finding
…adii after the shadow, with no condition [skip ci]
There was a problem hiding this comment.
Approval waits on an engineering owner recording the new step order for this head; the earlier test finding is fixed and nothing else blocks.
- No current spec record decides the order in which
howruns a whole answer's steps, and the earlier/approve-specnames the previous head, so an engineering owner (the author is one) needs to comment/approve-spec <full head SHA>on this pull request to settle thathowruns a corners step on a part that shows no corners after the fill, border, shadow or outline the same ask gives that part (at rest or in the corners' own state, never after a removal), in the order the corners were said.
The said-order test case now fails on the earlier reversed order and passes here.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0)
- Claim: corners said before their edge now run after it, so the whole answer does both (title, release note): verified by running the asks before and after the change.
- Claim: "focused links: 12px corners and a shadow" now writes the shadow, then the corners (release note): verified.
- Claim: before, the whole answer was refused and only the shadow was offered on its own (release note): verified on the base.
- Claim: replaying the recorded asks finds no worse answer at this head (description): not checkable, as the recorded asks are not in the repository.
.changeset/theme-editor-corners-after-edge.md: clearpackages/cli/api/theme-edit/_how-question.mjs: clearpackages/cli/api/theme-edit/theme-corners-after-edge.test.mjs: clear
|
/approve-spec 7821eae |
There was a problem hiding this comment.
Approved: the new step order carries an engineering owner's approval for this head, and nothing else blocks.
The reorder is confined to the experimental how answer, and the new test fails on the base and passes here.
Claims and files checked
Review mode: same-head; reason: none
- Claim: Title and release note: corners said before the edge they need, on a part that shows no corners yet, now run after that edge so the whole answer does both: verified (
_how-question.mjsreorder pass; the corners-first test rows pass on the head and fail on the base). - Claim: Release note: "focused links: 12px corners and a shadow" writes the shadow, then the corners: verified by running the ask on the head.
- Claim: Release note and description: before, the whole answer was refused and only the shadow (or the border) was offered on its own: verified on the base.
- Claim: Description: the cause is that corners are checked first, on a part with no fill, border or shadow yet: verified (the corners check in the
setpath refuses corners on a part with no edge). - Claim: Description: only a corners step said before the last edge step on the same part moves, to just after it; parts that round their own corners and removals are untouched: verified in the reorder pass and by the card and removal asks.
- Claim: Description: the corners' own one-clause answer still says they show nothing alone: verified on the head.
- Claim: Description: an engineering owner approved the step order: verified (an engineering owner's approval names this head).
- Claim: Description: no Core change, no new target, no new option: verified (three files, all in the CLI's theme editor and its changeset).
- Claim: Description: the regression test's six corners-first asks fail on the base, all sixteen pass here, and two moved corners steps keep their order: verified by running it on both trees.
- Claim: Description: the theme editor's test project gives the same results as the base, plus the new test: verified for the 99 test files that run
howwith corners or radii (identical results on both trees); the other theme-editor test files were not run. - Claim: Description: replaying the recorded asks changes exactly six answers and nothing else: not checkable, as the recorded asks are not in the repository.
.changeset/theme-editor-corners-after-edge.md: clearpackages/cli/api/theme-edit/_how-question.mjs: clearpackages/cli/api/theme-edit/theme-corners-after-edge.test.mjs: clear
- #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. |
User impact
In
astryx experimental theme editor how, an ask that names corners before the edge that makes them show, on a part that shows no corners yet, gets no whole answer: "focused links: 12px corners and a shadow" offers the shadow on its own and refuses the corners and the whole answer; "active links: 12px corners and a red border" does the same with the border. The person gets less than one runnable answer for what they asked.Problem and solution fit
The fix runs corners said before an edge on the same part (a set of a fill, border, shadow or outline, at rest or in the corners' own state; never a removal) after that edge, in the order they were said. Parts that show corners of their own are untouched; only a corners step said before the last edge step on the same part moves, to just after that edge step.
Expected behavior and authority
Owner decision (
/approve-spec): corners said in the same ask as an edge (a fill, border, shadow or outline) on a part that shows no corners yet run after that edge, on every part.Smallest restoration
how's whole-answer step order moves a corners step (the corners dial or a border radius) after the last edge step on the same part, when the part shows no corners of its own. No other step moves; nothing else changes.No Core change, no new target, no new option.
Evidence
how "focused links: 12px corners and a shadow"has no whole answer (the corners and the whole answer are refused; the shadow is offered alone); the same forhow "active links: 12px corners and a red border".box-shadow 'var(--shadow-med)' --on link --state focus-visible(orborder '1px solid #dc2626' --on link --state active), then the corners. The corners' own one-clause answer still says they show nothing alone, as before. Replays on every recorded ask: exactly these 6 answers change (three wordings of each), nothing else moves.theme-corners-after-edge.test.mjs, 16 asks that give a part an edge and corners (header gradients, links in a state, hovered checkboxes): the 6 corners-first asks fail on the base, all 16 pass here; plus two corners steps moved past one edge keep their order.Scope
Components: theme editor (
howonly)Testing
CI=1 vitest run --project node packages/cli/api/theme-editwith Core and the bundled themes built from this branch: the same results as the base, plus the new test.preflight: pass 7821eae
replay: worse 0 at 7821eae