Repository navigation
how: no rounding anywhere reads its scope word on the corner ask alone - #13260
josephfarina merged 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
b4e127d to
f30d61f
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner deciding which corner asks astryx experimental theme editor how answers with --radius-full 0px; the code change itself has no blocking finding.
No current spec record defines this reading. At this head, a corner ask that itself says anywhere, everywhere, everything or at all squares every part drawn with the pill radius, circles included, and every other square-corner ask keeps the circles round as main does. 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.
Non-blocking:
- The heading
no rounding anywhere:atpackages/cli/api/theme-edit/_how-question.mjs:22917now also heads the answer that keeps the circles (for "no rounding, and bigger text too"); using it only when the scope branch fires would keep it accurate.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Release note (#13167, amended): "no rounding anywhere" and the other three scope words give the corners dial plus
--radius-full 0px, circles included, with a radio's mark kept round. Verified by probe ("no rounding anywhere", "no rounding at all", "square corners everywhere", "make everything square"); radio pins at_how-question.mjs:20161-20166. - Release note (new):
--radius-full 0pxonly when the corner ask itself has a scope word; a "too" or a pill part elsewhere keeps the circles. Verified by the new test and probe. - Before the change, "square corners, and bigger text too" and "square corners and red badges" wrote
--radius-full 0px. Verified: the new test fails on the base with that line. - A radio's mark kept its circle. Verified: this Core draws it at 50% (the 50% case in
theme-thick-borders-chain-reaches.test.mjspasses on the head), and the code pins it where it reads the pill token. - The step fired on "too", "as well" or a pill part anywhere in the question. Verified; it also fired on "pills" and on the scope words anywhere.
- Only the four scope words on the corner clause now write
--radius-full 0px. Verified (_how-question.mjs:20155-20170). - Every other corner ask keeps its reading from before #13167. Verified: the fallback is identical to main's function.
- This differs from 0.7.17, which squared the circles for "…, badges too". Verified from the 0.7.17 source, which wrote
--radius-full 0pxon any "too". - The other branch is the earlier code unchanged, the comment says which asks square the circles, and #13167's note drops the "too" case. Verified in the diff.
- After the change, the two asks write the dial and the other ask, with no
--radius-fullor circle line. Verified. - "No rounding anywhere, badges and switches too" and "square corners everywhere" still write
--radius-full 0px, "square badge corners" writes the badge step, and "square corners on everything but avatars" keeps the avatar. Verified by probe and tests. - A new test row covers the two asks and "square badge corners". Verified: it fails on the base and passes on the head.
- The whole theme-edit test directory passes. Verified: all 548 test files pass on the head, run in batches.
- The local preflight passed with CI green. Not checkable: CI does not run on pull requests into this branch.
- No new public API. Verified.
- File
.changeset/experimental-theme-rounding-anywhere-pills.md: clear. - File
.changeset/experimental-theme-rounding-anywhere-scope.md: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: owner decision above; one non-blocking note. - File
packages/cli/api/theme-edit/theme-together-rounding-anywhere-reaches.test.mjs: clear.
| const pills = pillsSquare(dial, c); | ||
| if (pills) | ||
| return { | ||
| text: `no rounding anywhere: the corners dial square, ${pills.said}`, |
There was a problem hiding this comment.
Non-blocking: this heading now also sits over the answer that keeps the circles. For "no rounding, and bigger text too" the head prints no rounding anywhere: the corners dial square, which squares the pills too (…); the parts drawn as circles keep their shape (avatar, …), while "no rounding anywhere" itself writes --radius-full 0px. Heading it no rounding anywhere: only when pillsSquare took the scope branch (else no rounding:) keeps the label true to what is written.
|
Covers the theme-editor reading this pull request records (the owner's ruling): only "anywhere", "everywhere", "everything" or "at all" in the corner clause writes the full radius as square; "square corners, badges too" keeps avatars and circles round, which differs from 0.7.17. |
|
/approve-spec 4afe83b |
There was a problem hiding this comment.
Changes requested: the corner fix itself is ready, and an engineering owner recorded its reading at this head, but the branch cannot merge into feature/theme-editor as it stands.
- Regression: since
feature/theme-editorwas force-pushed, this branch still carries ten older commits from #13190, #13196, #12997, #13167, #13211 and #13176 (and #12763 and #12766 with their reverts) that the base already holds, so the diff shows 15 files and conflicts with the base in.changeset/experimental-theme-rounding-anywhere-pills.md,packages/cli/api/theme-edit/_how-question.mjsandpackages/cli/api/theme-edit/theme-how.test.mjs; rebase ontofeature/theme-editorand drop those commits.
After the rebase only the fix commit remains; it applies to the base without a conflict, and its tests pass there. The answer heading noted inline earlier is still a non-blocking suggestion.
Claims and files checked
Review mode: full; reason: other:base branch force-pushed since the last review
- Claim, new release note (the full radius goes square only when the corner ask itself says anywhere, everywhere, everything or at all; a "too" or a pill part elsewhere keeps the circles): verified by the new test row and a probe of twelve asks on the base and the head.
- Claim, amended #13167 release note (those four words give the corners dial plus
--radius-full 0px, circles included, with a radio's mark kept round): verified by the probe and by the test for a Core that draws the radio at 50%. - Claim, the five other release notes in the diff (colon subjects, stripe name forms, striped tables, the page label, the faster first ask): identical to the base's copies, and their tests pass at this head; they leave the diff with the rebase.
- Claim, description: before the fix, "square corners, and bigger text too" and "square corners and red badges" wrote
--radius-full 0px: verified on the base; after it, they writecorners squareplus the other ask and no--radius-fullline: verified on the head. - Claim, description: "no rounding anywhere, badges and switches too", "square corners everywhere", "square badge corners" and "square corners on everything but avatars" answer as before: verified on both.
- Claim, the fallback branch is the earlier code unchanged: verified against main's
pillsSquare. - Claim, the behaviour differs from release 0.7.17: not checked; that release is in neither tree.
- Claim, checklist: "one defect is restored", "no new public API" and "no internal context" are verified; "tagalongs were removed or split" is false at this base (the finding above).
- Claim, testing and preflight: the changed test files pass at this head and with the fix commit on the base; the whole directory was not run in this review, and no CI test run exists for this head.
- File
packages/cli/api/theme-edit/_how-question.mjs: the fix is clear; the carried stripe answer conflicts with the base (finding). - File
packages/cli/api/theme-edit/theme-how.test.mjs: carried rows; conflicts with the base (finding). - File
.changeset/experimental-theme-rounding-anywhere-pills.md: conflicts with the base's copy (finding). - File
.changeset/experimental-theme-rounding-anywhere-scope.md: clear. - File
packages/cli/api/theme-edit/theme-together-rounding-anywhere-reaches.test.mjs: clear; passes at this head and with the fix commit on the base. - File
packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs: carried; the base has 81 more lines, it merges without a conflict, and it leaves the diff with the rebase. - Files carried and identical to the base, leaving the diff with the rebase:
.changeset/experimental-theme-how-colon-subjects.md,.changeset/experimental-theme-how-stripe-name-forms.md,.changeset/experimental-theme-how-stripes-on-striped-tables.md,.changeset/experimental-theme-how-the-page-label.md,.changeset/how-first-ask-compiles-less.md,packages/cli/api/theme-edit/theme-how-lexicon-need.test.mjs,packages/cli/api/theme-edit/theme-how-page-reaches-frame.test.mjs,packages/cli/api/theme-edit/theme-thick-borders-chain-reaches.test.mjs,scripts/vitest-node-durations.json.
There was a problem hiding this comment.
Approved pending CI: the test jobs have not run on this head yet.
The corner fix is ready: an engineering owner recorded its reading at this head, and the merge conflict raised earlier is gone, since feature/theme-editor now holds the older commits this branch carries, so a merge lands only the fix commit. Two non-blocking suggestions remain:
- The answer heading
no rounding anywhere:inpackages/cli/api/theme-edit/_how-question.mjsalso heads the reading that keeps the circles round (for example "no rounding, and bigger text too"); heading it that way only when--radius-full 0pxis written would keep the label true. - "square corners, everywhere" now leaves the circles round and reports "everywhere" as unused, because the comma puts the scope word in a clause of its own; reading a clause that holds only a scope word as part of the corner clause before it would keep that phrasing working.
Claims and files checked
Review mode: same-head; reason: none
- Claim, new release note (the full radius goes square only when the corner ask itself says anywhere, everywhere, everything or at all; a "too" or a pill part elsewhere keeps the circles): verified by the new test row and by running the asks on the base, the head and the merged result.
- Claim, amended release note for no rounding anywhere (those four words give the corners dial plus
--radius-full 0px, circles included, with a radio's mark kept round): verified by the same runs and by the test for a Core that draws the radio at 50%. - Claim, release note on subjects named before a colon: identical to the base's copy; its tests pass at this head and on the merged result.
- Claim, release note on the stripes' name forms: identical to the base's copy; its tests pass at this head.
- Claim, release note on stripes for striped tables: identical to the base's copy; its tests pass at this head.
- Claim, release note on "the page:" with an article: identical to the base's copy; its tests pass at this head and on the merged result.
- Claim, release note on the faster first ask: identical to the base's copy at the recorded base; the no-compile path is verified by its test (a pattern never runs on a text without its word); the timing figure was not re-measured.
- Claim, description: before the fix, "square corners, and bigger text too" and "square corners and red badges" wrote
--radius-full 0px: verified on the base; after it, they writecorners squareplus the other ask and no--radius-fullor circle line: verified on the head and the merged result. - Claim, description: "no rounding anywhere, badges and switches too" and "square corners everywhere" still write
--radius-full 0px, "square badge corners" writescorners square --on badge, and "square corners on everything but avatars" keeps the avatar: verified. - Claim, description: the behaviour differs from release 0.7.17: consistent with that release's note, which says "… badges and switches too" squares the pill-drawn parts with
--radius-full 0px; the released code is in neither tree. - Claim, description: the fallback branch is the earlier code unchanged: verified, byte-identical to main's.
- Claim, description: the no rounding anywhere release note drops the "pill part named with too" case so the two notes agree: verified.
- Claim, checklist: one defect restored, no new public API, no internal context: verified; tagalongs removed: holds against the base branch, which now holds the older commits.
- Claim, testing: the whole theme-edit directory passes: not run in full here; the related test files pass at this head and on the merged result.
- Claim, preflight and replay lines: the checks on this head are green, but no test job has run there; the replay figure cannot be checked from the repository.
- File
packages/cli/api/theme-edit/_how-question.mjs: two non-blocking suggestions (above); the inherited hunks match the base. - File
packages/cli/api/theme-edit/theme-together-rounding-anywhere-reaches.test.mjs: clear. - File
.changeset/experimental-theme-rounding-anywhere-scope.md: clear. - File
.changeset/experimental-theme-rounding-anywhere-pills.md: clear. - File
packages/cli/api/theme-edit/theme-thick-borders-chain-reaches.test.mjs: clear (inherited). - File
packages/cli/api/theme-edit/theme-how.test.mjs: clear (inherited; the merge keeps the base's newer rows). - File
packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs: clear (inherited). - File
packages/cli/api/theme-edit/theme-how-lexicon-need.test.mjs: clear (inherited). - File
packages/cli/api/theme-edit/theme-how-page-reaches-frame.test.mjs: clear (inherited). - Files
.changeset/experimental-theme-how-colon-subjects.md,.changeset/experimental-theme-how-stripe-name-forms.md,.changeset/experimental-theme-how-stripes-on-striped-tables.md,.changeset/experimental-theme-how-the-page-label.md,.changeset/how-first-ask-compiles-less.md: clear (inherited, identical to the base's copies). - File
scripts/vitest-node-durations.json: clear (inherited timing data, identical to the base's file).
- #13190 perf(cli): the first how ask compiles only the lexicon patterns it can match - #13167 how: no rounding anywhere squares the pill radius too - #13234 set: a text size for a part with several text pieces goes to its largest - #13248 docs(changeset): #13190's release note states no pattern count - #13039 fix(cli): experimental theme editor - controls share one height at each size - #13040 feat(cli): experimental theme editor - a badges setting styles the status and category badges in the theme's colors - #13285 set: a part that holds other parts has no main text for a size - #13260 how: no rounding anywhere reads its scope word on the corner ask alone - #12723 experimental theme how: a mood said beside an ask is named as not used, never dropped
|
Landed on main in #13315. |
Follows #13167 (no rounding anywhere squares the pill radius too), fixing the over-reach its landing review flagged.
User impact
"square corners, and bigger text too" and "square corners and red badges" also wrote
--radius-full 0px, squaring avatars and the other parts drawn as circles with the pill radius (a radio's mark kept its circle), which the person never asked about.Problem and solution fit
The pill-radius step fired on "too", "as well" or a pill part anywhere in the question, so a word that belonged to another ask ("bigger text too") widened the corner ask. The fix reads the scope word on the corner clause itself: only anywhere, everywhere, everything or at all there writes
--radius-full 0px. Every other corner ask keeps the reading it had before #13167: the dial squares the pills that are a styling choice, and the circles keep their shape unless named.Expected behavior and authority
This differs from 0.7.17, which squared every circle (avatars included) for "…, badges too".
#13167's changeset: the pill radius goes square for "no rounding anywhere" and its scope words.
Smallest restoration
pillsSquaretakes the corner clause and checks the scope word there; the other branch is the earlier code unchanged. Its comment now says which asks square the circles, and #13167's changeset drops the "pill part named with too" case so the two release notes agree.Evidence
--radius-full 0px.corners square(plus the other ask) with no--radius-fullline and no circle line.--radius-full 0px; "square badge corners" writescorners square --on badge; "square corners on everything but avatars" keeps the avatar.Scope
Components: cli/api/theme-edit (how)
Testing
vitest run packages/cli/api/theme-edit(the whole theme-edit directory) passes.preflight: pass 4afe83b (CI green; review: body wording only, fixed here; one owner question)
replay: worse 0 at 4afe83b