Repository navigation
fix(cli): a border colour on a part that draws no border brings the border it needs - #12510
josephfarina wants to merge 14 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
645fcc9 to
452e8d7
Compare
8569579 to
097e57b
Compare
097e57b to
db6b17a
Compare
452e8d7 to
45588bb
Compare
There was a problem hiding this comment.
Waiting on an engineering owner: no current spec record defines what experimental theme editor set writes when a border color lands on a part that draws no border, so approval needs an engineering owner to decide that direction (the added transparent border, the refusal where the theme sets the border to none, and the build change) by commenting /approve-spec with this head's full SHA; the author may do so as an engineering owner. These fixes are needed either way:
- The changeset's last sentence says the build no longer resets a selected tab's per-side border colors, but both tests that cover it pass without the change and the base already writes the border before the colors in every case tried, so add a test that fails without the
_settings.mjskey lookup (asserting the border is present before checking its order) or drop that sentence. drawsBorderAskedin_check.mjsre-reads Core's border rules beside the existingdrawsLine, and the two already disagree on variants andnonestyles, so extenddrawsLinewith the asked variant and the style check and call it fromborderFor.- The test plan says this part's CI runs on this exact head, but
ci.ymlruns only on pull requests intomainorrelease/**and no CI job has run here, so say what ran instead and that CI first runs once the part targetsmain.
The border itself is well covered: four of the new tests fail without the change and pass with it.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: a border color on a part with no border in the asked variant and state also writes a transparent at-rest border as wide as the theme's border width. Verified: the tab, primary-button and banner cases; the tab and button tests fail without the change.
- Changeset: the result names the border and one undo takes back both. Verified by the note test and a banner set-and-undo; the undo test alone also passes without the change (non-blocking).
- Changeset: a border color is refused where the theme sets that border to none, with the undo that clears it. Verified: the test fails without the change and passes here.
- Changeset:
howanswers check and build their border colors the same way. Verified: the check test fails without the change and passes here. - Changeset and description: the build keeps a state's own border colors after a repeated border. Not shown (first blocking point).
- Description: editor-only, with no Core, spec record or official-theme change. Verified from the file list.
- Description: the editor's tables stay pure and the adapter finds the built-in themes. Verified: the tables module no longer reads the disk, and the structure check passes.
- Description: no change to the question parser and no new mood or feel phrases. Verified: that file is untouched.
- Description: each commit passed the integration-branch gate. Partly reproduced: the structure and changeset checks, the two new suites and 17 related editor suites pass here; the CLI typecheck reports only two unchanged template pages that need a built theme; the full suite and the held-out answer key were not run.
- Description: this part's CI runs on this exact head. False (third blocking point).
- Description: the look gate on a site built from the top of the stack. Not verifiable from this pull request.
.changeset/experimental-theme-border-color-brings-border.md: first blocking point.packages/cli/api/theme-edit/_adapter.mjs: clear.packages/cli/api/theme-edit/_check.mjs: second blocking point; the comment above the new refusal call says a border color on a part with no border has no line to color, which now holds only where the theme sets the border to none (non-blocking).packages/cli/api/theme-edit/_edit.mjs: clear; it saves the border before the color, ashow's check does.packages/cli/api/theme-edit/_how-commands.mjs: clear.packages/cli/api/theme-edit/_settings.mjs: no test fails without its change (first blocking point).packages/cli/api/theme-edit/_tables.mjs: clear; every reader of the built-in list runs after the adapter loads.packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: passes without the change, so it does not guard the build fix.packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: the selected-tab and undo cases pass without the change.packages/cli/test-utils/css-shorthand-order.mjs: clear.scripts/vitest-node-durations.json: clear.
db6b17a to
19f4274
Compare
0bb917f to
dd43a42
Compare
19f4274 to
1bc1a02
Compare
There was a problem hiding this comment.
Waiting on an engineering owner: no current spec record defines what experimental theme editor set writes when a border color lands on a part that draws no border, so approval needs an engineering owner to decide that direction (the added transparent border, the refusal where the theme sets the border to none, and the build change) by commenting /approve-spec with this head's full SHA; the author may do so as an engineering owner. These fixes are needed either way:
- The changeset's last sentence says the build no longer resets a selected tab's per-side border colors, but both tests that cover it pass without the change and the base already builds the same CSS in every case tried, so add a test that fails without the
_settings.mjskey lookup (asserting the border is present before checking its order) or drop that sentence. drawsBorderAskedin_check.mjsre-reads Core's border rules beside the existingdrawsLine, and the two already disagree (for the button,drawsLinecounts the secondary variant's border for every variant), so extenddrawsLinewith the asked variant and the style check and call it fromborderFor.
The test plan's CI wording is fixed, and the border itself is well covered: four of the new tests fail without the change and pass with it.
Claims and files checked
Review mode: full; reason: rebase
- Changeset: a border color on a part with no border in the asked variant and state also writes a transparent at-rest border as wide as the theme's border width. Verified: the tab, primary-button and banner cases; the tab and button tests fail without the change.
- Changeset: the result names the border and one undo takes back both. Verified by the note test and a banner set-and-undo run; the undo test alone also passes without the change (non-blocking).
- Changeset: a border color is refused where the theme sets that border to none, with the undo that clears it. Verified: the test fails without the change, and the refusal offers the undo line.
- Changeset:
howanswers check and build their border colors the same way. Verified: the check test fails without the change and passes here. - Changeset and description: the build keeps a state's own border colors after a repeated border. Not shown (first point above).
- Description: editor-only, with no Core, spec record or official-theme change. Verified from the file list.
- Description: the editor's tables stay pure and the adapter finds the built-in themes. Verified: the tables module no longer reads the disk, and the structure check passes.
- Description: no change to the question parser and no new mood or feel phrases. Verified: that file is untouched.
- Description: each commit passed the integration-branch gate. Partly reproduced: the structure and changeset checks, the two new suites and the CLI typechecks pass here, apart from two unchanged template pages that need a built theme; the full suite and the held-out answer key were not run.
- Description: CI has not run on this head and starts once the part targets
main. Verified: CI runs only on pull requests intomainor release branches, and no CI job ran here. - Description: each head is checked locally before CI, and the look gate on a site built from the top of the stack. Not verifiable from this pull request.
.changeset/experimental-theme-border-color-brings-border.md: first point above.packages/cli/api/theme-edit/_adapter.mjs: clear.packages/cli/api/theme-edit/_check.mjs: second point above; the comment above the new refusal call says a border color on a part with no border has no line to color, which now holds only where the theme sets the border to none (non-blocking).packages/cli/api/theme-edit/_edit.mjs: clear; it saves the border before the color, ashow's check does.packages/cli/api/theme-edit/_how-commands.mjs: clear.packages/cli/api/theme-edit/_settings.mjs: no test or run shows a difference from its change (first point above).packages/cli/api/theme-edit/_tables.mjs: clear; every reader of the built-in list runs after the adapter loads.packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: passes without the change, so it does not guard the build fix.packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: the selected-tab and undo cases pass without the change.packages/cli/test-utils/css-shorthand-order.mjs: clear.scripts/vitest-node-durations.json: clear.
1bc1a02 to
51b091f
Compare
dd43a42 to
1ce7537
Compare
There was a problem hiding this comment.
Waiting on an engineering owner: no current spec record defines what experimental theme editor set writes when a border color lands on a part that draws no border, so approval needs an engineering owner to decide that direction (the added transparent border, the refusal where the theme sets the border to none, and the build change) by commenting /approve-spec with this head's full SHA; the author may do so as an engineering owner. These fixes are needed either way:
- The changeset's last sentence says the build no longer resets a selected tab's per-side border colors, but both tests that cover it pass without the change and the base already builds the same CSS in every case tried, so add a test that fails without the
_settings.mjskey lookup (asserting the border is present before checking its order) or drop that sentence. drawsBorderAskedin_check.mjsre-reads Core's border rules beside the existingdrawsLine, and the two already disagree (for the button,drawsLinecounts the secondary variant's border for every variant), so extenddrawsLinewith the asked variant and the style check and call it fromborderFor.
The border itself is well covered: four of the new tests fail without the change and pass with it. One smaller, non-blocking point is left inline: a border color on a part Core already draws a border on is still accepted after the theme sets that border to none.
Claims and files checked
Review mode: full; reason: rebase
- Changeset: a border color on a part with no border in the asked variant and state also writes a transparent at-rest border as wide as the theme's border width. Verified: the tab, primary-button and banner cases; the tab and button tests fail without the change.
- Changeset: the part keeps one size in every state. Verified from the code: the border is written at rest with no state or mode.
- Changeset: the result names the border and one undo takes back both. Verified by the note test and a banner set-and-undo run; the undo test alone also passes without the change (non-blocking).
- Changeset: a border color is refused where the theme sets that border to none, with the undo that clears it. Verified for a tab (the test fails without the change); not for a part Core draws a border on, such as inputs (non-blocking, inline).
- Changeset:
howanswers check and build their border colors the same way. Verified: the check test fails without the change and passes here. - Changeset and description: the build keeps a state's own border colors after a repeated border, so a selected tab's colors are no longer reset. Not shown (first point above).
- Description: editor-only, with no Core, spec record or official-theme change. Verified from the file list.
- Description: the editor's tables stay pure and the adapter finds the built-in themes. Verified: the tables module no longer reads the disk, the structure check passes, and editor tests that skip the adapter still pass.
- Description: no change to the question parser and no new mood or feel phrases. Verified: that file is untouched.
- Description: each commit passed the integration-branch gate. Partly reproduced: the structure and changeset checks, the two new suites, the editor tests that skip the adapter and the CLI typechecks pass here, apart from two unchanged template pages that need a built theme; the full suite and the held-out answer key were not run.
- Description: CI has not run on this head and starts once the part targets
main. Verified: CI runs only on pull requests intomainor release branches, and no CI job ran here. - Description: each head is checked locally before CI, and the look gate on a site built from the top of the stack. Not verifiable from this pull request.
.changeset/experimental-theme-border-color-brings-border.md: first point above.packages/cli/api/theme-edit/_adapter.mjs: clear.packages/cli/api/theme-edit/_check.mjs: second point above; the refusal skips parts Core draws a border on (non-blocking, inline); the comment above the refusal call says a border color on a part with no border has no line to color, which now holds only where the theme sets the border to none (non-blocking).packages/cli/api/theme-edit/_edit.mjs: clear; it saves the border before the color, ashow's check does.packages/cli/api/theme-edit/_how-commands.mjs: clear.packages/cli/api/theme-edit/_settings.mjs: no test or run shows a difference from its change (first point above).packages/cli/api/theme-edit/_tables.mjs: clear; every reader of the built-in list runs after the adapter loads.packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: passes without the change, so it does not guard the build fix.packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: the selected-tab and undo cases pass without the change.packages/cli/test-utils/css-shorthand-order.mjs: clear.scripts/vitest-node-durations.json: clear.
|
Owner decision (engineering owner, covering this pull request): when the experimental theme editor's |
|
/approve-spec 1ce7537 |
51b091f to
6c2ceca
Compare
1ce7537 to
082a11b
Compare
|
/approve-spec 082a11b |
082a11b to
eb48091
Compare
There was a problem hiding this comment.
Changes requested. The refusal after a whole border none is back as the engineering owner decided, and inputs no longer get a false "does not show"; one defect remains in how the brought border meets a partial none.
- On a part Core draws no border on (a tab),
setwrites the broughtborder: var(--border-width) solid transparentafter the theme's ownborder-bottom noneorborder-style 'none none solid', so the shorthand resets it and the bottom the theme hid draws in the new color, while afterborder-width '0 0 1px'the color is saved and never shows (packages/cli/api/theme-edit/_edit.mjs:6565-6566,_check.mjs:3460-3469,_how-commands.mjs:1525-1532): write the brought border before the part's own border settings, count a theme width as a line only where a style draws it, and add tab tests that check the built CSS.
CI has not run on this head yet; it runs once the pull request targets main.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified (the pull request targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154; the CLI structure check passes). - Claim: a border color on a part that draws no border brings the border it needs: verified for tabs, primary buttons, banners and badges (tests fail on the base and pass here; captured tabs draw the 1px line).
- Claim: no change to the how-question file and no new mood or feel phrases: verified (this pull request changes neither).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: partly verified; at this head the structure and changeset checks pass, the three new test files pass, and the strict typecheck fails only on unbuilt theme imports in two untouched templates; the integration branch and the answer key were not run.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified (tests fail on the base and pass here). - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified on inputs; false on a tab, where the brought border resets the none or the color never shows (blocking finding).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent at-rest border as wide as the theme's border width: verified (
borderForin_check.mjs,changeOncein_edit.mjs). - Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified ("added a 1px border to tab so the color shows").
- Changeset: one undo takes back both: verified (the test asserts both settings, then none; it fails on the base).
- Changeset: the change measures what the added width moves, every time: verified (real-render test for badges and dialog headers).
- Changeset: where the theme's own none hides every side the color is on, the color is refused, naming the none, with its undo: verified.
- Changeset: a none on fewer sides (
border-width '0 0 1px') is no conflict: false on a tab (blocking finding). - Changeset:
howchecks and builds its border colors the same way: verified (the ordering test fails on the base and passes here), and it shares the blocking finding. - File
.changeset/experimental-theme-border-color-brings-border.md: its partial-none sentence is false on a tab (blocking finding). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: blocking (bordersBeyondCorecounts a theme width as a line where no style draws it). - File
packages/cli/api/theme-edit/_edit.mjs: blocking (the brought border is pushed after the part's own border settings); non-blocking (the undo loop's border pattern also matchesborder-radius). - File
packages/cli/api/theme-edit/_how-commands.mjs: blocking (the same order inapply). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: non-blocking (no test covers a partial none on a tab, undoing a none under a saved color, or setting the same color again). - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
| (/** @type {any} */ x) => | ||
| x.source === 'property' && | ||
| edgeProp.test(String(x.thing)) && | ||
| !blank(x.value) && |
There was a problem hiding this comment.
This counts the theme's own width as a line even where no style draws it. On a tab, whose Core border style is none, border-width '0 0 1px' makes borderFor bring no border and borderSetToNone (now side by side) finds no conflict, so border-color '#d00000' --on tab is saved with no line and no word. Count a width as a line only where a style draws it, as drawsLine does for Core's rules (:3045).
There was a problem hiding this comment.
Changes requested. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision; one defect remains in how the brought border meets a partial none.
- On a part Core draws no border on (a tab),
setwrites the broughtborder: var(--border-width) solid transparentafter the theme's ownborder-bottom noneorborder-style 'none none solid', so the shorthand resets it and the hidden bottom draws in the new color, while afterborder-width '0 0 1px'the color is saved and never shows (packages/cli/api/theme-edit/_edit.mjs:6573-6574,_check.mjs:3501-3509,_how-commands.mjs:1530-1532): write the brought border before the part's own border settings, count a theme width as a line only where a style draws it, and add tab tests that check the built CSS.
CI has not run on this head yet; it runs once the pull request targets main.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified (the pull request targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154; the CLI structure check passes). - Claim: a border color on a part that draws no border brings the border it needs: verified for tabs, primary buttons, banners and badges (tests fail on the base and pass here; captured tabs draw the 1px line).
- Claim: no change to the how-question file and no new mood or feel phrases: verified (this pull request changes neither).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: partly verified; at this head the structure and changeset checks pass, the three new test files pass, and of four CLI typechecks only the strict one fails, on unbuilt theme imports in two untouched templates; the integration branch and the answer key were not run.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified (tests fail on the base and pass here). - Claim: a none on fewer sides than the color is no conflict and the color is saved: saved, yes; but on a tab the brought border resets the none, or the color never shows (blocking finding).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent at-rest border as wide as the theme's border width: verified (
borderForin_check.mjs,changeOncein_edit.mjs). - Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified ("added a 1px border to tab so the color shows").
- Changeset: one undo takes back both: verified (the test asserts both settings, then none; it fails on the base).
- Changeset: the change measures what the added width moves, every time: verified (real-render test for badges and dialog headers).
- Changeset: where the theme's own none hides every side the color is on, the color is refused, naming the none, with its undo: verified.
- Changeset: a none on fewer sides (
border-width '0 0 1px') is no conflict: false on a tab (blocking finding). - Changeset:
howchecks and builds its border colors the same way: verified (its ordering tests fail on the base and pass here), and it shares the blocking finding. - File
.changeset/experimental-theme-border-color-brings-border.md: its partial-none sentence is false on a tab (blocking finding). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: blocking (bordersBeyondCorecounts a theme width as a line where no style draws it). - File
packages/cli/api/theme-edit/_edit.mjs: blocking (the brought border is pushed after the part's own border settings); non-blocking (the undo loop's border pattern also matchesborder-radius). - File
packages/cli/api/theme-edit/_how-commands.mjs: blocking (the same order inapply). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: non-blocking (no test covers a partial none on a tab, undoing a none under a saved color, or setting the same color again). - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Changes requested. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision; one defect remains where a theme's own partial none or bare width meets a border color.
- On a part Core draws no border on (a tab), after
border-bottom none,border-width '0 0 1px'or a bareborder-top-width 2px,set border-colorsaves a color that never draws and says nothing, becauseborderForbrings no border after any none or theme width and only a whole none is refused (packages/cli/api/theme-edit/_check.mjs:3617,:3501-3509,:3642-3656): refuse it as for a whole none or bring the border before the part's own border settings, test what the build draws, and correct the changeset's "no conflict" sentence.
Non-blocking: undo <theme> border-color --on <part> leaves the brought transparent border, so the part stays 2px wider with nothing visible. CI has not run on this head yet; it runs once the pull request targets main.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified (the pull request targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154; the CLI structure check and the 16 test files that import the tables pass). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (tests fail on the base and pass here; the captured tab draws the 1px line); false after a partial none or a bare width on a tab (blocking finding).
- Claim: no change to the how-question file and no new mood or feel phrases: verified (this pull request changes neither).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: partly verified; at this head the structure and changeset checks pass and the three new test files pass; the integration branch, the full suite, the typechecks and the answer key were not run.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0; the test fails on the base and passes here). - Claim: a none on fewer sides than the color is no conflict and the color is saved: saved, yes; on a tab the color then never draws (blocking finding).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent at-rest border as wide as the theme's border width: verified (
borderFor,changeOnce), except after a partial none or a bare width. - Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified ("added a 1px border to tab so the color shows").
- Changeset: one undo takes back both: verified for the one-step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (real-render test for badges; a tab grows by 2px in width).
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a none on one side or in a list of values is no conflict and brings no border: brings no border, yes; "no conflict" is false on a tab (blocking finding).
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here), and it shares the blocking finding. - File
.changeset/experimental-theme-border-color-brings-border.md: its "no conflict" sentence is false on a tab (blocking finding). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: blocking (borderForbrings no border after any none or theme width, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: clear apart from sharingborderFor's gap. - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: its partial-none test asserts only the save (part of the blocking finding). - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
| bordersBeyondCore(ctx, data, s, t) || | ||
| // (Any none the theme sets there, a whole one or one side's: the | ||
| // color is saved as written, and no border is brought.) | ||
| borderTurnedOff(ctx, data, s, t) != null, |
There was a problem hiding this comment.
After any none the theme sets on the part, whole or one side's, this brings no border, and borderNoneRefusal refuses only a whole none. So on a tab, set <theme> border-bottom none --on tab (or border-width '0 0 1px') and then set <theme> border-color '#d00000' --on tab saves the color with no line and no note; the build writes .astryx-tab { border-bottom: none; border-color: #d00000; }. When the theme's own border settings leave the part no side with both a width and a drawing style, refuse as for a whole none, or bring the border before the part's own border settings so the hidden side stays hidden.
| ...fieldNotes, | ||
| ...(borderAdded | ||
| ? [ | ||
| `added a ${borderWidthOf(r.res, data)} border to ${borderAdded.on}${borderAdded.when ? ` when ${borderAdded.when}` : ''} so the color shows: ${borderAdded.on} drew none there; ${describe(borderAdded)}, see-through at rest, so ${borderAdded.on} keeps one size in every state; undo ${slug} takes back both`, |
There was a problem hiding this comment.
Non-blocking: "undo takes back both" holds for the one-step undo, but undo <theme> border-color --on tab removes only the color and leaves border var(--border-width) solid transparent on the tab, which stays 2px wider with nothing visible. Remove the brought border with its color, or say that it stays.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case departs from that decision on purpose: after the theme's own partial none or bare width (border-bottom none, border-width '0 0 1px' or border-top-width 2px on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written, so it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none or a bare width no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: not checked here; the three new test files pass at this head.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none). - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base); whether it should stay so waits on the owner decision above.
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.13 to 90.13px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear. - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none or theme width, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: clear (it sharesborderFor, so it follows the owner decision too). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case departs from that decision on purpose: after the theme's own partial none or bare width (border-bottom none, border-width '0 0 1px' or border-top-width 2px on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written, so it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none or a bare width no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: not checked here; the three new test files pass at this head.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none). - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base); whether it should stay so waits on the owner decision above.
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.13 to 90.13px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear. - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none or theme width, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: clear (it sharesborderFor, so it follows the owner decision too). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case departs from that decision on purpose: after the theme's own partial none or bare width (border-bottom none, border-width '0 0 1px' or border-top-width 2px on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written, so it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none or a bare width no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: not checked here; the three new test files pass at this head.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none). - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base); whether it should stay so waits on the owner decision above.
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.13 to 90.13px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear. - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none or theme width, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: clear (it sharesborderFor, so it follows the owner decision too). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case departs from that decision on purpose: after the theme's own partial none or bare width (border-bottom none, border-width '0 0 1px' or border-top-width 2px on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written, so it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none or a bare width no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: not checked here; the three new test files passed on the identical patch before the base was rewritten.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none). - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base); whether it should stay so waits on the owner decision above.
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.13 to 90.13px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear. - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none or theme width, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: clear (it sharesborderFor, so it follows the owner decision too). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case departs from that decision on purpose: after the theme's own partial none or bare width (border-bottom none, border-width '0 0 1px' or border-top-width 2px on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written, so it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every changed file is under
packages/cli, plus the changeset and test timings; two commits that undo and redo a palette change cancel out). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none or a bare width no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: not checked here; the three new test files and ten neighbouring editor test files pass on this head.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none; the undo names that setting). - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base); whether it should stay so waits on the owner decision above.
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.13 to 90.13px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings, built CSS and captured frames match the base).
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear. - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none or theme width, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: clear (it sharesborderFor, so it follows the owner decision too). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case still departs from that decision on purpose: after the theme's own partial none, or a width or style it sets alone (border-bottom none, border-width '0 0 1px', border-top-width 2px or border-style solid on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written and it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Miss: non-blocking: when the part already saves a border color with no border (for example
border-bottom none, thenborder-color '#0000ff', then undoing the none), the next side color writes the broughtborderafter it, so the saved color draws transparent; insert the brought border before the part's earlier border colors, insetand inhow. - Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: incremental; reason: none
- Changed rules since the last review: none.
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every changed file is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none, a bare width or a bare style no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: not checked here; the three new test files pass on this head.
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none; the undo names that setting); after a side's none, a color for that side is saved, which waits on the owner decision above. - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.125 to 90.125px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset: a width or style the theme sets on a part counts as a drawn border, so a color there is saved as written with no border and no note: verified as written (saved settings, built CSS and the captured tab match the base; the tab still draws no line); whether it should stay so waits on the owner decision above.
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear (its new sentence states the deferred case accurately). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none, theme width or theme style, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (the brought border lands after an earlier saved color; an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: non-blocking (the same order assetfor an earlier saved color of another side). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
| // needs, written before it in the same change. | ||
| if (sub === 'set') { | ||
| borderAdded = borderFor(ctx, slug, data, s); | ||
| if (borderAdded) data.settings.push(borderAdded); |
There was a problem hiding this comment.
Miss, non-blocking: this pushes the brought border after the part's existing settings, so a border color the theme already saves there with no border is reset. For example set <theme> border-bottom none --on tab, set <theme> border-color '#0000ff' --on tab, undo <theme> border-bottom --on tab, then set <theme> border-bottom-color '#d00000' --on tab builds .astryx-tab { border-color: #0000ff; border: var(--border-width) solid transparent; border-bottom-color: #d00000; }: the theme still lists blue, but only the red bottom draws, and shorthandsAfterOwnLonghands reports the block. Insert the brought border before the part's earlier border colors for the same look and state, and do the same in how's apply (_how-commands.mjs:1532).
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request. One case still departs from that decision on purpose: after the theme's own partial none, or a width or style it sets alone (border-bottom none, border-width '0 0 1px', border-top-width 2px or border-style solid on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written and it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Miss: non-blocking: when the part already saves a border color with no border (for example
border-bottom none, thenborder-color '#0000ff', then undoing the none), the next side color writes the broughtborderafter it, so the saved color draws transparent; insert the brought border before the part's earlier border colors, insetand inhow. - Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file in the net diff is under
packages/cli, plus the changeset and test timings; the branch's two palette commits cancel out). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in; the CLI structure check passes). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none, a bare width or a bare style no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: partly checked here (the three new test files pass, and the structure and changeset checks pass on this head; the CLI's strict typecheck shows errors only in two untouched page templates that need a built theme package).
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0,border-style none; the undo names that setting); after a side's none, a color for that side is saved, which waits on the owner decision above. - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.125 to 90.125px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset: a width or style the theme sets on a part counts as a drawn border, so a color there is saved as written with no border and no note: verified as written (saved settings, built CSS and the captured tab match the base; the tab still draws no line); whether it should stay so waits on the owner decision above.
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear (it states the deferred case accurately). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none, theme width or theme style, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (the brought border lands after an earlier saved color; an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: non-blocking (the same order assetfor an earlier saved color of another side). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request, and the newest commit only rewrites the changeset, which now describes the held case accurately. One case still departs from that decision on purpose: after the theme's own partial none, or a width or style it sets alone (border-bottom none, border-width '0 0 1px', border-top-width 2px or border-style solid on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written and it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Miss: non-blocking: when the part already saves a border color with no border (for example
border-bottom none, thenborder-color '#0000ff', then undoing the none), the next side color writes the broughtborderafter it, so the saved color draws transparent; insert the brought border before the part's earlier border colors, insetand inhow. - Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: full; reason: rebase
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file in the net diff is under
packages/cli, plus the changeset and test timings; the branch's two palette commits cancel out). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in; the CLI structure check passes). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass here; the captured tab draws the 1px line); after a partial none, a bare width or a bare style no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: partly checked here (the three new test files pass, and the structure and changeset checks pass on this head; the CLI's strict typecheck shows errors only in two untouched page templates that need a built theme package).
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0; the undo names that setting); after a side's none, a color for that side is saved, which waits on the owner decision above. - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.125 to 90.125px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset: a part the theme gives a border width or style of its own keeps a color as written, with no border and no note, and nothing shows where that width has no drawing style: verified (saved settings, built CSS and the captured tab match the base; the tab still draws no line); whether it should stay so waits on the owner decision above.
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass here). - File
.changeset/experimental-theme-border-color-brings-border.md: clear (it states the deferred case accurately). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none, theme width or theme style, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (the brought border lands after an earlier saved color; an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: non-blocking (the same order assetfor an earlier saved color of another side). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none match the engineering owner's decision on this pull request, and this push only rebases the branch without changing its patch. One case still departs from that decision on purpose: after the theme's own partial none, or a width or style it sets alone (border-bottom none, border-width '0 0 1px', border-top-width 2px or border-style solid on a tab, or border-bottom none then border-bottom-color on a text input), set saves the border color as written and it never shows, where the decision says set brings a border or refuses. Approval needs an engineering owner to update the decided direction for that case, accepting the deferral or naming the outcome set must give: an engineering owner records it by commenting /approve-spec <full head SHA> on the pull request, and the author may do so as an engineering owner.
- Miss: non-blocking: when the part already saves a border color with no border (for example
border-bottom none, thenborder-color '#0000ff', then undoing the none), the next side color writes the broughtborderafter it, so the saved color draws transparent; insert the brought border before the part's earlier border colors, insetand inhow. - Non-blocking:
undo <theme> border-color --on <part>removes only the color and leaves the brought transparent border, so the part stays 2px larger with nothing visible.
Claims and files checked
Review mode: carry-forward; reason: none
- Claim: editor-only, with no Core, spec record or official-theme change: verified (every file in the diff is under
packages/cli, plus the changeset and test timings). - Claim: part of a stack based on the previous part, merged in order: verified as far as this pull request goes (it targets the previous part's branch).
- Claim: the editor's tables stay pure and the adapter finds the built-in themes: verified (
_tables.mjsno longer imports discovery;_adapter.mjs:154hands the themes in; the CLI structure check passed on this patch). - Claim: a border color on a part that draws no border brings the border it needs: verified for a plain tab, primary button, banner and badge (the tests fail on the base and pass on this patch; the captured tab draws the 1px line); after a partial none, a bare width or a bare style no border is brought, which waits on the owner decision above.
- Claim: no change to the how-question file and no new mood or feel phrases: verified (neither is in the diff).
- Claim: every commit was gated with the Node suite, the CLI typechecks, the structure and changeset checks and a held-out answer key: partly checked (the three new test files pass and the structure and changeset checks pass on this patch; the CLI's strict typecheck shows errors only in two untouched page templates that need a built theme package).
- Claim: CI has not run on this head yet: verified (no build, test or lint workflow ran).
- Claim: each head is checked locally, and the look gate on a site built from the top of the stack shows no new blocking finding: not checkable here.
- Claim: where the theme turned the border off,
setrefuses, naming the none and offering its undo: verified for a whole none (border none,border-width 0; the undo names that setting); after a side's none, a color for that side is saved, which waits on the owner decision above. - Claim: a none on fewer sides than the color is no conflict and the color is saved: verified as written (saved exactly as on the base).
- Changeset: on a part that draws no border in the asked variant and state, a border color of any shape also writes a transparent border at rest as wide as the theme's border width: verified (the captured tab grows from 88.125 to 90.125px wide with a 1px line).
- Changeset: the part keeps one size in every state: verified (the border is written at rest).
- Changeset: the result says a border was added and how wide: verified.
- Changeset: one undo takes back both: verified for the step undo (the test fails on the base); an undo of the color by name leaves the border (non-blocking).
- Changeset: the change measures what the added width moves, every time: verified (the real-render test reads "badge grows by 2px in width").
- Changeset: where the theme turns the whole border off, the color is refused, naming the none, with its undo: verified.
- Changeset: a color after a none on one side or in a list of values is saved as written, as before, and brings no border: verified (saved settings and built CSS match the base).
- Changeset: a part the theme gives a border width or style of its own keeps a color as written, with no border and no note, and nothing shows where that width has no drawing style: verified (saved settings, built CSS and the captured tab match the base; the tab still draws no line); whether it should stay so waits on the owner decision above.
- Changeset:
howchecks and builds its border colors the same way: verified (its ordering and build tests fail on the base and pass on this patch). - File
.changeset/experimental-theme-border-color-brings-border.md: clear (it states the deferred case accurately). - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: waits on the owner decision (no border is brought after any none, theme width or theme style, and only a whole none is refused). - File
packages/cli/api/theme-edit/_edit.mjs: non-blocking (the brought border lands after an earlier saved color; an undo of the color by name leaves the brought border). - File
packages/cli/api/theme-edit/_how-commands.mjs: non-blocking (the same order assetfor an earlier saved color of another side). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear (a guard that also passes on the base). - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; its partial-none case asserts the behavior that waits on the owner decision. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
…plies the editor-only fix
…rder it needs; a state keeps its own border colors after a repeated border
…built-in themes and hands them in _tables.mjs read the installed theme packages itself (a discovery import) to list the built-in themes a theme can build on. The CLI structure check allows environment access in an API's adapter and in underscore helpers that only adapters import, and it works that set out from the import graph. Until the test helper that checks built CSS for shorthand order began importing _css.mjs, every importer of _css.mjs and of _tables.mjs was such a helper, so _tables.mjs counted as adapter-only and its discovery import passed. A test helper is a runtime importer to the check, so from that commit on _css.mjs, and _tables.mjs through it, were no longer adapter-only, and INV21 failed on _tables.mjs. Now _adapter.mjs finds the built-in themes and hands them to the tables (knowBuiltInThemes), which fills the list and the base dial's help and values. _tables.mjs imports nothing from the environment.
… brought border is named with its width, and the change measures what it moves
…ill drawn on the others, so a list row keeps its own border
… the part's own section of the sheet When a border color brings a border, set draws the sheet before and after and measures the part's boxes. It drew every component twice for that; it now draws only the section of the measured part's family when the part sits in one (its boxes are the same there), the whole sheet otherwise. The note is unchanged; the change takes seconds instead of most of a minute.
…ction page draws the part only inside its overlay; a border color after border none is saved with a note and the command for each choice; how's check writes a saved color after the border it brings
…r needs, and setting that color again does too; a none or zero is a whole token (0.5px is a width), and a none for one look hides only that look
… every side the color is on, naming the none and its undo; a none on fewer sides (0 0 1px, a bottom none) is no conflict
…hole border off; a none on one side or in a list of values is saved as written and brings no border; undoing a none no longer re-brings a border (the finer side reading moves to its own change)
… none is saved as written, as before
…n does in the editor too
… a drawn border, so a color there is saved as written and brings none
…olor as saved before
There was a problem hiding this comment.
Waiting on an engineering owner. The brought border, its note, the size check and the refusal after a whole border none follow the engineering owner's decision on this pull request, and each has a test that fails on the base. One case departs from that decision on purpose: after the theme's own partial none, bare width or bare style (border-bottom none, border-width '0 0 1px' or border-top-width 2px on a tab, or border-bottom none then border-bottom-color on a text input), set saves the color as written with no border, refusal or note, so it never shows. Approval needs an engineering owner to accept that deferral or name the outcome set must give there (refuse, or bring the border before the theme's own border settings); an engineering owner records it by commenting /approve-spec with this head's full SHA, and the author may do so as an engineering owner.
Non-blocking:
- A brought border resets a border color the part already saves: after
border-color '#0000ff' --on tabis saved with no border,set <theme> border-bottom-color '#d00000' --on tabwrites the transparent border after the blue, so the other three sides draw transparent (_edit.mjs:6548,_how-commands.mjs:1529-1532). undo <theme> border-color --on bannerremoves only the color and leaves the brought transparent border, so the banner stays 2px larger with nothing visible (_edit.mjs:7068).
Claims and files checked
Review mode: full; reason: rebase
- Claim, changeset: a border color on a part that draws none (tab, primary button, banner) also writes a transparent border at the theme's border width. Verified (new tests and a set probe on a tab).
- Claim, changeset: the result names the added border and its width, and one undo takes back both. Verified (set and undo probes; the one-undo test).
- Claim, changeset: the change measures the part's growth every time. Verified (the badge test draws for real and reads 2px).
- Claim, changeset: a whole none or zero width is refused, naming it, with its undo. Verified (probes for
border noneandborder-width 0; the refusal test). - Claim, changeset: a none on one side or in a list of values is saved as written and brings no border. Verified; this is the case held for an owner.
- Claim, changeset: a part with its own width or style keeps the color as saved, and nothing shows where that width has no style. Verified (probes; the tab picture is unchanged from the base).
- Claim, changeset:
howchecks and builds border colors the same way. Verified (the twohowcheck tests). - Claim, description: editor-only, with no Core, spec record or official-theme change. Verified (file list).
- Claim, description: the editor's tables stay pure and the adapter hands in the built-in themes. Verified (
_tables.mjs,_adapter.mjs:154; CLI structure check). - Claim, description: the refusal names the none and offers its undo. Verified; the offered undo names the setting the theme used (
borderorborder-width). - Claim, description: a none on fewer sides than the color is no conflict and the color is saved. Verified; held for an owner.
- Claim, description: the how-question module's line delta is zero. Verified.
- Claim, description: the integration-branch gate, the held-out answer key and the look gate. Not checkable in this review.
- File
.changeset/experimental-theme-border-color-brings-border.md: clear. - File
packages/cli/api/theme-edit/_adapter.mjs: clear. - File
packages/cli/api/theme-edit/_check.mjs: the held case (borderFor, lines 3610-3618). - File
packages/cli/api/theme-edit/_edit.mjs: two non-blocking findings (lines 6548 and 7068). - File
packages/cli/api/theme-edit/_how-commands.mjs: non-blocking (lines 1529-1532, same as the first). - File
packages/cli/api/theme-edit/_preview.mjs: clear. - File
packages/cli/api/theme-edit/_tables.mjs: clear. - File
packages/cli/api/theme-edit/theme-built-css-shorthand-order.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-added-size.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit-border-color-needs-a-border.test.mjs: clear; the held case has only a "saved" test, which also passes on the base. - File
packages/cli/foundation/render/part-boxes.mjs: clear. - File
packages/cli/foundation/render/picture-chrome.mjs: clear. - File
packages/cli/foundation/render/picture-playwright.mjs: clear. - File
packages/cli/test-utils/css-shorthand-order.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
Summary: fix(cli): a border colour on a part that draws no border brings the border it needs. Editor-only (experimental theme editor in
packages/cli); no Core, spec record or official-theme change.Part 14 of 25 of round 15, landing as a stack: based on
theme-r15-p13; merge in order (the next part retargets onto main after this one merges).What changes
Phrase rules
_how-question.mjsline delta: +0/-0.Test plan
CI=1, the five cli typechecks,check-cli-structure,check:changesets, and the held-outhowanswer key (252 right, 0 wrong writes).Border colour where the theme turned the border off:
setrefuses it, naming the none and offeringundo <theme> border --on <part>(the recorded owner decision); a none on fewer sides than the colour is no conflict and the colour is saved.