Skip to content

fix(cli): experimental theme editor - a name in capitals that no part has is no subject - #13223

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
hq13f-capitals-no-subject
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
hq13f-capitals-no-subject

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

astryx experimental theme editor how read a single word in capitals that no part has ("FAB") as an unknown part. "FAB 16px corners, bold text" then wrote nothing and marked "bold text" as not used.

That reading is taken out, so these asks answer as the last release does:

  • "FAB 16px corners" writes corners 16px.
  • "FAB 16px corners, bold text" writes the corners and the bold text.

A plural noun ("FABs …") or a label naming things on the page ("widgets: …") still names an unknown subject and writes nothing for it. The pending release note for unknown subjects now says which clauses name an unknown subject (one led by a plural, or by words of a part's name); no separate note is needed, since released versions already read these asks this way.

Test plan

  • theme-how-clause-subjects.test.mjs: the "FAB 16px corners" row now expects the corners, and a new row covers "FAB 16px corners, bold text". Both fail before this change and pass after.
  • The theme-how test files pass; the full theme-edit suite passes.
  • Replayed the editor's recorded asks before and after the change: only these asks change, each to its earlier answer.

replay: worse 0 at 98b14dc
preflight: pass 98b14dc

… has is no subject

A single word in capitals that no part has ("FAB") was read as an unknown part, so "FAB 16px corners, bold text" wrote nothing and dropped "bold text". That reading is taken out, so these asks answer as the last release does, and the pending release note says which clauses name an unknown subject: one led by a plural or by words of a part's name.
@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 6:43am 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, 7:05 AM UTC

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

Copy link
Copy Markdown
Contributor Author

Covers the theme-editor reading this pull request restores (the owner's ruling, under the restore rule): a name in capitals that no part has is no subject, so an ask such as "FAB 16px corners" reads as released versions do (the whole theme's corners).

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 98b14dc

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 98b14dc

⏳ Building… Until it's ready, Storybook · Sandbox open the branch's previous preview.

Current run: Heavy CI deferred: runs when review passes and before merge. Lint, typecheck and any path-filtered checks ran on this push.


Generated by PR Enrichment workflow | View current CI run

@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. experimental theme editor how reads a lone word in capitals as an ordinary word again, so "FAB 16px corners" writes the whole theme's corners and "FAB 16px corners, bold text" keeps the bold text, while a plural ("FABs …"), a label ("widgets: …") and words a part's name holds ("command palette …") still write nothing and name the word.

This was checked against the published CLI, not only against the tests: version 0.7.17 answers both asks exactly as this head does, so the change restores a released reading rather than introducing one. The two rows in the clause-subjects test fail at the merge base and pass here, every theme-how test file passes at this head (59 files, 1,286 assertions), and eight further theme-edit files that call the reader pass too.

  • Non-blocking: the rewritten comment above the subject check is one 35-word sentence carrying two rules, over the simplified-English limit for a description; splitting it in two keeps the same facts.

Lint and the CLI smoke test pass on this head; the heavy CI jobs started when this review passed and were still queued or running as it was written, so this approval is pending CI.

Claims and files checked

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

  • Release note: a clause led by a plural, or by words a part's name holds, that matches no part writes nothing, names the words and lists any parts containing them — verified; the command-palette ask lists its six parts.
  • Release note: a single unknown word still changes the whole theme, as released versions do — verified against the 0.7.17 tree and this head.
  • Release note: font names, brand labels and look words read as before — verified by the font, brand-label and look rows of the clause-subjects test.
  • Neighbouring release note, cross-checked: a label that names no part ("fab: …") is still named, never painted — verified at this head.
  • Description: before the change the two-clause ask wrote nothing and marked "bold text" as not used — verified on the base tree, word for word.
  • Description: both test rows fail before the change and pass after — verified; exactly those two of 54 fail at the merge base.
  • Description: the theme-how test files pass — verified (59 files, 1,286 tests).
  • Description: the full theme-edit suite passes — verified in part; the directory holds 596 test files, too many for this review's budget, so 67 of them were run, including every theme-how file and the heavier files that call the reader. No failure seen.
  • Description: a replay of the editor's recorded asks changes only these asks — not verifiable here; the corpus is not in the repository. A ten-ask probe across the released, base and head trees agrees with it.
  • Files: the editor's how reader (one disjunct removed, comment kept accurate, lint clean); the clause-subjects test (two rows, red at the merge base, green here); the pending release note (its wording matches the code, and its neighbours in the file stay true).

Automated review (maintainer link)

// (A subject is a thing on the page: a plural noun, a word of a part's
// own name, or a name in capitals, "FAB"; a brand or a mood said
// before a look, "IBM Carbon:", "design feedback:", is not one.)
// (A subject is a thing on the page: a plural noun or a word of a

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 is one 35-word sentence carrying two rules, over the 25-word limit for a description in the repository's source-comment style. Two sentences keep the same facts:

    // (A subject is a thing on the page: a plural noun, or a word of a
    // part's own name. A brand or a mood said before a look,
    // "IBM Carbon:", "design feedback:", is not one.)

@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 07:15
@josephfarina
josephfarina merged commit 153bc42 into feature/theme-editor Nov 21, 2026
129 of 134 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #13211 experimental theme editor how: the stripes' names match in their own forms and with the table named
- #13176 fix(cli): experimental theme editor - "the page: …" is the page
- #13208 fix(cli): experimental theme editor - a gentle dark mode is no page color
- #12730 experimental theme set: a theme made one-mode says where the page color shows, once
- #13222 fix(cli): experimental theme editor - "bold system type" names no part
- #13223 fix(cli): experimental theme editor - a name in capitals that no part has is no subject
- #12701 fix(cli): how writes the color of a bold run said for a part's text, and the top bar's links take their looks on its nav items
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13226.

@github-actions
github-actions Bot deleted the hq13f-capitals-no-subject branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 98b14dcf 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