Skip to content

fix(cli): a radius named for one corner writes that corner only - #13378

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
theme-editor-one-corner-radius
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
theme-editor-one-corner-radius

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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" writes border-radius 4px, and "a link with a 4px top left radius" is refused as border-radius 4px. The person asked for one corner.

Problem and solution fit

  • Why does it happen? For a part that shows no corners of its own, and no edge the theme gives it, how drops the corners it names and reads the ask as the corners dial, which rounds every corner.
  • Why does that hurt? It writes, or names, a different change than the one asked.
  • Why does it matter? One rounded corner is a common ask (a tab, a speech bubble, a card's top).

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

  • how no 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

  • Reproduction before the change: how "focused links: a shadow and a 4px top left radius" writes border-radius 4px --on link --state focus-visible.
  • Result after the change: it writes 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".
  • Representative unchanged path: "cards with a 4px top left radius" writes border-start-start-radius 4px --on card, as before.
  • Regression test: 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 (how only)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

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

…hat corner only, on a part that shows no corners of its own too

[skip ci]
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 3:36pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026
@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 4:42 PM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Automated review (maintainer link)

Comment on lines +22239 to +22241
// (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.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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:

Suggested change
// (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.)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec a4898d0

@josephfarina
josephfarina marked this pull request as ready for review November 21, 2026 16:25

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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): how no 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

Automated review (maintainer link)

@josephfarina
josephfarina merged commit e804d2d into feature/theme-editor Nov 21, 2026
13 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
Reviewed pull request #13378, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #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
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13412.

@github-actions
github-actions Bot deleted the theme-editor-one-corner-radius branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — a4898d09 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant