Skip to content

set: a text size said of a title piece goes on its holder's main text - #13251

Merged
josephfarina merged 2 commits into
feature/theme-editorfrom
josephfarina/r15-fu-text-size-title-piece
Nov 21, 2026
Merged

josephfarina merged 2 commits into
feature/theme-editorfrom
josephfarina/r15-fu-text-size-title-piece

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

User impact

set <theme> font-size 20px --on top-nav-heading-title was refused: the title is drawn inside the top nav heading, not a part of its own. The refusal offered two tokens without saying which line each sets.

Problem and solution fit

Where the holder's main text can be told (its pieces each read a text size token, and one is the largest), a name for its main piece (-title, -heading) means that text. Today that reaches the top nav and side nav headings (top-nav-heading-title, side-nav-heading-title); other pieces' names are refused as before. The fix sets the line on the holder, as if said of it, and notes the move; any other piece name (-subtitle) is refused as before, since which line it is cannot be told apart.

Expected behavior and authority

Builds on the main-text rule for a part with several text pieces (#13234): the same answer as font-size 20px --on top-nav-heading.

Smallest restoration

One branch in set's unknown-part check: a font-size said of <holder>-title or <holder>-heading with no state, where mainTextSizeToken names the holder's main text, moves onto the holder, for set and for undo; --only, which changes nothing on the holder, is dropped with a note, as it is when the holder is named directly. Everything else falls through to the existing refusal. The set docs say so.

Evidence

  • Reproduction before the change: the line above is refused.
  • Result after the change: .astryx-top-nav-heading { --text-large-size: 20px; }.
  • Representative unchanged path: font-size 11px --on top-nav-heading-subtitle is refused with both tokens, as before.
  • Regression test or other mutation-sensitive proof: theme-set-takes-text-a-part-reads.test.mjs (the title row fails before and checks the note, the saved part, undo by the title's name and --only; the subtitle row keeps the refusal).

Scope

Components: cli/api/theme-edit (set)

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

Testing

vitest run packages/cli/api/theme-edit (the whole theme-edit directory) passes.

replay: worse 0 at 56510e4

preflight: pass 56510e4

@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

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

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

Request Review

@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

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

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner's decision at this head, and one wording fix is needed whatever that decision is.

No current spec record says where astryx experimental theme editor set <theme> font-size <size> --on <part>-title (or -heading) sends the size, so an engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) or names the record that governs it. What needs settling: with no --state, the size is saved on the holding part into its main text's token (at this head, the top nav and side nav headings), undo by the same name removes it, and other piece names stay refused.

Blocking findings:

  • The changeset and both set docs say a size said of a part's title piece goes on that part wherever its main text can be told, but font-size 23px --on top-nav-mega-menu-item-title is still refused as "not a part you can style" although the item's title is the text --on top-nav-mega-menu-item sizes, so please name the parts it reaches (the top nav and side nav headings) or extend the branch to the mega menu item with a test row.
Claims and files checked

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

Claims:

  • --on top-nav-heading-title sizes the heading's title, saved on the heading into --text-large-size: verified (new test; built rule).
  • A title piece's size goes on its part wherever the part's main text can be told: false; only the top nav and side nav headings are reached, and the mega menu item's title is refused.
  • Another piece's name (-subtitle) is refused as before: verified (the subtitle row passes on the base and the head).
  • The base refused the title line, offering two tokens without saying which line each sets: verified (the new title row fails on the base with that refusal).
  • The answer is the same as font-size 20px --on top-nav-heading: verified (same saved entry and built rule).
  • Only a font size with no state moves, and everything else falls through to the existing refusal: verified (a state, line-height, font-weight and a value naming the token stay refused).
  • Undo by the title's name removes the setting: verified (new test).
  • --only is dropped with a note, as when the holder is named directly: verified (new test; the same shared check).
  • The set docs describe the reading: verified, with the wording finding above.
  • The regression test fails before the change and keeps the subtitle refusal: verified (head test file run on the base).
  • One defect is restored, with nothing new under the fix label: not established, since no current spec defines the expected answer (decision above).
  • Separable tag-alongs were removed: verified (none).
  • Public text has no internal context: verified.
  • The whole theme-edit test directory passes: partly checked; the changed file and seven related files pass at this head, and the full directory was not rerun.

Files:

  • .changeset/experimental-theme-text-size-title-piece.md: finding (the reach claim).
  • packages/cli/api/theme-edit/_check.mjs: clear.
  • packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear; covers the top nav heading only.
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: finding (the same sentence).
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: finding (the same sentence).

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the theme-editor reading this pull request records (the owner's ruling): font-size set on a holder's title or heading goes to the holder's main text, with set and undo matching and --only dropped.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec eb80432

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval still waits on an engineering owner's decision at this head; the wording fix from the earlier review is done, and nothing else needs to change.

No current spec record says where astryx experimental theme editor set <theme> font-size <size> --on <part>-title (or -heading) sends the size. An engineering owner records the decision by commenting /approve-spec <full head SHA> on this pull request (the author may do so as an engineering owner) or names the record that governs it. What needs settling: with no --state, a font size said of top-nav-heading-title or side-nav-heading-title (or -heading) is saved on that heading into its main text's token, undo by the same name removes it, --only is dropped with a note, and other piece names stay refused.

Claims and files checked

Review mode: incremental; reason: none

Changed rules (0): none

Claims:

  • Changeset: a font size said of top-nav-heading-title or side-nav-heading-title (also -heading) goes on that heading, into its main text's token: verified (test row; both headings and both names checked at this head).
  • Changeset: another piece's name (-subtitle) is refused as before: verified (subtitle test row; the side nav subtitle is refused too).
  • The base refused the title name, and its refusal offered two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
  • A main-piece name (-title, -heading) means the holder's main text, which today reaches the top nav and side nav headings: verified (the mega menu item's title stays refused and is not claimed).
  • The answer is the same as font-size 20px --on top-nav-heading: verified (same saved entry and built rule).
  • Only a font size with no state moves, and everything else falls through to the existing refusal: verified (a state and line-height stay refused).
  • Undo by the title's name removes the setting: verified (test row; the side nav heading through -heading too).
  • --only is dropped with a note, as when the holder is named directly: verified (test row; the same shared check).
  • The set docs say so: verified (both docs name the two headings and -heading).
  • The result after the change is --text-large-size: 20px on the top nav heading: verified (test row).
  • The regression test fails before the change and keeps the subtitle refusal: verified (the test file run against the base).
  • One defect is restored, with nothing new under the fix label: not established, since no current spec defines the expected answer (decision above).
  • Separable tag-alongs were removed: verified (none).
  • Public text has no internal context: verified.
  • The whole theme-edit test directory passes: verified (every file passes at this head).

Files:

  • .changeset/experimental-theme-text-size-title-piece.md: clear.
  • packages/cli/api/theme-edit/_check.mjs: clear.
  • packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.

Automated review (maintainer link)

@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: the title-piece reading is owner-approved and the change itself needs no edits, but this branch has to be replayed onto the current feature/theme-editor before it can merge.

  • Regression: feature/theme-editor was rebuilt after this branch was cut, so the pull request now also carries 24 of that branch's older commits (58 files) and conflicts with it in five files, including both set docs this change edits; replay only this pull request's two commits onto the current base (for example git rebase --onto origin/feature/theme-editor HEAD~2), where they apply cleanly with the same five-file change.

A new head clears this head's /approve-spec, so an engineering owner (the author may, as one) records it again at the new head.

Claims and files checked

Review mode: same-head; reason: none

Changed rules (0): none

Claims:

  • Changeset: a font size said of the top nav or side nav heading's title (also -heading) goes on that heading, into its main text's token: verified (test row; both headings and both names).
  • Changeset and description: another piece's name (-subtitle) is refused as before: verified (subtitle test row).
  • Description: the base refused the title name and its refusal offered two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
  • Description: the answer is the same as naming the heading itself, and --only is dropped with a note: verified (same saved entry and built rule; --only test row).
  • Description: undo by the title's name removes the setting: verified (test row).
  • Description: the set docs say so: verified (both docs name the two headings and -heading).
  • Description: separable tagalongs were removed or split: false at this base (the pull request now carries the base branch's older history; see the finding).
  • Description: public text has no internal context: verified.
  • Description: the theme-edit test directory passes: verified at this head.

Files:

  • packages/cli/api/theme-edit/_check.mjs: clear.
  • packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.
  • .changeset/experimental-theme-text-size-title-piece.md: clear.
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: conflicts with the base.
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: conflicts with the base.
  • The other 53 files come from the base branch's older history: not this pull request's change; dropped by the rebase.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approval waits on an engineering owner recording the spec decision again at this head; the change itself needs no edits.

No current spec record says where astryx experimental theme editor set <theme> font-size <size> --on <heading>-title (or -heading) sends the size, and the /approve-spec that decided it names the head before the branch was replayed onto the rebuilt feature/theme-editor, so it does not carry to this head. An engineering owner records it for this head by commenting /approve-spec <full head SHA> on this pull request, or names the record that governs it; the author may do so as an engineering owner. The replay resolves the earlier change request: the pull request is now only its own two commits, with the same patch.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: a font size said of the top or side nav heading's title, or -heading, goes on that heading's main text, and another piece name is refused: verified (theme-set-takes-text-a-part-reads.test.mjs:259-319; across every part only those four names are accepted).
  • Description: before, font-size 20px --on top-nav-heading-title was refused, offering two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
  • Description: after, it builds .astryx-top-nav-heading { --text-large-size: 20px; }, the same answer as --on top-nav-heading: verified (test lines 291-296; both names write the same rule).
  • Description: the move is noted, undo by the title's name removes it, and --only is dropped with a note as when the heading is named: verified (_check.mjs:5805-5814; test lines 289 and 298-319).
  • Description: -subtitle stays refused with both tokens: verified (test lines 259-276 pass on the base and the head).
  • Description: today it reaches the top nav and side nav headings only: verified.
  • Description: no new public API, visual representation, default or interaction model: verified (only the accepted --on values and one doc sentence change).
  • Description: the whole theme-edit test directory passes: verified (558 of 559 test files pass and 1 is skipped; 6,134 tests pass, 4 skipped, 1 todo).
  • .changeset/experimental-theme-text-size-title-piece.md: clear.
  • packages/cli/api/theme-edit/_check.mjs: clear.
  • packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec a15c10f

@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: the title-piece reading is decided for this head and the code needs no edits, but the branch has to be replayed onto the current feature/theme-editor before it can merge.

  • Regression: both set docs (packages/cli/api/theme-edit/themeEditSet.doc.mjs:16 and packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs:15) now conflict with feature/theme-editor, where #13243 added its own sentence to the same description, so replay the two commits onto the current base and keep both sentences in each doc.

The code and the test file merge cleanly, and the test file passes on the merged code with both sentences kept. The new head needs the spec decision recorded again: an engineering owner comments /approve-spec <full head SHA> on it, and the author may do so as an engineering owner.

Claims and files checked

Review mode: same-head; reason: none

  • Changeset: a font size said of the top or side nav heading's title, or -heading, goes on that heading's main text: verified (theme-set-takes-text-a-part-reads.test.mjs:278-322; across every part, only those four names are accepted).
  • Changeset: another piece's name, -subtitle, is refused as before: verified (test lines 259-276).
  • Description: before, font-size 20px --on top-nav-heading-title was refused, offering two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
  • Description: where the holder's main text can be told, -title or -heading means that text, which today reaches the top nav and side nav headings, and other piece names are refused as before: verified (_check.mjs:5799-5805; every part checked on base and head).
  • Description: the line is set on the holder as if said of it, the move is noted, and the answer matches --on top-nav-heading under the earlier main-text rule: verified (test lines 288-296; both names write only --text-large-size: 20px).
  • Description: one branch serves set and undo, drops --only with a note as the holder named directly does, and leaves everything else to the existing refusal: verified (_check.mjs:5805-5827, :5836-5853; test lines 297-319).
  • Description: the set docs say so: verified (one sentence in each set doc naming the two headings).
  • Description: after the change, .astryx-top-nav-heading gets --text-large-size: 20px: verified (test lines 291-296).
  • Description: the regression test fails before and checks the note, the saved part, undo by the title's name and --only, and the subtitle row keeps the refusal: verified (14 of 15 rows pass on the base, the title row failing).
  • Description: one defect restored, with no new public API, default or interaction model: verified (no command, option or export changes).
  • Description: the whole theme-edit test directory passes: verified at this head (558 of 559 test files pass, 1 skipped).
  • Description: public text carries no internal context: verified.
  • packages/cli/api/theme-edit/_check.mjs: clear.
  • packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.
  • .changeset/experimental-theme-text-size-title-piece.md: clear.
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: conflicts with the current base (finding above).
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: conflicts with the current base (finding above).

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/r15-fu-text-size-title-piece branch from a15c10f to 56510e4 Compare November 21, 2026 15:23
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 56510e4

@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: the title-piece reading is decided for this head, and the replay onto the current feature/theme-editor resolves the docs conflict from the last review.

No changes are needed. The whole theme-edit test directory passes on this head, and the new title row fails on the base as expected.

Claims and files checked

Review mode: full; reason: rebase

  • Changeset: a font size said of the top or side nav heading's title, or -heading, goes on that heading's main text: verified (theme-set-takes-text-a-part-reads.test.mjs:313-357; across every part, only those four names are accepted).
  • Changeset: another piece's name, -subtitle, is refused as before: verified (test lines 294-311).
  • Description: before, font-size 20px --on top-nav-heading-title was refused, offering two tokens without saying which line each sets: verified (the title row fails on the base with that refusal).
  • Description: where the holder's main text can be told, -title or -heading means that text, which today reaches the top nav and side nav headings, and other piece names are refused as before: verified (_check.mjs:5800-5805; every part checked on base and head).
  • Description: the line is set on the holder as if said of it, the move is noted, and the answer matches --on top-nav-heading under the earlier main-text rule: verified (test lines 323-331; both names save the same entry and write only --text-large-size: 20px).
  • Description: one branch serves set and undo, drops --only with a note as the holder named directly does, and leaves everything else to the existing refusal: verified (_check.mjs:5806-5828, :5837-5854; test lines 332-354).
  • Description: the set docs say so: verified (one sentence in each set doc naming the two headings, beside the existing sentences).
  • Description: after the change, .astryx-top-nav-heading gets --text-large-size: 20px: verified (test lines 326-331).
  • Description: the subtitle line is still refused with both tokens: verified (test lines 294-311).
  • Description: the regression test fails before and checks the note, the saved part, undo by the title's name and --only, and the subtitle row keeps the refusal: verified (16 of 17 rows pass on the base, the title row failing).
  • Description: one defect restored, with no new public API, default or interaction model: verified (no command, option or export changes).
  • Description: the whole theme-edit test directory passes: verified at this head (561 of 562 test files pass, 1 skipped).
  • Description: public text carries no internal context: verified.
  • .changeset/experimental-theme-text-size-title-piece.md: clear.
  • packages/cli/api/theme-edit/_check.mjs: clear.
  • packages/cli/api/theme-edit/theme-set-takes-text-a-part-reads.test.mjs: clear.
  • packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear (keeps the base branch's newer sentence).
  • packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear (keeps the base branch's newer sentence).

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 6a9ef60 into feature/theme-editor Nov 21, 2026
9 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…#13251)

Reviewed pull request #13251, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…#13251)

Reviewed pull request #13251, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…#13251)

Reviewed pull request #13251, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…#13251)

Reviewed pull request #13251, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
…#13251)

Reviewed pull request #13251, merged into the theme working branch. It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13196 how: every part named before a colon is a subject of the list
- #13283 experimental theme how: a file named in url() is a value, written as typed
- #13297 experimental theme how: a file in a follow-up ask is written as typed
- #13298 experimental theme how: a second url() layer left unwritten is named as not used
- #13317 experimental theme how: a file's path changes no other ask inside the question reader
- #13251 set: a text size said of a title piece goes on its holder's main text
- #13374 experimental theme how: a label after an earlier part's sentence still sets its setting
- #13396 experimental theme how: a heading's label run reads two-word and hyphenated labels; a short sentence is no heading
- #13263 how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item
- #13378 fix(cli): a radius named for one corner writes that corner only
- #13389 experimental theme how: the url() note no longer lists the follow-up ask as uncovered
- #13435 experimental theme how: the url() layer note names only the phrasing still left out
- #13449 how: a colon-list item is read in the sentence that holds it as typed
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13412.

@github-actions
github-actions Bot deleted the josephfarina/r15-fu-text-size-title-piece branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 56510e49 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