Skip to content

experimental theme how: how <picture> measures the look's traits from its pixels - #12521

Closed
josephfarina wants to merge 35 commits into
theme-r15-p25from
theme-r15-p22
Closed

josephfarina wants to merge 35 commits into
theme-r15-p25from
theme-r15-p22

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary: experimental theme how: how <picture> measures the look's traits from its pixels. Editor-only (experimental theme editor in packages/cli); no Core, spec record or official-theme change.

Part 25 of 25 of round 15, landing as a stack: based on theme-r15-p25; merge in order (the next part retargets onto main after this one merges).

What changes

  • feat(cli): theme editor how measures the look's traits from its pixels
  • fix(cli): how writes no control trait from one kind of control
  • fix(cli): how writes field height on inputs, not the buttons' size
  • fix(cli): how sets the control size on the control families only
  • fix(cli): how review: large and grainy pictures, kept values, one renderer
  • fix(cli): how keeps corners set by the dial, and prints whole line height ratios
  • fix(cli): how keeps the dials the theme sets, and gives the checks a square box at each size
  • experimental theme: a saved --only on a part styled on its own opens
  • experimental theme: a meaningless saved --only is read as absent, as on main
  • fix(cli): --only means nothing on every group --on takes, family roles included (one predicate); how keeps a checks box the theme sizes on any member and offers the width and height pair; one helper writes a self-sized box's lines; a rounded corner is no text hole; equal readings agree, so corners pill is offered; no leading dial is named
  • fix(cli): round 15 part 22 review fixes: how drops two imports it no longer uses
  • experimental theme: the saved-only reader is the one only rule, no exception
  • fix(cli): how writes one theme-wide control radius only when every control agrees, else per family; edge width is read only from boxes that draw an edge, never 0px from filled buttons; the box helper's move leaves no unused imports
  • (test times: round 15's record of test times, measured on the same box against main)

Phrase rules

  • _how-question.mjs line delta: +34/-45.
  • Adds no mood/feel phrase matches.

Test plan

  • Every commit here was gated in the round-15 integration branch: full Node suite with CI=1, the five cli typechecks, check-cli-structure, check:changesets, and the held-out how answer key (252 right, 0 wrong writes).
  • CI has not run on this head yet: a stacked part gets CI only once it targets main. Each head is also checked locally before that (typechecks, structure, its own test files, the held-out key), and any failure found only at this head is fixed in this PR.
  • Look gate (a Bootstrap-style site built from the top of this stack, live render): no new blocking finding vs main. The tab, pager and phone blocks are gone; only the theme's own white-on-pale label text remains, as that theme sets it.

@vercel

vercel Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 20, 2026 4:19pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
❓ Needs maintainer input (for maintainers only) Nov 20, 2026, 4:31 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 18, 2026
@josephfarina
josephfarina force-pushed the theme-r15-p22 branch 2 times, most recently from 2d8b208 to dfa7c76 Compare November 18, 2026 02:25

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: five problems need fixing first, and the new picture answer needs an owner decision.

  • how on a large picture now throws RangeError: Map maximum size exceeded instead of listing its colors (a 6000×4000 grainy PNG, inside the documented 40-million-pixel limit), because readTraits measures every pixel before the colors return (packages/cli/api/theme-edit/_how.mjs:2097), so bound that reading the way the color sampling is bounded and keep the colors when it fails.
  • A control height the theme already sets for the whole theme is no longer kept: after set pt --size-element-md 32px the answer still offers --size-element-md 28px --on button-like and --on inputs, because the kept check (_how.mjs:2136) matches only the same scope while the height steps now carry --on, so count a whole-theme setting of the same thing as kept and test it.
  • The changeset and themeEditHow.doc.mjs say leading and heading weight are listed under unsure and never written, but _picture-traits.mjs:892-911 returns them as set commands (--text-body-leading, headings regular), so move them to unsure or reword both texts.
  • The changeset tags a change to the experimental how command [feat], where experimental surfaces take [experimental] (AST-017 FR22), as the other editor changesets do.
  • luminance and the unused contrast (_picture-traits.mjs:143-153) copy the palette code's luminance and the editor's contrast ratio, and stepText (:673) renders set commands with its own quoting beside the shared render, so delete the copies and render the unsure options with render.

No current spec decides what how answers for a picture, so approval also waits on an engineering owner recording that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. A new commit needs that comment again for its own head.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Changeset: measures control height, corner radius, edge width, how panels sit and the accent fill: verified (readTraits in _picture-traits.mjs; new tests)
  • Changeset: each is answered with a checked command saying where it was read and from how many boxes: verified (pictureLook in _how.mjs; test "answers with checked commands")
  • Changeset: written only where enough boxes agree: verified (two boxes and 60% in fromBoxes)
  • Changeset: for controls, only where more than one kind shows, and a badge crop writes none and says why: verified (_picture-traits.mjs:925-935; badge test)
  • Changeset: text size, heading weight, leading and the typeface are listed under unsure and never written: false for leading and heading weight (_picture-traits.mjs:892-911; a probe page answers --text-body-leading 1.4 and headings regular)
  • Changeset: gradients, bevels and shadows on controls are listed under unsure with options: partly (all are listed; only the gradient carries an option)
  • Changeset: a value the theme already sets keeps its value: false for a whole-theme control height (_how.mjs:2136; probe after set pt --size-element-md 32px)
  • Changeset: released as a [feat] patch: false against the experimental-surface rule (needs [experimental])
  • Description: editor-only, no Core, spec record or official-theme change: verified (six files under packages/cli and .changeset)
  • Description: the two listed commits: verified; two later fixes (field height on inputs, control size on the families) are not listed
  • Description: _how-question.mjs unchanged and no mood or feel phrase matches added: verified
  • Description: every commit gated in the integration branch (node suite, CLI typechecks, structure and changeset checks, held-out answer key): not verifiable at this head; here the new test file passes 17 of 17, and the changeset and CLI structure checks pass
  • Description: CI has not run on this head because a stacked part runs CI only once it targets main: verified (no workflow run; CI runs only for pull requests into main or a release branch)
  • Description: each head is also checked locally before CI: not verifiable
  • Description: look gate on a site built from the top of the stack: not verifiable (describes another head)

Files:

  • .changeset/experimental-theme-how-picture-traits.md: findings (tag; leading, heading-weight and kept-value claims)
  • packages/cli/api/theme-edit/_how.mjs: findings (large pictures; kept check; notChecked left out, non-blocking)
  • packages/cli/api/theme-edit/_picture-traits.mjs: findings (leading and heading weight written; copied helpers; unread look.slots, the set my font line and the pixel-density rounding, non-blocking)
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (17 of 17 pass; no large-picture or whole-theme kept-value case)
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: finding (leading, heading-weight and kept-value claims)

Automated review (maintainer link)

Comment thread packages/cli/api/theme-edit/_how.mjs Resolved
Comment thread packages/cli/api/theme-edit/_how.mjs Resolved

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: five problems need fixing first, and the new picture answer needs an owner decision.

  • how on a large picture now throws RangeError: Map maximum size exceeded instead of listing its colors (a 6000×4000 grainy PNG, inside the documented 40-million-pixel limit), because readTraits measures every pixel before the colors return (packages/cli/api/theme-edit/_how.mjs:2097), so bound that reading the way the color sampling is bounded and keep the colors when it fails.
  • A control height the theme already sets for the whole theme is no longer kept: after set pt --size-element-md 32px the answer still offers --size-element-md 28px --on button-like and --on inputs, because the kept check (_how.mjs:2136) matches only the same scope while the height steps now carry --on, so count a whole-theme setting of the same thing as kept and test it.
  • The changeset and themeEditHow.doc.mjs say leading and heading weight are listed under unsure and never written, but _picture-traits.mjs:892-911 returns them as set commands (--text-body-leading, headings regular), so move them to unsure or reword both texts.
  • The changeset tags a change to the experimental how command [feat], where experimental surfaces take [experimental] (AST-017 FR22), as the other editor changesets do.
  • luminance and the unused contrast (_picture-traits.mjs:143-153) copy the palette code's luminance and the editor's contrast ratio, and stepText (:673) renders set commands with its own quoting beside the shared render, so delete the copies and render the unsure options with render.

No current spec decides what how answers for a picture, so approval also waits on an engineering owner recording that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. A new commit needs that comment again for its own head.

Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Changeset: measures control height, corner radius, edge width, how panels sit and the accent fill: verified (readTraits in _picture-traits.mjs; new tests)
  • Changeset: each is answered with a checked command saying where it was read and from how many boxes: verified (pictureLook in _how.mjs; test "answers with checked commands")
  • Changeset: written only where enough boxes agree: verified (two boxes and 60% in fromBoxes)
  • Changeset: for controls, only where more than one kind shows, and a badge crop writes none and says why: verified (_picture-traits.mjs:925-935; badge test)
  • Changeset: text size, heading weight, leading and the typeface are listed under unsure and never written: false for leading and heading weight (_picture-traits.mjs:892-911; a probe page answers --text-body-leading 1.4 and headings regular)
  • Changeset: gradients, bevels and shadows on controls are listed under unsure with options: partly (all are listed; only the gradient carries an option)
  • Changeset: a value the theme already sets keeps its value: false for a whole-theme control height (_how.mjs:2136; probe after set pt --size-element-md 32px)
  • Changeset: released as a [feat] patch: false against the experimental-surface rule (needs [experimental])
  • Description: editor-only, no Core, spec record or official-theme change: verified (six files under packages/cli and .changeset)
  • Description: the two listed commits: verified; two later fixes (field height on inputs, control size on the families) are not listed
  • Description: _how-question.mjs unchanged and no mood or feel phrase matches added: verified
  • Description: every commit gated in the integration branch (node suite, CLI typechecks, structure and changeset checks, held-out answer key): not verifiable at this head; here the new test file passes 17 of 17, and the changeset and CLI structure checks pass
  • Description: CI has not run on this head because a stacked part runs CI only once it targets main: verified (no workflow run; CI runs only for pull requests into main or a release branch)
  • Description: each head is also checked locally before CI: not verifiable
  • Description: look gate on a site built from the top of the stack: not verifiable (describes another head)

Files:

  • .changeset/experimental-theme-how-picture-traits.md: findings (tag; leading, heading-weight and kept-value claims)
  • packages/cli/api/theme-edit/_how.mjs: findings (large pictures; kept check; notChecked left out, non-blocking)
  • packages/cli/api/theme-edit/_picture-traits.mjs: findings (leading and heading weight written; copied helpers; unread look.slots, the set my font line and the pixel-density rounding, non-blocking)
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (17 of 17 pass; no large-picture or whole-theme kept-value case)
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: finding (leading, heading-weight and kept-value claims)

Automated review (maintainer link)

…s included (one predicate); how <picture> keeps a checks box the theme sizes on any member and offers the width and height pair; one helper writes a self-sized box's lines; a rounded corner is no text hole; equal readings agree, so corners pill is offered; no leading dial is named
…ception

The settings reader reads a saved only by onlyMeansFor alone: a bar's
height or padding is a member there, so the exception for it goes, and
whether a saved only reads at all is the same rule.
…n every control agrees, else per family; edge width is read only from boxes that draw an edge, never 0px from filled buttons; the box helper's move leaves no unused imports
…ne rule

Whether a saved only reads at all is onlyMeans alone, and the release
note says a bar's saved only reads as absent too.
…ts family sets that aspect itself (corners --on button for a button-like reading)
…amily the reading is of or one of its members, never a theme-wide reading another part sets apart from
…e one-mode note fits both modes

A family role (button-like) spreads a change to each part of its family,
so a saved only there means nothing: the settings reader reads it as
without it, with one note, as it does on a part styled on its own,
instead of refusing the theme. The one-mode page note says the text
lands on the browser's own page color in the other OS mode.
…ey agree

The top nav sits in the app's header and in a layout header, and its rule
is one for the whole theme, so a bar's height reaches it in every bar
that holds it: it is written only when the bars given a height or
padding agree, and none when they differ, each case said with the bars
named. The set command doc and its API doc say so.
… said as such

Bars given the same height can still leave their row a different height,
as the app's header pads a safe area at its top: the note says the bars
pad it differently instead of saying their heights differ, and the docs
say so.
…unused BAR_REACH_THINGS; keep the saved-only assertions that hold

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pull request needs an engineering owner's decision before it can be approved, and two fixes.

No current spec record decides what astryx experimental theme editor how <picture.png> writes, or the rules carried beside it (a saved only on a family role such as button-like refuses the theme, a row in two bars takes a bar's height only when both bars leave it the same height, and two plain-words how answers change), and no /approve-spec names this head, so approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on the pull request for the head that lands (the author may, as an engineering owner). Whatever the decision, this needs changes:

  • Miss: in an app with no editor theme and no @astryxdesign/theme-neutral, how <picture.png> now refuses with ERR_UNKNOWN_THEME and prints none of the colors the base lists, because the picture answer loads the theme and its base with no fallback (packages/cli/api/theme-edit/_how.mjs:301-310, :2305); keep the colors and name the look under unsure when the theme cannot be read.
  • The description says _how-question.mjs changes by +34/-45, but the drawnRadius fix (packages/cli/api/theme-edit/_how-question.mjs:1022-1055) makes it +56/-49; update the count and list the missing commits under "What changes".

Smaller points sit in the review: a page of outlined buttons beside borderless fields writes the buttons' edge as a theme-wide --border-width, a one-kind crop offers a theme-wide corner line, and the readMeaninglessOnly comment and Trait.on typedef lag the code.

Claims and files checked

Review mode: full; reason: rebase

  • Claim: the change stays in the CLI's experimental theme editor, with no Core, spec record or official-theme change: verified from the changed-file list.
  • Claim: it is one part of a stack based on the part-25 branch, merged in order: the base branch is verified; the merge order is not checkable from this pull request.
  • Claim: the question module changes by 34 added and 45 removed lines: false, it changes by 56 and 49 (blocking).
  • Claim: it adds no mood or feel phrase match: verified (the question module's change is a radius check and a shared box helper, not a phrase).
  • Claim: CI has not run on this head: verified (no workflow run on this head).
  • Claim: each commit was gated on an integration branch, a held-out answer key and a look gate: not checkable from this pull request; the structure and changeset checks and the changed test files pass at this head.
  • Claim: the description lists what changes: incomplete, fourteen commits are missing (non-blocking).
  • Picture changeset: control height on the button and input families, the checks' box as a width and height pair per size, corners, edge width, panels, accent, leading and a clearly regular heading weight, written only where enough boxes agree and more than one kind of control shows, the rest under unsure, values the theme sets kept, and large or grainy pictures keeping their colors: verified against the code, its tests and a probe (it makes no claim about an app without a base theme, where the colors are lost).
  • --only changeset: set and the settings reader follow one rule; a saved only on a part styled on its own opens, read as without it with one note, and a bar's saved only reads the same way: verified against the code and its tests.
  • Plural numbered looks changeset: it now drops one clause and claims nothing new: verified.
  • set docs: a row in two bars takes no reach when the bars leave it different heights, the same height padded differently included: verified by the bar tests.
  • how docs: a picture answers its colors and look, with the traits and limits the picture changeset names: verified.
  • .changeset/experimental-theme-how-picture-traits.md: clear
  • .changeset/experimental-theme-how-plural-numbered-looks.md: clear (drops one clause, adds none)
  • .changeset/experimental-theme-saved-only-reads.md: clear
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: non-blocking (a redundant group check)
  • packages/cli/api/theme-edit/_how-question.mjs: clear in code; its line count in the description is a blocking finding
  • packages/cli/api/theme-edit/_how.mjs: blocking (a picture answer loses its colors when the theme or its base cannot be read); non-blocking (the keep rule holds back more than its docs say)
  • packages/cli/api/theme-edit/_part-pieces.mjs: clear
  • packages/cli/api/theme-edit/_part-pieces.test.mjs: clear (a rename)
  • packages/cli/api/theme-edit/_parts.mjs: clear (drops an unused export)
  • packages/cli/api/theme-edit/_picture-traits.mjs: non-blocking (an edge width read from buttons alone written theme-wide; a one-kind crop's corners offered theme-wide; the Trait.on typedef)
  • packages/cli/api/theme-edit/_picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: non-blocking (the readMeaninglessOnly comment)
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/_tables.test.mjs: clear
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-bar-height-reaches-row.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-reads-pieces-and-whole-looks.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (no case covers an app without a base theme)
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-how.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • scripts/vitest-node-durations.json: non-blocking (its $comment names CI legs for local times)

Automated review (maintainer link)

kind: 'picture',
subject: t,
...read,
...(await pictureLook(cwd, options.theme, traits)),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Miss: a picture answer now awaits pictureLook, which loads the editor theme and its base through howTheme (line 2305) with no fallback. In an app with no editor theme and no @astryxdesign/theme-neutral installed, how shot.png refuses with ERR_UNKNOWN_THEME ("The neutral theme is not installed … Nothing was changed.") and prints none of the colors already read above, where the base lists them; --at still answers. Catch the refusal and return the colors with one unsure entry that names the install line, as the 8-million-pixel limit does.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pull request needs an engineering owner's decision before it can be approved, and three fixes.

No current spec record decides what astryx experimental theme editor how <picture.png> writes, or the rules carried beside it (a saved only on a family role such as button-like refuses the theme, a row in two bars takes a bar's height only when both bars leave it the same height, and two plain-words how answers change), and no /approve-spec names this head, so approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on the pull request for the head that lands (the author may, as an engineering owner). Whatever the decision, this needs changes:

  • Miss: in an app with no editor theme and no @astryxdesign/theme-neutral, how <picture.png> refuses with ERR_UNKNOWN_THEME and prints none of the colors the base lists, because the picture answer loads the theme and its base with no fallback (packages/cli/api/theme-edit/_how.mjs:301-310, :2305); keep the colors and name the look under unsure when the theme cannot be read.
  • The rewritten part 2 release note (.changeset/theme-round15-part-02.md:11) says a text color asked with a fill reaches each variant only in the modes where it reads and that variants it can't read on keep their own text, but buttons #fde047 with #ffffff text writes the white text on the primary, secondary and ghost buttons at 1.31:1 because typed colors are written as typed (packages/cli/api/theme-edit/_how-question.mjs:31799-31808), so add that exception to the note.
  • The description says _how-question.mjs changes by +34/-45, but the drawnRadius fix (packages/cli/api/theme-edit/_how-question.mjs:1022-1055) makes it +56/-49; update the count and list the missing commits under "What changes".

Smaller points sit in the review: a page of outlined buttons beside borderless fields writes the buttons' edge as a theme-wide --border-width, a one-kind crop offers a theme-wide corner line, and the readMeaninglessOnly comment and Trait.on typedef lag the code.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim: the change stays in the CLI's experimental theme editor, with no Core, spec record or official-theme change: verified from the changed-file list.
  • Claim: it is one part of a stack based on the part-25 branch, merged in order: the base branch is verified; the merge order is not checkable from this pull request.
  • Claim: the question module changes by 34 added and 45 removed lines: false, it changes by 56 and 49 (blocking).
  • Claim: it adds no mood or feel phrase match: verified (the question module's change is a radius check and a shared box helper, not a phrase).
  • Claim: CI has not run on this head: verified (no workflow run on this head).
  • Claim: each commit was gated on an integration branch, a held-out answer key and a look gate: not checkable from this pull request; the structure and changeset checks pass at this head.
  • Claim: the description lists what changes: incomplete, fifteen commits are missing (non-blocking).
  • Picture changeset: control height on the button and input families, the checks' box as a width and height pair per size, corners, edge width, panels, accent, leading and a clearly regular heading weight, written only where enough boxes agree and more than one kind of control shows, the rest under unsure, values the theme sets kept, and large or grainy pictures keeping their colors: verified against the code and its tests (it makes no claim about an app without a base theme, where the colors are lost).
  • --only changeset: set and the settings reader follow one rule; a saved only on a part styled on its own opens, read as without it with one note, and a bar's saved only reads the same way: verified against the code and its tests.
  • Plural numbered looks changeset: it now drops one clause and claims nothing new: verified.
  • Part 2 changeset, the rewritten text-color bullet: verified for color words and for a fill given one mode; false for a text and fill typed as hex, which are written as typed (blocking).
  • set docs: a row in two bars takes no reach when the bars leave it different heights, the same height padded differently included: verified by the bar tests.
  • how docs: a picture answers its colors and look, with the traits and limits the picture changeset names: verified.
  • .changeset/experimental-theme-how-picture-traits.md: clear
  • .changeset/experimental-theme-how-plural-numbered-looks.md: clear (drops one clause, adds none)
  • .changeset/experimental-theme-saved-only-reads.md: clear
  • .changeset/theme-round15-part-02.md: blocking (the rewritten bullet's reads-only rule does not hold for typed colors)
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: non-blocking (a redundant group check)
  • packages/cli/api/theme-edit/_how-question.mjs: clear in code; its line count in the description is a blocking finding
  • packages/cli/api/theme-edit/_how.mjs: blocking (a picture answer loses its colors when the theme or its base cannot be read); non-blocking (the keep rule holds back more than its docs say)
  • packages/cli/api/theme-edit/_part-pieces.mjs: clear
  • packages/cli/api/theme-edit/_part-pieces.test.mjs: clear (a rename)
  • packages/cli/api/theme-edit/_parts.mjs: clear (drops an unused export)
  • packages/cli/api/theme-edit/_picture-traits.mjs: non-blocking (an edge width read from buttons alone written theme-wide; a one-kind crop's corners offered theme-wide; the Trait.on typedef)
  • packages/cli/api/theme-edit/_picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: non-blocking (the readMeaninglessOnly comment)
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/_tables.test.mjs: clear
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-bar-height-reaches-row.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-reads-pieces-and-whole-looks.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (no case covers an app without a base theme)
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-how.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • scripts/vitest-node-durations.json: non-blocking (its $comment names CI legs for local times)

Automated review (maintainer link)

- `astryx experimental theme editor how`: "the active nav item should be a #e8def8 pill" again gives pill corners on the selected item only. There is now a single reader for a color and shape, so the item's state is kept.

- `astryx experimental theme editor how` now gives a text color for every variant of a part whose variants each take a color of their own ("buttons with white text", "badges with dark text") to each variant only in the modes where it reads; text a part's variants read from shared tokens (a card's) is not measured this way unless the same answer gives them a fill. It measures against the variant's own fill, see-through fills over the page, or the fill the same answer gives it. Variants it can't read on keep their own text, and the answer says which.
- `astryx experimental theme editor how` now gives a text color asked together with a fill for a part's variants ("gold buttons with black text", "buttons with a navy background in dark mode and white text") to each variant only in the modes where it reads on that fill. It measures against the fill the same answer gives it, or see-through fills over the page. Variants it can't read on keep their own text, and the answer says which.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This rule does not hold for colors typed as hex: buttons #fde047 with #ffffff text (or buttons with a #fde047 background and #ffffff text) writes color '#ffffff' on the primary, secondary and ghost buttons in both modes at 1.31:1, with "both are written as you typed them" (packages/cli/api/theme-edit/_how-question.mjs:31799-31808); only a color word, as in gold buttons with white text, is held back where it does not read. Add the exception, for example: "A text color and a fill both typed as hex are written as typed, and the answer gives their contrast."

… or a comma and, when another look follows: a border on top and bottom padding 8px is the border's top and the padding's bottom

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pull request needs an engineering owner's decision before it can be approved, and three fixes.

No current spec record decides what astryx experimental theme editor how <picture.png> writes, or the rules carried beside it (a saved only on a family role such as button-like refuses the theme, a row in two bars takes a bar's height only when both bars leave it the same height, and three plain-words how answers change, including this head's reading of "a border on top and bottom padding 8px" as a top border and a bottom padding), and no /approve-spec names this head, so approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on the pull request for the head that lands (the author may, as an engineering owner). Whatever the decision, this needs changes:

  • Miss: in an app with no editor theme and no @astryxdesign/theme-neutral, how <picture.png> refuses with ERR_UNKNOWN_THEME and prints none of the colors the base lists, because the picture answer loads the theme and its base with no fallback (packages/cli/api/theme-edit/_how.mjs:301-310, :2305); keep the colors and name the look under unsure when the theme cannot be read.
  • The rewritten part 2 release note (.changeset/theme-round15-part-02.md:11) says a text color asked with a fill reaches each variant only in the modes where it reads, but buttons #fde047 with #ffffff text writes the white text on the primary, secondary and ghost buttons at 1.31:1 because typed colors are written as typed (packages/cli/api/theme-edit/_how-question.mjs:31803-31812), so add that exception to the note.
  • The description says _how-question.mjs changes by +34/-45, but it changes by +66/-55 (the drawnRadius fix and this head's side-list rule add the difference); update the count and list the missing commits under "What changes".

Smaller points sit in the review: the new side-list split drops a side handed to a radius ("a border on top and bottom border radius 8px" writes only the top border), a page of outlined buttons beside borderless fields writes the buttons' edge as a theme-wide --border-width, a one-kind crop offers a theme-wide corner line, and the readMeaninglessOnly comment and Trait.on typedef lag the code.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim: the change stays in the CLI's experimental theme editor, with no Core, spec record or official-theme change: verified from the changed-file list.
  • Claim: it is one part of a stack based on the part-25 branch, merged in order: the base branch is verified; the merge order is not checkable from this pull request.
  • Claim: the question module changes by 34 added and 45 removed lines: false, it changes by 66 and 55 (blocking).
  • Claim: it adds no mood or feel phrase match: verified (the question module's changes are a radius check, a shared box helper, a family-size check and the side-list split, not mood phrases).
  • Claim: CI has not run on this head: verified (no workflow run on this head).
  • Claim: each commit was gated on an integration branch, a held-out answer key and a look gate: not checkable from this pull request; the side-list test file passes at this head.
  • Claim: the description lists what changes: incomplete, sixteen commits are missing, this head's side-list commit among them (non-blocking).
  • Picture changeset: control height on the button and input families, the checks' box as a width and height pair per size, corners, edge width, panels, accent, leading and a clearly regular heading weight, written only where enough boxes agree and more than one kind of control shows, the rest under unsure, values the theme sets kept, and large or grainy pictures keeping their colors: verified against the code and its tests (it makes no claim about an app without a base theme, where the colors are lost).
  • --only changeset: set and the settings reader follow one rule; a saved only on a part styled on its own opens, read as without it with one note: verified against the code and its tests.
  • Plural numbered looks changeset: it drops one clause and claims nothing new: verified.
  • Part 2 changeset, the rewritten text-color bullet: verified for color words and for a fill given one mode; false for a text and fill typed as hex, which are written as typed (blocking).
  • set docs: a row in two bars takes no reach when the bars leave it different heights, the same height padded differently included: verified by the bar tests.
  • how docs: a picture answers its colors and look, with the traits and limits the picture changeset names: verified.
  • .changeset/experimental-theme-how-picture-traits.md: clear
  • .changeset/experimental-theme-how-plural-numbered-looks.md: clear (drops one clause, adds none)
  • .changeset/experimental-theme-saved-only-reads.md: clear
  • .changeset/theme-round15-part-02.md: blocking (the rewritten bullet's reads-only rule does not hold for typed colors)
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: non-blocking (a redundant group check)
  • packages/cli/api/theme-edit/_how-question.mjs: needs the owner decision for the new side-list reading; non-blocking (a side handed to a radius is dropped; the comment says "comma" only); its line count in the description is a blocking finding
  • packages/cli/api/theme-edit/_how.mjs: blocking (a picture answer loses its colors when the theme or its base cannot be read); non-blocking (the keep rule holds back more than its docs say)
  • packages/cli/api/theme-edit/_part-pieces.mjs: clear
  • packages/cli/api/theme-edit/_part-pieces.test.mjs: clear (a rename)
  • packages/cli/api/theme-edit/_parts.mjs: clear (drops an unused export)
  • packages/cli/api/theme-edit/_picture-traits.mjs: non-blocking (an edge width read from buttons alone written theme-wide; a one-kind crop's corners offered theme-wide; the Trait.on typedef)
  • packages/cli/api/theme-edit/_picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: non-blocking (the readMeaninglessOnly comment)
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/_tables.test.mjs: clear
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-bar-height-reaches-row.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-border-sides.test.mjs: clear (the test name still says "comma"; the margin assertions check only the border line)
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-reads-pieces-and-whole-looks.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (no case covers an app without a base theme)
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-how.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • scripts/vitest-node-durations.json: non-blocking (its $comment names CI legs for local times)

Automated review (maintainer link)

// (Only a list said as where the earlier look goes, "on top": "a
// border and top and bottom padding 6px" lists the padding's sides.)
const placed = /\b(?:on|at)(?:\s+the)?\s*$/i.test(text.slice(0, at));
if (nextLook && owner && placed && lastComma) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: this split also fires when the look after the list takes no side. cards with a border on top and bottom border radius 8px answers border-top '1px solid var(--color-border)' --on card and border-radius 8px --on card, so the "bottom" said goes to neither the border nor a corner, and the answer only names what it wrote. Keep the sides with the earlier look when the words after the list are a radius or corners (or say the dropped side in the answer), and add that case beside the new assertions.

…her look too: border top, bottom padding 8px is the border's top and the padding's bottom

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pull request needs an engineering owner's decision before it can be approved, and three fixes.

No current spec record decides what astryx experimental theme editor how <picture.png> writes, or the rules carried beside it (a saved only on a family role such as button-like refuses the theme, a row in two bars takes a bar's height only when both bars leave it the same height, and plain-words how answers change, including this head's reading of "cards with border top and bottom padding 8px" as a top border and a bottom padding), and no /approve-spec names this head, so approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on the pull request for the head that lands (the author may, as an engineering owner). Whatever the decision, this needs changes:

  • Miss: in an app with no editor theme and no @astryxdesign/theme-neutral, how <picture.png> refuses with ERR_UNKNOWN_THEME and prints none of the colors the base lists, because the picture answer loads the theme and its base with no fallback (packages/cli/api/theme-edit/_how.mjs:301-310, :2305); keep the colors and name the look under unsure when the theme cannot be read.
  • The rewritten part 2 release note (.changeset/theme-round15-part-02.md:11) says a text color asked with a fill reaches each variant only in the modes where it reads, but buttons #fde047 with #ffffff text writes the white text on the primary, secondary and ghost buttons at 1.31:1 because typed colors are written as typed (packages/cli/api/theme-edit/_how-question.mjs:31808-31817), so add that exception to the note.
  • The description says _how-question.mjs changes by +34/-45, but it changes by +71/-55 (the drawnRadius fix and the side-list rule add the difference); update the count and list the missing commits under "What changes".

Smaller points sit in the review: the wider side-list split takes the last side from a border said right before the list ("cards with border top and bottom lines" now draws only the top border, where the base draws both), a bare-comma list after another word ("a border along the top, bottom padding 8px") is no longer split as the base splits it, and the earlier notes on theme-wide edge and corner readings, the readMeaninglessOnly comment and the Trait.on typedef still stand.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim: the change stays in the CLI's experimental theme editor, with no Core, spec record or official-theme change: verified from the changed-file list.
  • Claim: it is one part of a stack based on the part-25 branch, merged in order: the base branch is verified; the merge order is not checkable from this pull request.
  • Claim: the question module changes by 34 added and 45 removed lines: false, it changes by 71 and 55 (blocking).
  • Claim: it adds no mood or feel phrase match: verified (the question module's changes are a radius check, a shared box helper, a family-size check and the side-list split, not mood phrases).
  • Claim: CI has not run on this head: verified (no workflow run on this head).
  • Claim: each commit was gated on an integration branch, a held-out answer key and a look gate: not checkable from this pull request; the side-list test file passes at this head.
  • Claim: the description lists what changes: incomplete, seventeen commits are missing, this head's side-list commit among them (non-blocking).
  • Picture changeset: control height on the button and input families, the checks' box as a width and height pair per size, corners, edge width, panels, accent, leading and a clearly regular heading weight, written only where enough boxes agree and more than one kind of control shows, the rest under unsure, values the theme sets kept, and large or grainy pictures keeping their colors: verified against the code and its tests (it makes no claim about an app without a base theme, where the colors are lost).
  • --only changeset: set and the settings reader follow one rule; a saved only on a part styled on its own opens, read as without it with one note: verified against the code and its tests.
  • Plural numbered looks changeset: it drops one clause and claims nothing new: verified.
  • Part 2 changeset, the rewritten text-color bullet: verified for color words and for a fill given one mode; false for a text and fill typed as hex, which are written as typed (blocking).
  • set docs: a row in two bars takes no reach when the bars leave it different heights, the same height padded differently included: verified by the bar tests.
  • how docs: a picture answers its colors and look, with the traits and limits the picture changeset names: verified.
  • .changeset/experimental-theme-how-picture-traits.md: clear
  • .changeset/experimental-theme-how-plural-numbered-looks.md: clear (drops one clause, adds none)
  • .changeset/experimental-theme-saved-only-reads.md: clear
  • .changeset/theme-round15-part-02.md: blocking (the rewritten bullet's reads-only rule does not hold for typed colors)
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: non-blocking (a redundant group check)
  • packages/cli/api/theme-edit/_how-question.mjs: needs the owner decision for the side-list reading; non-blocking (a side handed to a look that takes none is dropped, "border top and bottom lines" now draws only the top border, a bare-comma list after another word is no longer split, the comment says "comma" only); its line count in the description is a blocking finding
  • packages/cli/api/theme-edit/_how.mjs: blocking (a picture answer loses its colors when the theme or its base cannot be read); non-blocking (the keep rule holds back more than its docs say)
  • packages/cli/api/theme-edit/_part-pieces.mjs: clear
  • packages/cli/api/theme-edit/_part-pieces.test.mjs: clear (a rename)
  • packages/cli/api/theme-edit/_parts.mjs: clear (drops an unused export)
  • packages/cli/api/theme-edit/_picture-traits.mjs: non-blocking (an edge width read from buttons alone written theme-wide; a one-kind crop's corners offered theme-wide; the Trait.on typedef)
  • packages/cli/api/theme-edit/_picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: non-blocking (the readMeaninglessOnly comment)
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/_tables.test.mjs: clear
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-bar-height-reaches-row.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-border-sides.test.mjs: clear (the test name still says "comma"; no case covers a border synonym or a radius after the list)
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-reads-pieces-and-whole-looks.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (no case covers an app without a base theme)
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-how.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • scripts/vitest-node-durations.json: non-blocking (its $comment names CI legs for local times)

Automated review (maintainer link)

// lists the padding's sides.)
const placed =
/\b(?:on|at)(?:\s+the)?\s*$/i.test(text.slice(0, at)) ||
/\b(?:borders?|bordered|edges?|outlines?|lines?|padding|margins?|spacing|space)\s*$/i.test(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: counting a look word right before the list as placed lets the split take the last side from a border when the look after the list is the same look or takes no side. cards with border top and bottom lines now answers only border-top '1px solid var(--color-border)' --on card and names "bottom lines" as not used, where the base branch draws both borders, and cards with a border top and bottom border radius 8px answers border-top and an all-corner border-radius 8px with the "bottom" going nowhere. A bare-comma list after any other word is still not split, so cards with a border along the top, bottom padding 8px and cards with border-top, bottom padding 8px write nothing, where the base branch writes border-top and padding-bottom 8px. Keeping the list whole when the next look is the same look or takes no side, and keeping the base's bare-comma split, would cover both.

… or at their ends before another look, and a line is a look of its own, so its side never takes the tail's padding

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This pull request needs an engineering owner's decision before it can be approved, and four fixes.

No current spec record decides what astryx experimental theme editor how <picture.png> writes, or the rules carried beside it (a saved only on a family role such as button-like refuses the theme, a row in two bars takes a bar's height only when both bars leave it the same height, and plain-words how answers change, including this head's reading of side lists placed with "along", "around" or "by" and of a "line" as a look of its own), and no /approve-spec names this head, so approval needs an engineering owner to record that decision by commenting /approve-spec <full head SHA> on the pull request for the head that lands (the author may, as an engineering owner). Whatever the decision, this needs changes:

  • cards with a 1px line on top and bottom padding 8px now writes padding-top 1px on cards, and cards with a 1px line on top and bottom margin 8px adds padding-top 1px beside the margin, because "line" now owns the list while no reader takes its width (packages/cli/api/theme-edit/_how-question.mjs:634); give the width to that side's border, as cards with a 1px line on top already does, and add these asks to the test.
  • Miss: in an app with no editor theme and no @astryxdesign/theme-neutral, how <picture.png> refuses with ERR_UNKNOWN_THEME and prints none of the colors the base lists, because the picture answer loads the theme and its base with no fallback (packages/cli/api/theme-edit/_how.mjs:301-310, :2305); keep the colors and name the look under unsure when the theme cannot be read.
  • The rewritten part 2 release note (.changeset/theme-round15-part-02.md:11) says a text color asked with a fill reaches each variant only in the modes where it reads, but buttons #fde047 with #ffffff text writes the white text on the primary, secondary and ghost buttons at 1.31:1 because typed colors are written as typed (packages/cli/api/theme-edit/_how-question.mjs:31810-31819), so add that exception to the note.
  • The description says _how-question.mjs changes by +34/-45, but it changes by +74/-56; update the count and list the missing commits under "What changes".

Smaller points sit in the review: the split still drops the last side when the next look is the same look or takes no side (now also "cards with a border along the top and bottom lines"), "cards with border-top, bottom padding 8px" still writes nothing where the base splits it, the new placement words "around", "over", "down" and "by" have no test, and the earlier notes on theme-wide edge and corner readings, the readMeaninglessOnly comment and the Trait.on typedef still stand.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • Claim: the change stays in the CLI's experimental theme editor, with no Core, spec record or official-theme change: verified from the changed-file list.
  • Claim: it is one part of a stack based on the part-25 branch, merged in order: the base branch is verified; the merge order is not checkable from this pull request.
  • Claim: the question module changes by 34 added and 45 removed lines: false, it changes by 74 and 56 (blocking).
  • Claim: it adds no mood or feel phrase match: verified (the question module's changes are a radius check, a shared box helper, a family-size check and the side-list split, not mood phrases).
  • Claim: CI has not run on this head: verified (no workflow run on this head).
  • Claim: each commit was gated on an integration branch, a held-out answer key and a look gate: not checkable from this pull request; the side-list test file passes at this head.
  • Claim: the description lists what changes: incomplete, eighteen commits are missing, this head's side-list commit among them (non-blocking).
  • Picture changeset: control height on the button and input families, the checks' box as a width and height pair per size, corners, edge width, panels, accent, leading and a clearly regular heading weight, written only where enough boxes agree and more than one kind of control shows, the rest under unsure, values the theme sets kept, and large or grainy pictures keeping their colors: verified against the code and its tests (it makes no claim about an app without a base theme, where the colors are lost).
  • --only changeset: set and the settings reader follow one rule; a saved only on a part styled on its own opens, read as without it with one note: verified against the code and its tests.
  • Plural numbered looks changeset: it drops one clause and claims nothing new: verified.
  • Part 2 changeset, the rewritten text-color bullet: verified for color words and for a fill given one mode; false for a text and fill typed as hex, which are written as typed (blocking).
  • set docs: a row in two bars takes no reach when the bars leave it different heights, the same height padded differently included: verified by the bar tests.
  • how docs: a picture answers its colors and look, with the traits and limits the picture changeset names: verified.
  • .changeset/experimental-theme-how-picture-traits.md: clear
  • .changeset/experimental-theme-how-plural-numbered-looks.md: clear (drops one clause, adds none)
  • .changeset/experimental-theme-saved-only-reads.md: clear
  • .changeset/theme-round15-part-02.md: blocking (the rewritten bullet's reads-only rule does not hold for typed colors)
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: non-blocking (a redundant group check)
  • packages/cli/api/theme-edit/_how-question.mjs: blocking (a width said with a line becomes padding); needs the owner decision for the side-list reading; non-blocking (a side handed to a look that takes none is dropped, a hyphenated border before a bare-comma list is not split, the new placement words beyond along, across and on its are untested); its line count in the description is a blocking finding
  • packages/cli/api/theme-edit/_how.mjs: blocking (a picture answer loses its colors when the theme or its base cannot be read); non-blocking (the keep rule holds back more than its docs say)
  • packages/cli/api/theme-edit/_part-pieces.mjs: clear
  • packages/cli/api/theme-edit/_part-pieces.test.mjs: clear (a rename)
  • packages/cli/api/theme-edit/_parts.mjs: clear (drops an unused export)
  • packages/cli/api/theme-edit/_picture-traits.mjs: non-blocking (an edge width read from buttons alone written theme-wide; a one-kind crop's corners offered theme-wide; the Trait.on typedef)
  • packages/cli/api/theme-edit/_picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: non-blocking (the readMeaninglessOnly comment)
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/_tables.test.mjs: clear
  • packages/cli/api/theme-edit/how/how.mjs: clear
  • packages/cli/api/theme-edit/theme-bar-height-reaches-row.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-border-sides.test.mjs: clear (no case says a width on a line; the test name still says "comma")
  • packages/cli/api/theme-edit/theme-how-corner-positions.test.mjs: clear
  • packages/cli/api/theme-edit/theme-how-reads-pieces-and-whole-looks.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear (no case covers an app without a base theme)
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditHow.doc.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-how.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • scripts/vitest-node-durations.json: non-blocking (its $comment names CI legs for local times)

Automated review (maintainer link)

.slice(0, at - from)
.match(
/\b(?:borders?|bordered|edges?|outlines?|padding|margins?|spacing|gaps?|radius|corners?|space)\b/gi,
/\b(?:borders?|bordered|edges?|outlines?|lines?|padding|margins?|spacing|gaps?|radius|corners?|space)\b/gi,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Counting line as the look a list belongs to splits the list, but no reader takes a line's width, so the padding reader takes it: cards with a 1px line on top and bottom padding 8px now answers padding-top 1px --on card and padding-bottom 8px --on card (the base and the previous revision write 8px on both and name the line as not used), cards with a 2px line along the top and bottom padding 8px answers padding-top 2px, and cards with a 1px line on top and bottom margin 8px adds padding-top 1px beside the margin. Give a width said with the line to that side's border, as cards with a 1px line on top alone already writes border-top 1px, or keep it out of the later look's reading, and add these asks beside the new a line top assertion.

@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed via the round-15 combined PR #13054/#13049/#13048.

This branch was successfully deployed

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant