Repository navigation
fix(cli): a radius named for one corner writes that corner only - #13378
Conversation
…hat corner only, on a part that shows no corners of its own too [skip ci]
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner's decision about how how reads a corner named on a part that shows no corners of its own; nothing else blocks.
No current spec record decides whether astryx experimental theme editor how writes only the named corners on such a part (a link, a heading) and refuses them, naming the corner, until the part has a background, border, shadow or outline, and the /approve-spec the description mentions is not on this pull request. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. A non-blocking note on the new comment's wording is inline.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim (title): a radius named for one corner writes that corner only: verified when the part has an edge; without one the corner is refused, as the release note says.
- Claim (release note): on a part that shows no corners of its own, the named corner is written alone, as on a part that does: verified (the focused-links shadow ask; the card ask is unchanged).
- Claim (release note): before, "focused links: a shadow and a 4px top left radius" wrote
border-radius 4px: verified on the base. - Claim (release note): with no edge, the corner is refused with why, naming that corner: verified.
- Claim (description): the base rounds all four corners, and refuses the link ask as
border-radius 4px, because it falls back to the corners dial: verified. - Claim (description): an edge the same ask gives, said first, makes the corner pass: verified; said after, the whole answer is still refused, as on the base.
- Claim (description): an owner decision recorded with
/approve-spec: not found on this pull request. - Claim (description): the unchanged card path still writes the top-left corner on cards: verified.
- Claim (description): no Core change, no new target, no new option, one defect, no tagalongs, no new public API, no internal context: verified.
- Claim (description): the regression test's link cases fail on the base: verified (2 of 6 fail on the base; 6 of 6 pass on the head).
- Claim (description): the theme editor's node tests give the same results as the base plus the new test: verified over the whole theme-edit directory.
- File
.changeset/theme-editor-one-corner-radius.md: clear - File
packages/cli/api/theme-edit/_how-question.mjs: non-blocking note (comment wording) - File
packages/cli/api/theme-edit/theme-how-one-corner-radius.test.mjs: clear
| // (A part that shows no corners of its own still takes only the | ||
| // corners named: the check refuses them, with why, until the | ||
| // part has an edge, and an edge the same ask gives runs first.) |
There was a problem hiding this comment.
Non-blocking: only an edge said earlier runs first. "focused links: a 4px top left radius and a shadow" still refuses the whole answer at this head, as on the base. Suggested wording:
| // (A part that shows no corners of its own still takes only the | |
| // corners named: the check refuses them, with why, until the | |
| // part has an edge, and an edge the same ask gives runs first.) | |
| // (A part that shows no corners of its own still takes only the | |
| // corners named: the check refuses them, with why, until the | |
| // part has an edge. An edge said earlier in the same ask counts.) |
|
/approve-spec a4898d0 |
There was a problem hiding this comment.
Approved: an engineering owner's /approve-spec for this head decides how how reads a corner named on a part that shows no corners of its own, and nothing else blocks.
The non-blocking inline suggestion on the new comment's wording still applies: only an edge said earlier in the same ask lets the corner pass.
Claims and files checked
Review mode: same-head; reason: none
- Claim (title): a radius named for one corner writes that corner only: verified when the part has an edge; without one the corner is refused, as the release note says (
_how-question.mjs:22239-22241, new test). - Claim (release note): on a part with no corners of its own, the named corner is written alone, as on a part that does: verified (the focused-links shadow ask now writes
border-start-start-radius 4px; the card ask is unchanged). - Claim (release note): before, that ask wrote
border-radius 4px: verified on the base. - Claim (release note): with no edge, the corner is refused with why, naming that corner: verified (
_check.mjs:8581,_check.mjs:9020-9058, the new test's refusal case). - Claim (release note): an experimental patch entry for the CLI: verified (
.changeset/theme-editor-one-corner-radius.md:2,5). - Claim (description): the base rounds all four corners and refuses the link ask as
border-radius 4px, because it falls back to the corners dial: verified (the removed guard, base_how-question.mjs:22239-22252). - Claim (description): an edge the same ask gives, said first, makes the corner pass: verified; said after, the whole answer is still refused, as on the base.
- Claim (description): an owner decision recorded with
/approve-spec: verified for this head, from an engineering owner. - Claim (description):
howno longer falls back to the corners dial for named corners; no Core change, no new target, no new option: verified (three files, CLI only). - Claim (description): the card path is unchanged: verified.
- Claim (description): the regression test's link cases fail on the base: verified (2 of 6 fail on the base; 6 of 6 pass on the head).
- Claim (description): one defect, no tagalongs, no hidden new API, default or interaction model, no internal context in public text: verified.
- Claim (description): the theme editor's node tests give the base's results plus the new test: verified over the whole theme-edit directory.
- Claim (description): the preflight and replay lines report the author's own pre-push runs: not checkable from the pull request and not relied on; no CI workflow runs for pull requests into this branch.
- File
.changeset/theme-editor-one-corner-radius.md: clear - File
packages/cli/api/theme-edit/_how-question.mjs: non-blocking note (comment wording, inline) - File
packages/cli/api/theme-edit/theme-how-one-corner-radius.test.mjs: clear
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
- #13196 how: every part named before a colon is a subject of the list - #13283 experimental theme how: a file named in url() is a value, written as typed - #13297 experimental theme how: a file in a follow-up ask is written as typed - #13298 experimental theme how: a second url() layer left unwritten is named as not used - #13317 experimental theme how: a file's path changes no other ask inside the question reader - #13251 set: a text size said of a title piece goes on its holder's main text - #13374 experimental theme how: a label after an earlier part's sentence still sets its setting - #13396 experimental theme how: a heading's label run reads two-word and hyphenated labels; a short sentence is no heading - #13263 how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item - #13378 fix(cli): a radius named for one corner writes that corner only - #13389 experimental theme how: the url() note no longer lists the follow-up ask as uncovered - #13435 experimental theme how: the url() layer note names only the phrasing still left out - #13449 how: a colon-list item is read in the sentence that holds it as typed
|
Landed on main in #13412. |
User impact
In
astryx experimental theme editor how, a radius named for one corner on a part that shows no corners of its own (a link, a heading) rounds all four corners: "focused links: a shadow and a 4px top left radius" writesborder-radius 4px, and "a link with a 4px top left radius" is refused asborder-radius 4px. The person asked for one corner.Problem and solution fit
howdrops the corners it names and reads the ask as the corners dial, which rounds every corner.The fix keeps the named corners on every part. On a part with no edge, the check refuses the corner with why, naming that corner; an edge the same ask gives, said first, makes it pass.
Expected behavior and authority
Owner decision (
/approve-spec): a radius named for one corner writes that corner only, or is refused with a note when the part cannot show it.Smallest restoration
howno longer falls back to the corners dial for named corners on a part that shows no corners of its own.No Core change, no new target, no new option.
Evidence
how "focused links: a shadow and a 4px top left radius"writesborder-radius 4px --on link --state focus-visible.border-start-start-radius 4px --on link --state focus-visible, after the shadow.how "a link with a 4px top left radius"says "the top-left corner on link: 4px … no command does it … link has no background, border or shadow of its own".border-start-start-radius 4px --on card, as before.theme-how-one-corner-radius.test.mjs, each corner on a card, the refusal on a link, and the order after an edge; the link cases fail on the base.Scope
Components: theme editor (
howonly)Testing
CI=1 vitest run --project node packages/cli/api/theme-edit, with Core and the bundled themes built from this branch: the same results as the base, plus the new test.preflight: pass a4898d0 (CI 19/19; review half deferred: seat cap)
replay: worse 0 at a4898d0