Skip to content

how: a colon-list item is read in the sentence that holds it as typed - #13449

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

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

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Follows #13196 (every part named before a colon is a subject of the list), where the regression starts, and #13263 (a part another sentence names before its colon stays an item), which keeps the same fallback; it fixes the regression the landing check found.

User impact

"Header: navy, e.g. a dark blue. Cards: white background, gray header." wrote only the white cards on the theme branch and reported the navy header and the cards' gray header as contradicting; main writes the navy app header and the white cards.

Problem and solution fit

The colon-list subject guard picks the clause's sentence by position only when the sentence counts match; "e.g." adds breaks, so it fell back to matching the words a reader's rewrite keeps, here the bare part word "header", which the first sentence names before its colon. The fix makes the fallback first use the sentences that hold the clause as typed ("gray header"); only a clause a reader rewrote falls back to the kept words.

Expected behavior and authority

Main's answer for this ask (HQ's colon-subject reading for #13196 and #13263: a part named after a colon stays an item).

Smallest restoration

One added step in the sentence choice of the subjectOfColon guard.

Evidence

  • Reproduction before the change: the ask above reports a contradiction and writes no navy header.
  • Result after the change: background-color '#1e3a8a' --on app-shell-header and the cards' white fill, as on main; the "i.e." and bracketed forms too. An example inside the list's own sentence or before the first colon still reports the contradiction (not covered here).
  • Representative unchanged path: "Header: navy. Cards: white background, gray header.", "popover, tooltip and hover card: dark", "Don't change the sidebar. Make the popover and hover card: dark." answer as before.
  • Regression test or other mutation-sensitive proof: a row in theme-how-clause-subjects.test.mjs (fails before).

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.

replay: worse 0 at 9e7c2d1

preflight: pass 9e7c2d1

@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:55pm 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
🟢 Reviewed (for maintainers only) Nov 21, 2026, 7:00 PM UTC

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 1e4a1c5

@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 colon-list fix works for asks like "Header: navy, e.g. a dark blue. Cards: white background, gray header.", and an engineering owner approved its reading at this head, but the release note claims more asks than it fixes.

  • The release note says the item stays an item whenever "the ask has an example inside a sentence", but an example inside the list's own sentence ("Header: navy. Cards: white background (e.g. snow), gray header.") or before the first colon ("Header, e.g. the top bar: navy. Cards: white background, gray header.") still reports navy and gray as contradicting, so name the asks the new row proves and say that an example inside the list's own sentence still reports the contradiction.

The new test row fails before the change and passes after it, and the quoted ask now answers as main does. When you narrow the note, also align the branch's earlier colon-subjects note, which still lists "e.g." asks among those that keep the earlier reading. A changeset edit makes a new head, so an engineering owner then posts /approve-spec with its full SHA again.

Claims and files checked

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

  • Release note: in the quoted ask the header turns navy and the cards get their white background. Verified by the new test row and a direct run.
  • Release note: this holds whenever the ask has an example inside a sentence. False: an example inside the list's own sentence, or before the first sentence's colon, still gives the contradiction.
  • Release note: "as before". Verified: main answers the quoted ask the same way.
  • Release note: an experimental patch entry for the CLI. Verified.
  • Description: follows the earlier colon-list change and fixes a regression in it. Verified against main; who first found it was not checked.
  • Description: before the change, the quoted ask writes only the white cards and reports navy and gray as contradicting. Verified on the base.
  • Description: main writes the navy app header and the white cards. Verified by running main's code.
  • Description: the guard picks the sentence by position only when the sentence counts match; "e.g." adds sentence breaks, so it fell back to the bare word "header", which the first sentence names before its colon. Verified in the base code and with an instrumented run.
  • Description: the fix first uses the sentences that hold the clause as typed, and only then the kept words. Verified in code.
  • Description: the expected behavior is main's answer under the colon-subject reading. Verified for the quoted ask; the reading is decided by the owner approval at this head.
  • Description: one added step in the sentence choice. Verified.
  • Description: after the change, the navy header and the cards' white fill, as on main, and the "i.e." form too. Verified.
  • Description: the three unchanged-path asks answer as before. Verified: identical answers on the base and this head.
  • Description: the new row fails before the change. Verified.
  • Description: one defect restored, no tagalong, no new public API, no internal context. Verified.
  • Description: the whole theme-edit test directory passes. Partly checked: the seven clause and colon-list test files (865 tests) pass at this head; the full directory was not run.
  • .changeset/experimental-theme-how-colon-subjects-eg.md: finding above.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs: clear.

Automated review (maintainer link)

@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 9e7c2d1

@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 colon-list fix answers "Header: navy, e.g. a dark blue. Cards: white background, gray header." and its "i.e." and bracketed forms with the navy header and the white cards, as main does, and an engineering owner approved its reading at this head.

The release notes now match the head: the new note names the forms the fix covers and the asks that still report the contradiction, and the earlier note no longer lists "e.g." asks among them. One optional wording tweak: a bracketed example before the first colon ("Header (e.g. the top bar): navy. Cards: white background, gray header.") already gives the navy header and white cards, so the new note's before-the-colon limit fits only the comma form it quotes.

Claims and files checked

Review mode: incremental; reason: none

  • changed rules (0): none
  • New release note: in the quoted ask the header turns navy and the cards get their white background. Verified by the new test row and a direct run.
  • New release note: the "i.e." and bracketed forms behave the same. Verified by direct runs of the "i.e.", "(e.g. …)", "(i.e. …)" and "[e.g. …]" forms.
  • New release note: "as before". Verified: main answers the quoted ask the same way.
  • New release note: an example inside the list's own sentence still reports the two header colors as contradicting. Verified with the bracketed and comma forms.
  • New release note: an example before the first colon still reports the contradiction. Verified for the comma form it quotes; a bracketed example there already works (the optional tweak above).
  • New release note: an experimental patch entry for the CLI. Verified.
  • Earlier release note: in the quoted two-sentence ask the header turns navy and the cards get their white background. Verified by its test row and a direct run.
  • Earlier release note: some asks still take the earlier reading, such as one with a greeting sentence or a line break between sentences. Verified with a greeting sentence and a bare line break.
  • Description: follows the two earlier colon-list changes, where the regression starts. Verified in the history: the guard comes from the first and its positional pick from the second; main has neither.
  • Description: before the change, the quoted ask writes only the white cards and reports navy and gray as contradicting, where main writes the navy header and the white cards. Verified on the base and on main.
  • Description: the guard picks the sentence by position only when the sentence counts match, "e.g." adds breaks, and the fallback matched the bare word "header" in the first sentence. Verified in the base code.
  • Description: the fix first uses the sentences that hold the clause as typed; only a rewritten clause falls back to the kept words. Verified in the code.
  • Description: the expected behavior is main's answer under the colon-subject reading. Verified for the quoted ask; the reading is decided by the owner approval at this head.
  • Description: one added step in the sentence choice. Verified.
  • Description: after the change, the navy header and the cards' white fill, and the "i.e." and bracketed forms too. Verified.
  • Description: an example inside the list's own sentence or before the first colon still reports the contradiction. Verified, with the bracketed before-the-colon exception above.
  • Description: the three unchanged-path asks answer as before. Verified: identical answers on the base and this head.
  • Description: the new row fails before the change. Verified: the base's answer lacks the white card line the row requires.
  • Description: one defect restored, no tagalong, no new public API, default or interaction, and no internal context. Verified.
  • Description: the whole theme-edit test directory passes. Partly verified: the 14 colon-list and clause test files (1,028 tests) pass at this head; the full directory of 569 files did not fit this review.
  • Description: a replay line reports no worse answers. Not verifiable from the repository, which holds no such harness; not relied on.
  • .changeset/experimental-theme-how-colon-subjects-eg.md: clear, with the optional tweak above.
  • .changeset/experimental-theme-how-colon-subjects-sentence.md: clear.
  • packages/cli/api/theme-edit/_how-question.mjs: clear.
  • packages/cli/api/theme-edit/theme-how-clause-subjects.test.mjs: clear.

Automated review (maintainer link)

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

Reviewed pull request #13449, 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-colon-subjects-eg branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 9e7c2d1f 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