Skip to content

fix(cli): experimental theme editor - controls share one height at each size - #13039

Merged
josephfarina merged 31 commits into
feature/theme-editorfrom
theme-editor-control-heights
Nov 21, 2026
Merged

josephfarina merged 31 commits into
feature/theme-editorfrom
theme-editor-control-heights

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Buttons, inputs and selectors sit side by side in a toolbar or a form row, and people expect them to line up. A theme the experimental theme editor makes can give one control a height of its own: a button set to height 31px stays 31px at every size while the inputs follow the size tokens, so a small row reads 31/25/30px and a large one 31/32/32px. Nothing in the editor said so, and nothing made the other controls follow.

Problem and solution fit

  1. Why does it happen? A height set on a control is written on that one part, for every size, and nothing ties the controls together.
  2. Why does it harm the task? A form row or an input group with a button no longer lines up, and the size variants of the button stop meaning anything.
  3. Why does that matter? Controls of one size are meant to share one height (spec:AST-050/DEC-16, added here).

The editor now writes a height set on a control as that size's control token on a new controls group, so every control at that size takes it; show lists any saved height that keeps controls apart, with the line that joins it to the others.

Expected behavior and authority

spec:AST-050/DEC-16 (added here, decided by the maintainers under the CLI owner's delegation): buttons, inputs, selectors and input groups share one height at each size.

Smallest restoration

  • A controls group in the editor's part map: the parts that take their height from --size-element-sm/md/lg, on their own box or on the boxes of their parts (a date and time input's segments), and are a button, an input, or a form control's own part (an input group).
  • set … height V --on <control or group of controls> [--when size:S] writes --size-element-S (md without --when) on controls and replaces the other heights set on controls at that size. A replaced height that was set for every size stays every control's height at the other sizes, written as their tokens. The result names what it replaced and the --only line that gives one control its own height.
  • --only keeps a height on its one control, a button included: it is written as that control's own size token, on it alone. A height that is not a size (auto) is refused, since Core reads the size tokens inside its own sums. The same height set again stays.
  • A height set on a part that is not a control (a text area) no longer reaches the inputs drawn alike.
  • show lists, under missed, each saved length height that keeps some controls apart at a size, with its line (a saved height that is not a size has no line that works, so it is not listed).
  • A control that grows with its content (selector, typeahead, tokenizer) keeps Core's top and bottom padding, so a padding set on it, or on the inputs, reaches only its sides and never makes it taller than the other controls; the result says so. A top or bottom padding alone on such a control is refused, with a height line to fill in.
  • A height on a group or a control that also reaches parts that are not controls (a text area, a complex selector) keeps those parts' height as their own --only height, and the note names them with their line. A saved height that is not a size still opens and builds as a plain height; a saved top or bottom padding alone on a selector, typeahead or tokenizer still opens, with a note, but its top and bottom sides no longer build, so the control keeps its size's height. Only a new set of either is refused, and a height that reads the size token it would be written as is refused too. min-height becomes the shared height only on controls that grow with their content.
  • A control height takes a length in any CSS unit and refuses a word or a percentage; a height that reads a size token in a loop (its own, or through another saved size token) is refused, naming the chain; a carried height that reads a size token is carried as the value that token held. A height on a part that is not a control (a text area, a complex selector) stays on that part. A file input's field keeps Core's top and bottom padding, while its drop zone (mode dropzone) takes a top or bottom padding set on the file input. A height on a group that mixes controls with other parts (a family role) stays a plain height, and a height on a check spreads to the other checks as before. A picture's control height is one size token on controls.
  • A size token saved on a group that holds controls among other parts (the button-like parts an earlier picture answer wrote it on) counts as a control height, so show lists the buttons it keeps apart, with the line that joins them.
  • how's tighter answer for a control that grows with its content ("selects compact") gives the spacing step alone; it no longer offers a block padding line, which never sets that control's height.
  • A padding set on the file input under another condition (--when status:error) still gives its drop zone the top and bottom sides under that condition (status:error+mode:dropzone); the refusal and the set note read the same.
  • The set and undo docs list the controls group in --on; the set docs state the control-height rule.

Evidence

  • Reproduction before the change: in a theme made like neutral, set <theme> height 31px --on button draws buttons 31px at every size while the inputs keep the size tokens; padding 4px --on inputs makes a small selector taller than the small controls beside it; height auto --on text-area makes every input auto.
  • Result after the change, measured in a browser on a theme made like neutral with padding 4px --on inputs, height 25px --on button --when size:sm and height 31px --on button: buttons, text inputs and selectors are 25/25/25px at sm, 31/31/31px at md and 36/36/36px at lg (the base's large size). Before, the small selector was taller than the controls beside it, and a button height set for every size kept buttons apart at sm and lg.
  • Representative unchanged path: a theme with no control height and no padding on a control that grows with its content builds as before; parts that are not controls (a dialog header) keep the base's tokens.
  • Regression test: packages/cli/api/theme-edit/theme-control-heights.test.mjs.
  • Rendered-page check: no new findings across 56 pages (the bundled themes and Core, desktop and phone, light and dark) at 849fc22; this pull request's own patch differs from 849fc22 only by how's answer text for a compact control and a file input's drop-zone padding under a --when, and no page sets either.
  • Known limits:
    • Core's selector content keeps a 20px least line box, so a control height under 22px still draws a 22px selector; a typeahead or tokenizer likewise keeps its content's least height (about 28px and 30px on neutral). Both are Core control changes, left as a follow-up; the result says such a control keeps its content's height.
    • ComplexSelector has no box in the editor's part census, so it is not in controls and keeps its base height, as on main.

Scope

Components: CLI experimental theme editor (api/theme-edit/_settings.mjs, _parts.mjs, _tables.mjs, _edit.mjs, _missed.mjs, _check.mjs, _how.mjs, _picture-traits.mjs; docs api/theme-edit/themeEditSet.doc.mjs, clients/cli/commands/experimental-theme-editor-set.doc.mjs, experimental-theme-editor-undo.doc.mjs), docs/specs/AST-050-app-themes/spec.md (DEC-16, and the DEC-11 exception line)

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label: the experimental editor gains a controls group and writes a control height as a size token; both are recorded in spec:AST-050/DEC-16.
  • Public text and artifacts contain no internal Meta context.

Writing rubric results

R1 narration: none; DEC-16 states what the editor does, in the present tense.
R2 research: none in the record.
R3 evidence: none cited in the record.
R4 rejected alternatives: two, each one line inside DEC-16.
R5 change references: none.
R6 open questions: none added.
R7 project status: none.

Testing

  • CI=1 vitest run packages/cli/api/theme-edit/theme-control-heights.test.mjs --project node (42 tests)
  • The theme editor and CLI client suites with CI=1; pnpm check:knowledge; eslint and prettier on the changed files
  • Rendered heights measured in a browser on a theme made like neutral

replay: worse 0 at 97d448d

preflight: pass 97d448d (the only finding at this head was a merge conflict from a base rebuild, since repaired on the base; every file and claim was otherwise clear)

@vercel

vercel Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 21, 2026 10:05am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 10:19 AM UTC

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This needs an engineering owner's decision on the new spec text before it can be approved, and six fixes are needed whatever that decision is.

Approval waits on an engineering owner approving or amending the new spec:AST-050 DEC-16, which settles which parts count as controls, that a height with no --when changes only the medium size, that it replaces other control heights at that size, and what --only does on a part such as button, where the existing DEC-11 says --only changes nothing. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author can do that as an engineering owner.

Blocking findings:

  • set <theme> height 31px --on button --only ignores --only and writes the height on all 13 controls, but DEC-16 says a height set with --only stays on its one part.
  • DateTimeInput and ComplexSelector size by the control token but are left out of controls, so after a shared height they keep the base height (32px beside 24px inputs in a browser), while the note and changeset say every input and selector moved, and a text-area height still lands on both.
  • The CLI's strict typecheck fails on the new text-area filter (controls.has(s.on) with s.on possibly undefined, in the settings module).
  • The note's line for giving one control its own height (set <theme> --size-element-md <V> --on button) saves a setting that show then lists as a miss, and the fix it offers moves every control.
  • Setting a control height again deletes an earlier every-size height on that control, so its small and large heights change while the note says the other sizes keep their own heights.
  • The set and undo command docs still list the --on groups without controls, and still say a height on one input styles the whole inputs group.

Also worth fixing: undo <theme> height --on button refuses after this set, so the refusal should suggest the saved token entry.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim, release note: a height set on a control becomes every control's height at that size. False for DateTimeInput and ComplexSelector (measured 32px beside 24px).
  • Claim, release note and description: --only keeps a height on its one input. Verified for a text input (new test). False for button, where every control moves.
  • Claim, release note and description: show lists a saved height that splits the controls, with a joining line. Verified (new tests). It also lists the note's own one-control line.
  • Claim, description: before this change a button height stayed at every size while inputs followed the size tokens. Verified: five of the six new tests fail on the base.
  • Claim, description: before this change a text-area height spread to every input drawn alike. Verified on the base.
  • Claim, description: a text-area height no longer reaches the inputs drawn alike. Partly false: it still reaches DateTimeInput and ComplexSelector.
  • Claim, description: the result names what it replaced and gives the line for one control. The names are verified. The line's result is then reported as a miss.
  • Claim, description: a theme with no control height builds as before, and a dialog header keeps the base tokens. Verified (new test; the new code runs only for height properties).
  • Claim, description: Bootstrap and Classic Facebook before and after heights. Not checked: those themes are not in this repository.
  • Claim, description: the new tests, the theme editor suites, the knowledge check and prettier pass. Verified, apart from one theme editor test that fails on the base too. eslint reports one error in the settings module that predates this change.
  • File .changeset/editor-control-heights.md: overstates which controls follow (DateTimeInput and ComplexSelector).
  • File docs/specs/AST-050-app-themes/spec.md: needs an owner decision. Its --only sentence conflicts with DEC-11 for parts styled on their own.
  • File packages/cli/api/theme-edit/_edit.mjs: the one-control line and the replaced every-size height.
  • File packages/cli/api/theme-edit/_missed.mjs: clear.
  • File packages/cli/api/theme-edit/_parts.mjs: leaves DateTimeInput and ComplexSelector out of controls. The reflow of three statements is required formatting.
  • File packages/cli/api/theme-edit/_settings.mjs: --only on button is not kept, and the strict typecheck fails on the new filter.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-control-heights.test.mjs: clear. It passes on the head, but no case covers --only on a button or the two inputs left out.

Automated review (maintainer link)

Comment thread packages/cli/api/theme-edit/_parts.mjs Resolved
Comment thread packages/cli/api/theme-edit/_edit.mjs Resolved
Comment thread packages/cli/api/theme-edit/_edit.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.

This needs an engineering owner's decision on the new spec text before it can be approved, and the fixes below are needed whatever that decision is, starting with a rebase.

Approval waits on an engineering owner approving or amending the new spec:AST-050 DEC-16, which settles which parts count as controls, that a height with no --when changes only the medium size, that it replaces other control heights, that a padding on a selector, typeahead or tokenizer loses its top and bottom, and what --only does on a part such as button, where the existing DEC-11 says --only changes nothing. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author can do that as an engineering owner.

Blocking findings:

  • The branch still sits on the pre-rebase tip of theme-r15-p22, so the pull request shows 435 commits, conflicts with its base in 9 files and cannot merge; its one commit rebases cleanly and its tests pass there.
  • set <theme> height 31px --on button --only ignores --only and writes the height on all 13 controls, but DEC-16 says a height set with --only stays on its one part.
  • DateTimeInput and ComplexSelector size by the control token but are left out of controls, so after a shared height they keep their own height while the note and changeset say every input and selector moved, and a text-area height still lands on both.
  • Miss: Typeahead and Tokenizer draw 28px and 30px under a 25px small height, while the note says every control is 25px and show lists no miss.
  • The note's line for giving one control its own height (set <theme> --size-element-md <V> --on button) saves a setting that show then lists as a miss, and the fix it offers moves every control.
  • Setting a control height again deletes an earlier every-size height on that control, so its small and large heights change while the note says the other sizes keep their own heights.
  • padding-top or padding-block on a selector is saved and reported as styled with no note, but nothing reaches the selector, typeahead or tokenizer, and with --only the note wrongly says the selector's height now differs.
  • The set and undo command docs still list the --on groups without controls, and still say a height on one input styles the whole inputs group.
  • The description says a theme with no control height builds as before, but a padding on the inputs now builds differently, and its large-size figure (30px) cannot come from a theme made like neutral, whose large controls are 36px.

Also worth fixing: undo <theme> height --on button refuses after this set, so the refusal should suggest the saved token entry.

Claims and files checked

Review mode: full; reason: history

  • Claim, release note: buttons, inputs, selectors and input groups share one height at each size. False for DateTimeInput and ComplexSelector, and for Typeahead and Tokenizer at a 25px small height.
  • Claim, release note and description: --only keeps a height on its one input. Verified for a text input (new test). False for button, where every control moves.
  • Claim, release note and description: show lists a saved height that splits the controls, with a joining line. Verified (new tests). It also lists the note's own one-control line.
  • Claim, description: before this change a button height stayed at every size, a padding on the inputs made a small selector taller, and a text-area height spread to the inputs. Verified: six of the seven new tests fail on the base.
  • Claim, description: a padding on a selector, typeahead or tokenizer reaches only its sides. Verified (new test and probe). A padding with only top or bottom sides is dropped with no note.
  • Claim, description: buttons, text inputs and selectors measure 25px at sm and 31px at md. Verified in a browser for those three. The 30px large-size figure is false.
  • Claim, description: a theme with no control height builds as before. False for a padding on the inputs or a selector.
  • Claim, description: parts that are not controls (a dialog header) keep the base's tokens. Verified (new test).
  • Claim, description: Core's selector keeps a 20px line box, so heights under 22px still draw 22px. Consistent with Core's selector styles; it leaves out Typeahead and Tokenizer.
  • Claim, description: the new tests pass. Verified, on the head and on the commit rebased onto the current base.
  • Claim, description: Bootstrap and Classic Facebook before and after heights. Not checked: those themes are not in this repository.
  • File .changeset/editor-control-heights.md: overstates which controls follow.
  • File docs/specs/AST-050-app-themes/spec.md: needs an owner decision. Its --only sentence conflicts with DEC-11 for parts styled on their own.
  • File packages/cli/api/theme-edit/_edit.mjs: the one-control line and the replaced every-size height.
  • File packages/cli/api/theme-edit/_missed.mjs: clear.
  • File packages/cli/api/theme-edit/_parts.mjs: leaves DateTimeInput and ComplexSelector out of controls. The reflow of three statements is required formatting.
  • File packages/cli/api/theme-edit/_settings.mjs: --only on button is not kept, and a block-only padding on a selector is dropped silently. The earlier typecheck error is fixed.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-control-heights.test.mjs: clear. No case covers --only on a button, the controls left out, or a block-only padding.
  • The other 308 files: the base branch's own commits from before its rebase, 297 identical to the base and 11 older than it; they leave this pull request once it is rebased.

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the theme-r15-p22 branch 5 times, most recently from 5cf2801 to fa75d70 Compare November 20, 2026 04:11
@josephfarina
josephfarina force-pushed the theme-editor-control-heights branch from 8d694e4 to 517c2c6 Compare November 20, 2026 04:14
@josephfarina
josephfarina changed the base branch from theme-r15-p22 to theme-r15-p20-25 November 20, 2026 04:14
@josephfarina
josephfarina force-pushed the theme-editor-control-heights branch from 517c2c6 to 25a2c90 Compare November 20, 2026 04:15
@josephfarina
josephfarina force-pushed the theme-r15-p20-25 branch 3 times, most recently from 3ae9844 to 7942b54 Compare November 20, 2026 04:27

@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 needs an engineering owner's decision on the new spec text before it can be approved, and six fixes are needed whatever that decision is.

Approval waits on an engineering owner approving or amending the new spec:AST-050 DEC-16, which settles which parts count as controls, that a height with no --when changes only the medium size and replaces other control heights, that a padding on a selector, typeahead or tokenizer loses its top and bottom, and that --only keeps a control height on one part as an exception to the existing DEC-11. An engineering owner records it by commenting /approve-spec <full head SHA> on this pull request, and the author can do that as an engineering owner.

Blocking findings:

  • The settings reader now keeps a saved --only on a height of any part styled on its own, such as app-shell-header or card (_settings.mjs:2378-2380), so three tests in theme-bar-height-reaches-row.test.mjs fail and undo leaves the header height in place, against DEC-11.
  • Miss: set <theme> height auto --on button writes --size-element-md: auto on every control, and because Core uses that token inside calc(), the medium controls draw 36/30/22/28/30px instead of one height, so only a length should become the shared token.
  • After a height on a group such as --on inputs, the note offers set <theme> height <V> --on inputs --only, which the editor refuses.
  • The refusal of a top or bottom padding alone on a selector, typeahead or tokenizer suggests only how padding-top, because its height line holds a <size> placeholder (_check.mjs:5388).
  • The changeset says every button, input, selector and input group shares one height, but Typeahead and Tokenizer stay 28px and 30px at a 25px small height and ComplexSelector keeps its own height.
  • The set docs still say a height on one input styles the whole inputs group, which a text-area height no longer does.

Also worth fixing: undo <theme> height --on button refuses right after the matching set, so its refusal could point at the saved --size-element-md entry on controls.

Claims and files checked

Review mode: full; reason: rebase

  • Claim, release note: buttons, inputs, selectors and input groups share one height at each size. False for Typeahead and Tokenizer at a 25px small height, and for ComplexSelector.
  • Claim, release note: a height on a control is written as that size's token on controls. Verified (new tests and a probe).
  • Claim, release note: --only keeps a height on its one input. Verified, for a button too (new tests and a probe).
  • Claim, release note: show lists a saved height that splits the controls, with a joining line. Verified (new tests).
  • Claim, description: before this change a button height stayed at every size, a padding on the inputs made a small selector taller, and a text-area height spread to the inputs. Verified: ten of the eleven new tests fail on the base.
  • Claim, description: controls holds the parts sized by the tokens on their own box or their parts' boxes. Verified: 14 parts, DateTimeInput included.
  • Claim, description: a set replaces the other control heights, keeps a replaced every-size height at the other sizes, and names the --only line. Verified for one control. For a group, the named line is refused.
  • Claim, description: a saved only on a control's height is read, not dropped. Verified for controls. The reader also keeps it on parts that are not controls, against DEC-11.
  • Claim, description: a text-area height no longer reaches the inputs. Verified (new test).
  • Claim, description: a padding on a content-growing control reaches only its sides, and a top or bottom padding alone is refused with the height line that works. Sides verified. The refusal carries no height line.
  • Claim, description: the set and undo docs list controls and state the rule. Verified for the lists. The set docs keep the old whole-group sentence.
  • Claim, description: buttons, text inputs and selectors measure 25px, 31px and 36px at the three sizes. Verified in a browser.
  • Claim, description: a dialog header keeps the base's tokens, and a theme with no control height builds as before. Dialog header verified (new test). A saved only on a height of another part now builds differently.
  • Claim, description: known limits (the selector's line box, Typeahead about 28px, Tokenizer about 30px, ComplexSelector outside controls). Verified by measurement and a probe.
  • Claim, description: before-the-change figures from other themes. Not checked: those themes are not in this repository.
  • Claim, description: the new tests, the editor suites, the knowledge check, eslint and prettier pass. The new tests, knowledge check, eslint and prettier pass. An existing editor test file fails three tests at this head.
  • File .changeset/editor-control-heights.md: overstates which controls follow.
  • File docs/specs/AST-050-app-themes/spec.md: DEC-16 needs an owner decision.
  • File packages/cli/api/theme-edit/_check.mjs: the padding refusal drops its height line.
  • File packages/cli/api/theme-edit/_edit.mjs: the note's group line is refused.
  • File packages/cli/api/theme-edit/_missed.mjs: clear.
  • File packages/cli/api/theme-edit/_parts.mjs: clear. The three reflowed statements are formatting.
  • File packages/cli/api/theme-edit/_settings.mjs: the reader keeps only on any height, and a keyword height becomes the shared token.
  • File packages/cli/api/theme-edit/_tables.mjs: clear.
  • File packages/cli/api/theme-edit/theme-control-heights.test.mjs: clear. No case covers a keyword height or a saved only on a height of a part that is not a control.
  • File packages/cli/api/theme-edit/themeEditSet.doc.mjs: keeps the whole-group sentence.
  • File packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: keeps the whole-group sentence.
  • File packages/cli/clients/cli/commands/experimental-theme-editor-undo.doc.mjs: clear.

Automated review (maintainer link)

Comment thread packages/cli/api/theme-edit/_edit.mjs Resolved
Comment thread packages/cli/api/theme-edit/_check.mjs Resolved
Comment thread .changeset/editor-control-heights.md Resolved
@josephfarina
josephfarina force-pushed the theme-r15-p20-25 branch 3 times, most recently from ed915a5 to 1744879 Compare November 20, 2026 05:24

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet.

The spec text for shared control heights, and the matching exception to the saved-only rule, are approved at this head. The commit that spread a saved --only height to every control is gone, so a height kept on one control stays that control's own at the other sizes. The new how change, which stops offering a block-padding line that set refuses, is correct and tested.

Claims and files checked

Review mode: full; reason: history

Claims:

  • A button height set by the earlier editor stays on the button at every size while the inputs follow the size tokens: verified (base build writes height on the button alone; Chromium on neutral 25/28/30px, 31/32/32px, 31/36/36px). The figures in the description depend on the theme's size tokens.
  • A height on a control is written as that size's token on a new controls group, so every control at that size takes it: verified (sharedControlHeight; tests; head CSS sets the token on 14 control parts).
  • The controls group holds the parts that size by the control tokens, a date and time input included: verified (familyRoles; date and time input test).
  • A height replaces the other control heights at that size, a replaced every-size height stays at the other sizes, and the result says what it replaced: verified (replacement and carry tests; probe notes).
  • --only keeps a height on one control, a button included, as its own size token, and the same height set again stays: verified (--only tests; a saved --only height keeps its other sizes after a shared height, per the probe).
  • A height written as a size token must be a length in any CSS unit; a word, a percentage or a value that reads its own token is refused with the chain named; a carried height that reads a size token keeps the value it showed: verified (unit, refusal, loop and carry tests).
  • A height on a text area or complex selector stays on that part, and a replaced height keeps them their own height with a line: verified (text-area and group-token tests).
  • A selector, typeahead, tokenizer or file input field keeps Core's top and bottom padding, a top or bottom padding alone there is refused with a height line to fill in, and the drop zone still takes them: verified (padding, refusal and drop-zone tests; head CSS pads the selector at its sides only).
  • A saved word height or a saved top padding on a selector still opens, only a new set is refused, and min-height is the shared height only on controls that grow: verified (saved-entry and least-height tests).
  • A height on a group that mixes controls with other parts stays a plain height, and a check's height still spreads to the other checks: verified (mixed-group test; checks suite passes).
  • A picture's control height is one size token on controls, and a size token an earlier picture answer saved on the button-like parts counts as a control height that show lists: verified (picture-traits tests; button-like test).
  • show lists each saved length height that keeps controls apart, with its line: verified (missed tests).
  • how selects compact gives the spacing step alone, with no block-padding line: verified (new test; the base offered the padding line).
  • The set and undo docs list controls under --on, and the set docs state the control-height rule: verified.
  • Core's selector keeps a 20px least line box, and ComplexSelector is outside the census: verified (Selector line-box floor; familyRoles).
  • The rendered-page check carries over because this head adds only the how answer text to the earlier patch: verified (the first three commits are identical to the earlier head).
  • The regression file holds 41 tests: verified (41 pass).
  • Changeset: controls share one height per size, --only keeps one apart, a size-token height must be a length, growing controls keep Core's top and bottom padding while the drop zone keeps its own, and show lists split heights: verified (as above).

Files:

  • .changeset/editor-control-heights.md: clear
  • docs/specs/AST-050-app-themes/spec.md: clear
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: clear
  • packages/cli/api/theme-edit/_how-question.mjs: clear
  • packages/cli/api/theme-edit/_how.mjs: clear
  • packages/cli/api/theme-edit/_missed.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear
  • packages/cli/api/theme-edit/_picture-traits.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: clear
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/theme-control-heights.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-undo.doc.mjs: clear

Automated review (maintainer link)

…olor (#13208)

Reviewed pull request #13208, merged into the theme working branch. It reaches main with the branch's next landing.
@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers spec:AST-050 DEC-16 (owner's yes): the theme editor's controls share one height; a text area's or complex selector's height stays on that part; the file-input drop zone sentence; growing controls keep Core's padding; --only scopes the write to the named part. It also covers the DEC-11 exception line it updates: a control height saved with --only stays meaningful, the same way set keeps it, which follows from DEC-16 and leaves DEC-11's rule for a meaningless --only unchanged.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 2d516d3

…or shows, once (#12730)

Reviewed pull request #12730, merged into the theme working branch. It reaches main with the branch's next landing.
#13222)

Reviewed pull request #13222, merged into the theme working branch. It reaches main with the branch's next landing.
…s its hover and keyboard focus visible... (#13235)

Reviewed pull request #13235, merged into the theme working branch. It reaches main with the branch's next landing.
… has is no subject (#13223)

Reviewed pull request #13223, merged into the theme working branch. It reaches main with the branch's next landing.
…and the top bar's links take their looks on its nav items (#12701)

Reviewed pull request #12701, merged into the theme working branch. It reaches main with the branch's next landing.
…13186)

Reviewed pull request #13186, merged into the theme working branch. It reaches main with the branch's next landing.
…and undo (#13091)

Reviewed pull request #13091, merged into the theme working branch. It reaches main with the branch's next landing.
… with no stripe (#12971)

Reviewed pull request #12971, merged into the theme working branch. It reaches main with the branch's next landing.
…ipe away (#13210)

Reviewed pull request #13210, merged into the theme working branch. It reaches main with the branch's next landing.
@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers spec:AST-050 DEC-16 (owner's yes): the theme editor's controls share one height; a text area's or complex selector's height stays on that part; the file-input drop zone sentence; growing controls keep Core's padding; --only scopes the write to the named part. It also covers the DEC-11 exception line it updates: a control height saved with --only stays meaningful, the same way set keeps it, which follows from DEC-16 and leaves DEC-11's rule for a meaningless --only unchanged.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 0964f08

…est (#13234)

Reviewed pull request #13234, merged into the theme working branch. It reaches main with the branch's next landing.
…te titles on the heading font (#13233)

Reviewed pull request #13233, merged into the theme working branch. It reaches main with the branch's next landing.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet.

The shared-control-height rule and its saved-only exception are approved for this head. The new commit, which keeps a file input's drop zone padded under another condition such as --when status:error, builds the drop zone's top and bottom padding under that joined condition and is covered by its test. Nothing else needs to change; the deferred CI jobs run next.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • An earlier editor's button height stays fixed at every size while the inputs follow the size tokens: verified (the base editor writes height on the button alone; Chromium on neutral 25/28/30, 31/32/32, 31/36/36px); the example figures depend on the theme's size tokens.
  • A height on a control is written as that size's token on a new controls group, so every control at that size takes it: verified (tests; the built theme sets the token on every control).
  • The controls group holds the parts sized by the control tokens, a date and time input included: verified (date and time input test).
  • A height replaces the other control heights at that size, a replaced every-size height stays at the other sizes, and the result names what it replaced and the --only line: verified (replacement and carry tests; notes).
  • --only keeps a height on one control, a button included, as its own size token, and the same height set again stays: verified (--only tests).
  • A height that is not a size (auto) is refused, since Core reads the size tokens inside its own sums: verified (refusal tests).
  • A height on a text area no longer reaches the inputs drawn alike: verified (text-area tests).
  • show lists each saved length height that keeps controls apart, with its line, and leaves out a saved word height: verified (missed tests).
  • A selector, typeahead or tokenizer keeps Core's top and bottom padding, a padding reaches only its sides, the result says so, and a top or bottom padding alone is refused with a height line: verified (padding tests; built CSS).
  • A height that also reaches parts that are not controls keeps those parts' height as their own --only height, named with its line: verified (tests).
  • A saved word height still opens and builds; a saved block-only padding on a growing control opens with a note and no longer builds its block sides; only a new set is refused; a self-reading height is refused; min-height is shared only on growing controls: verified (saved-entry, loop and least-height tests).
  • A control height takes any CSS length and refuses a word or a percentage; a looping height is refused naming the chain; a carried height that reads a size token is carried as that token's value: verified (unit, loop and carry tests).
  • A file input's field keeps Core's top and bottom padding while its drop zone takes them: verified (drop-zone tests; built CSS).
  • A height on a group that mixes controls with other parts stays a plain height, and a check's height still spreads to the other checks: verified (mixed-group test; checks suite passes).
  • A picture's control height is one size token on controls: verified (picture-traits tests).
  • A size token saved on a group that holds controls among other parts counts as a control height that show lists: verified (button-like test).
  • how's compact answer for a growing control gives the spacing step alone: verified (compact-select test).
  • A padding on the file input under another condition still gives its drop zone the top and bottom sides under that condition, and the refusal and the note read the same: verified (new test; built CSS; refusal text).
  • The set and undo docs list controls under --on, and the set docs state the control-height rule: verified.
  • A theme with no control height builds as before, and parts that are not controls keep the base's tokens: verified (dialog header test).
  • The rendered-page check of an earlier head carries, as the patch differs from it only by the how text and the drop-zone condition: verified (the other commits are identical apart from context).
  • Known limits: the selector keeps a 20px line box, a typeahead and tokenizer keep about 28px and 30px, and ComplexSelector is outside the census: verified (Selector styles; Chromium 28px and 30px at a 25px small size; group test).
  • The regression file holds 42 tests: verified (42 pass).
  • Changeset: controls share one height per size, growing controls keep their content height and Core's top and bottom padding, --only keeps one apart, a size-token height must be a length, the drop zone keeps its padding, and show lists split heights: verified (as above).

Files:

  • .changeset/editor-control-heights.md: clear
  • docs/specs/AST-050-app-themes/spec.md: clear
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: clear
  • packages/cli/api/theme-edit/_how-question.mjs: clear
  • packages/cli/api/theme-edit/_how.mjs: clear
  • packages/cli/api/theme-edit/_missed.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear
  • packages/cli/api/theme-edit/_picture-traits.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: clear
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/theme-control-heights.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-undo.doc.mjs: clear

Automated review (maintainer link)

… as the fill it is (#12787)

Reviewed pull request #12787, merged into the theme working branch. It reaches main with the branch's next landing.
…ll, with the color quoted (#13256)

Reviewed pull request #13256, merged into the theme working branch. It reaches main with the branch's next landing.
…ch size

Inputs, selects, input groups and buttons take one height at each size
from the control size tokens on a new controls group. A height set on a
control is written as that size's token and replaces the other control
heights there; --only keeps a height on one control. show lists a saved
height that keeps controls apart, with the line that joins them.
AST-050 DEC-16 records the rule.
…n-like parts is a control height show lists

A size token on a group that holds controls among other parts (the
button-like parts an earlier picture answer wrote it on) counts as a
control height, so show lists the buttons it keeps apart from the fields,
with the line that joins them.
… part, as before, and one control-height constant

partsOf reaches the other members only for a comma list of conditions, as
on main; a condition joined with + keeps to its own part. onlyHeightShape
reads CONTROL_HEIGHT_PROPS, and groupsOf's doc names controls.
…ck padding line

A control that grows with its content keeps Core's block padding, so the
tighter answer for it gives the spacing step alone and no longer promises a
padding line that sets its height.
…ndition still reaches its drop zone

A padding set on the file input with a --when on another axis
(status:error) gives the drop zone its top and bottom sides under that
condition too, joined to the drop zone's mode. The refusal and the set
note read the same joined conditions.
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 97d448d

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet.

The shared-control-height rule (spec:AST-050 DEC-16) and its saved-only exception are approved for this head. The rebase keeps the updated base's text-size sentence in the set docs beside the control-height rule, and the change's tests and the nearby theme-editor suites pass on it. Nothing else needs to change; CI runs next.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • An earlier editor's button height stays fixed at every size while the inputs follow the size tokens: verified (the base writes height on the button alone; Chromium on neutral with a 4px input padding: 25/28/30, 31/32/32, 31/36/36px).
  • A height on a control is written as that size's token on a new controls group, so every control at that size takes it: verified (tests; the built theme sets the token on every control).
  • The controls group holds the parts sized by the control tokens, a date and time input included: verified (date and time input test; census rule).
  • A height replaces the other control heights at that size, a replaced every-size height stays at the other sizes, and the result names what it replaced and the --only line: verified (replacement and carry tests; notes).
  • --only keeps a height on one control, a button included, as its own size token, and the same height set again stays: verified (--only tests).
  • A height that is not a size (auto) is refused, since Core reads the size tokens inside its own sums: verified (refusal tests).
  • A height on a part that is not a control no longer reaches the inputs drawn alike: verified (text-area tests).
  • show lists each saved length height that keeps controls apart, with its line, and leaves out a saved word height: verified (missed tests).
  • A selector, typeahead or tokenizer keeps Core's top and bottom padding, a padding reaches only its sides, the result says so, and a top or bottom padding alone is refused with a height line: verified (padding and refusal tests; built CSS).
  • A height that also reaches parts that are not controls keeps those parts' height as their own --only height, named with its line: verified (text-area and set-apart tests).
  • A saved word height still opens and builds; a saved block-only padding on a growing control opens with a note and no longer builds its block sides; only a new set is refused; a self-reading height is refused; min-height is shared only on growing controls: verified (saved-entry, loop and least-height tests).
  • A control height takes any CSS length and refuses a word or a percentage; a looping height is refused naming the chain; a carried height that reads a size token is carried as that token's value: verified (unit, loop and carry tests).
  • A file input's field keeps Core's top and bottom padding while its drop zone takes them: verified (drop-zone tests; built CSS).
  • A height on a group that mixes controls with other parts stays a plain height, and a check's height still spreads to the other checks: verified (mixed-group test; checks suite passes).
  • A picture's control height is one size token on controls: verified (picture-traits tests).
  • A size token saved on a group that holds controls among other parts counts as a control height that show lists: verified (button-like test).
  • how's compact answer for a growing control gives the spacing step alone: verified (compact-select test).
  • A padding on the file input under another condition still gives its drop zone the top and bottom sides under that condition, and the refusal and the note read the same: verified (test; built CSS).
  • The set and undo docs list controls under --on, and the set docs state the control-height rule: verified (both doc files, which also keep the base's text-size sentence).
  • After the change, buttons, text inputs and selectors are 25/25/25px at sm, 31/31/31px at md and 36/36/36px at lg: verified (Chromium capture at this head).
  • A theme with no control height builds as before, and parts that are not controls keep the base's tokens: verified (dialog header test).
  • The rendered-page check of an earlier head carries, as the patch differs from it only by the how text and the drop-zone condition: verified for the patch difference (commit comparison); the page run itself is the author's and was not repeated.
  • Known limits: the selector keeps a 20px line box and ComplexSelector is outside the census: verified (Selector styles; group test); the typeahead's and tokenizer's 28px and 30px are the author's figures, not re-measured.
  • The regression file holds 42 tests: verified (42 pass).
  • Changeset: controls share one height per size, growing controls keep their content height and Core's top and bottom padding, --only keeps one apart, a size-token height must be a length, the drop zone keeps its padding, and show lists split heights: verified (as above).

Files:

  • .changeset/editor-control-heights.md: clear
  • docs/specs/AST-050-app-themes/spec.md: clear
  • packages/cli/api/theme-edit/_check.mjs: clear
  • packages/cli/api/theme-edit/_edit.mjs: clear
  • packages/cli/api/theme-edit/_how-question.mjs: clear
  • packages/cli/api/theme-edit/_how.mjs: clear
  • packages/cli/api/theme-edit/_missed.mjs: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear
  • packages/cli/api/theme-edit/_picture-traits.mjs: clear
  • packages/cli/api/theme-edit/_settings.mjs: clear
  • packages/cli/api/theme-edit/_tables.mjs: clear
  • packages/cli/api/theme-edit/theme-control-heights.test.mjs: clear
  • packages/cli/api/theme-edit/theme-picture-traits.test.mjs: clear
  • packages/cli/api/theme-edit/theme-saved-only-reads-as-written.test.mjs: clear
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear
  • packages/cli/clients/cli/commands/experimental-theme-editor-undo.doc.mjs: clear

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13315.

This branch was successfully deployed

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant