Skip to content

how: every part named before a colon is a subject of the list - #13196

Merged
josephfarina merged 6 commits into
feature/theme-editorfrom
josephfarina/r15-fu-colon-subjects
Nov 21, 2026
Merged

josephfarina merged 6 commits into
feature/theme-editorfrom
josephfarina/r15-fu-colon-subjects

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Someone asking astryx experimental theme editor how for a look on several parts in one colon list ("popover, tooltip and hover card: dark") got the tooltip changed but the hover card silently dropped, with a "cannot keep popover apart" note instead.

Problem and solution fit

The colon-list reader holds a part said once in the singular inside the list's first part, whether or not that part contains it. It applied that even to parts named before the colon, which are subjects of the list, not items. The answer for the hover card was then dropped as not scopable to the popover. The fix exempts a part named as a whole list item before the first colon of the clause's own sentence (a decimal point does not end a sentence), read from the words as asked: the sentence is found by the look after the clause's own colon, which a reader that copies the colon onto each subject ("popover and hover card: dark", "sidebar, header and footer: navy") keeps, and a leading "the", "every" or "our" does not hide a subject. A part named after that colon ("cards: white background, header: navy"), in another sentence's list, or inside a longer name ("icon buttons: round, blue icon") stays an item, as before.

Expected behavior and authority

The answer the editor gave for this ask before the current reading: each part after the first that is named before the colon takes the look; the first part still answers with a lookup, as before.

Smallest restoration

One guard in the colon-list holder rule, read from the words as asked.

Evidence

  • Reproduction before the change: "popover, tooltip and hover card: dark" writes only the tooltip's fill and text; "popover and hover card: dark" drops the hover card.
  • Result after the change: it also writes background-color '#1f2937' --on hover-card.
  • Representative unchanged path: "cards: white background, header: navy", "cards, dialogs: white background, header: navy", "dialogs: no border, title: bold", "toasts: dark, close button: white" write no app-wide part or theme-wide dial; "sidebar: #111827 background, white links" and "text at 7:1 contrast" are unchanged.
  • Regression test or other mutation-sensitive proof: rows in theme-how-clause-subjects.test.mjs (the hover card in a three-part and a two-part list, a middle item, a leading "the"; nested "part: look" items, a decimal in the first item, a part named in another sentence, and a part inside a longer name, which must never write an app-wide part, dial or theme-wide token).

Scope

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

  • 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.

preflight: pass 25cb23c (review deferred to batch)

replay: worse 0 at 25cb23c

@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 5:36am UTC

Request Review

@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 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Nov 21, 2026, 5:36 AM UTC

@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 25cb23c

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

Current run: The current CI run concluded cancelled. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@josephfarina

Copy link
Copy Markdown
Contributor Author

Covers the reading this pull request restores (the owner's ruling, under the restore rule): in a colon list, every part named before the colon is a subject of the list, so "popover, tooltip and hover card: dark" writes the look on the hover card too, as releases before this round did; the first part still answers with a lookup. A replay of every ask against main changes only that answer and finds none worse.

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 25cb23c

@josephfarina
josephfarina changed the base branch from main to feature/theme-editor November 21, 2026 05:50
@josephfarina
josephfarina merged commit ea4eff0 into feature/theme-editor Nov 21, 2026
15 of 66 checks passed
@github-actions
github-actions Bot deleted the josephfarina/r15-fu-colon-subjects branch November 21, 2026 06:04
@josephfarina

Copy link
Copy Markdown
Contributor Author

Taken out of landing #13209 because the review of the combined head flagged a line this change made. A fix as a new pull request rides the next landing.

josephfarina added a commit that referenced this pull request Nov 21, 2026
Reviewed pull request #13196, 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
Reviewed pull request #13196, 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
Reviewed pull request #13196, 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
Reviewed pull request #13196, 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
Reviewed pull request #13196, 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
Reviewed pull request #13196, 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.

This branch was successfully deployed

1 active deployment
Preview — 25cb23c7 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