Skip to content

experimental theme: the newer-recipe release note agrees with the kept-palette one - #13284

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
theme-m-recipe-note-agrees
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
theme-m-recipe-note-agrees

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

What users see

The next release's notes no longer contradict each other about a theme whose palette a newer CLI made. The earlier note said the whole-theme accent token is always refused, and that a named undo of a token the saved module never mapped writes this CLI's shade. The later kept-palette note says the accent token beside the accent dial saves as an exact value, and that such a token gains no value from a set and its undo. This makes the two notes agree, and says only what is true:

  • the earlier note: the accent token is refused only when no accent dial is set, and the named-undo exception is narrowed to a one-mode setting, the one case where that undo still writes this CLI's shade;
  • the later note: "gains no value from a set and its undo" now says a set for both modes, matching that one case.

Test plan

  • node scripts/check-changesets.mjs: valid.
  • Release note text, plus one test row: a named undo of a one-mode setting of a token the newer module does not map writes this CLI's shade (theme-palette-newer-recipe-opens.test.mjs), so the narrowed exception states tested behavior. No other code changes.

preflight: pass 9029b98
replay: worse 0 at 9029b98

@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 12:02pm 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, 12:05 PM 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.

Changes requested: one sentence of the release note still claims more than the code does.

  • Line 9 of .changeset/experimental-theme-palette-newer-recipe-opens.md now says every undo puts back exactly the colors the step showed, but a named undo of a setting made for one mode on a token the newer module never mapped (astryx experimental theme editor set brand --color-text-accent "#0d0e0f" --mode light, then astryx experimental theme editor undo brand --color-text-accent --mode light) still writes this CLI's palette shade where the theme showed no value, so please narrow the exception to one-mode settings instead of removing it.

The accent-token change on line 8 matches the code: beside the accent dial the token saves, and without the dial the change is refused. The kept-palette note's "gains no value from a set and its undo" has the same one-mode gap, so the same narrowing would keep the two notes in agreement.

Claims and files checked

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

  • Release note: a theme whose palette recipe this CLI doesn't know opens, and opening one not edited by hand never changes its look. Verified by the test file's opening test.
  • Release note: the saved palette and settings module are kept, show builds the same CSS as theme build, and a note names the recipe. Verified by the same test.
  • Release note: for a theme not edited by hand, changes that leave the colors alone, and their undo, keep the shades. Verified by the corners tests in the same file.
  • Release note: a change to a color dial, the vibrancy, or the accent token with no accent dial is refused, while the mode, the base and a part's colors save, and the refusal has no update step. Verified by the refusal test, and by a check that an accent token with no dial is refused.
  • Release note: a newer CLI's build of the same settings counts as current. Verified by the newer-build test.
  • Release note: undo puts back exactly what the step showed, whole-theme color tokens included. False for a named undo of a one-mode setting on a token the newer module never mapped (the finding above).
  • Release note: for every theme, a change that leaves the colors alone keeps the shades, and --only, a note or letter case don't reset them. Verified by reading the color comparison, which ignores --only and notes and compares values case-insensitively. This line is unchanged here.
  • Description: the earlier note called the accent token always refused and gave the named-undo exception. Verified against the base text.
  • Description: the later note says the accent token beside the dial saves exactly, and an unmapped token gains no value from a set and its undo. Verified as a description of that note.
  • Description: the accent token is refused only with no accent dial. Verified.
  • Description: the named-undo exception is gone because that undo no longer writes a shade. False for one-mode settings (the finding above).
  • Description: the changeset check passes. Verified: all changesets are valid.
  • Description: release-note text only, no code changes. Verified: one file changed.
  • File .changeset/experimental-theme-palette-newer-recipe-opens.md: line 8 clear; line 9 has the finding above.

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.

Approved: both release notes now say what the theme editor does, and they agree with each other.

The restored exception on line 9 of .changeset/experimental-theme-palette-newer-recipe-opens.md holds exactly for a named undo of a one-mode setting on a token the newer module never mapped, and the kept-palette note's both-mode sentence holds as written. Nothing else is needed.

Claims and files checked

Review mode: full; reason: history

  • Release note (newer recipe): a theme whose palette recipe this CLI doesn't know opens, and opening one not edited by hand never changes its look. Verified by the test file's opening test.
  • Release note (newer recipe): the saved palette and settings module are kept, show builds the same CSS as theme build, and a note names the recipe. Verified by the same test.
  • Release note (newer recipe): for a theme not edited by hand, changes that leave the colors alone, and their undo, keep the shades. Verified by the change-and-undo and one-mode accent tests.
  • Release note (newer recipe): a change to a color dial, the vibrancy, or the accent token with no accent dial is refused, naming the recipe and version with no update step, while the mode, the base and a part's colors save. Verified by the refusal test and by checks with and without the accent dial; a one-mode accent dial is itself refused, so there is no third case.
  • Release note (newer recipe): a newer CLI's build of the same settings counts as current. Verified by the newer-build test.
  • Release note (newer recipe): undo puts back exactly what the step showed, whole-theme color tokens included. Verified by the undo tests for both modes and one.
  • Release note (newer recipe): except a named undo of a one-mode setting of a token the newer module doesn't map, which writes this CLI's shade. Verified: that undo writes the palette shade for the named mode and keeps the default the other mode showed; a plain undo, or a set for both modes, is exact.
  • Release note (newer recipe): for every theme, a change that leaves the colors alone keeps the shades, and --only, a note or letter case don't reset them. Verified by reading the color comparison, which ignores --only and notes and compares case-insensitively.
  • Release note (kept palette): a theme whose palette a newer CLI made stays as saved through hand edits and undo, and its refusal says what is true. Verified by the hand-edit tests.
  • Release note (kept palette): a hand edit that leaves the whole-theme colors alone (corners, a part's color) keeps every color the module writes out, and one that changes a whole-theme color maps them this CLI's way. Verified by the corners, non-color and part-color hand-edit tests and by reading the build's hand-edit branch.
  • Release note (kept palette): a whole-theme token the palette maps comes back to its palette shade after undo, and one removed by hand takes this CLI's shade of the saved palette. Verified by the undo and removed-by-hand tests.
  • Release note (kept palette): a token the saved module never mapped gains no value from a set for both modes and its undo. Verified by the named-undo test and by plain and named undo checks that leave the module and the CSS as before.
  • Release note (kept palette): after a hand-changed color, setting the saved seed back is the way back, the refusal names it or each setting to put back, and that result compares nothing. Verified by the way-back tests.
  • Release note (kept palette): beside the accent dial a whole-theme --color-accent saves as an exact value and undoes, and without the dial it is refused. Verified by the accent-token test and the checks above.
  • Release note (kept palette): the refusal text. Verified word for word by the refusal test.
  • Description: the earlier note called the accent token always refused and gave a named-undo exception for any unmapped token. Verified against the base text.
  • Description: the later note says the accent token beside the dial saves exactly, and an unmapped token gains no value from a set and its undo. Verified against the base text.
  • Description: the accent token is refused only when no accent dial is set. Verified.
  • Description: the exception is narrowed to a one-mode setting, the one case where that undo still writes this CLI's shade. Verified.
  • Description: the later note now says a set for both modes, matching that case. Verified.
  • Description: the changeset check passes. Verified: all changesets are valid.
  • Description: release-note text only, no code changes. Verified: two release notes change.
  • Description: a one-mode setting adds no pair line to the module, so its undo takes this CLI's shade. Verified in the build code and by the one-mode checks.
  • File .changeset/experimental-theme-palette-newer-recipe-opens.md: clear.
  • File .changeset/experimental-theme-kept-palette-hand-edits.md: clear, and consistent with the other note.

Automated review (maintainer link)

…t-palette one

Beside the accent dial, a whole-theme accent token is an exact value a
kept palette saves, and a token its module never mapped gains no value
from a set for both modes and its undo; a named undo of a one-mode
setting of such a token writes this CLI's shade, and a test pins it.

@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: both release notes say what the theme editor does and agree with each other, and the new test pins the one undo they name as inexact.

The narrowed exception on line 9 of .changeset/experimental-theme-palette-newer-recipe-opens.md and the both-mode sentence on line 8 of .changeset/experimental-theme-kept-palette-hand-edits.md still hold after the rebase, and the new test passes. Nothing else is needed.

Claims and files checked

Review mode: full; reason: rebase

  • Release note (newer recipe): a theme whose palette recipe this CLI doesn't know opens, and opening one not edited by hand never changes its look. Verified by the opening test.
  • Release note (newer recipe): the saved palette and settings module are kept, show builds the same CSS as theme build, and a note names the recipe. Verified by the same test.
  • Release note (newer recipe): for a theme not edited by hand, changes that leave the colors alone, and their undo, keep the shades. Verified by the change-and-undo and one-mode accent tests.
  • Release note (newer recipe): a change to a color dial, the vibrancy, or the accent token with no accent dial is refused, naming the recipe and version with no update step, while the mode, the base and a part's colors save. Verified by the refusal test and by checks with and without the accent dial; a one-mode accent dial is itself refused.
  • Release note (newer recipe): a newer CLI's build of the same settings counts as current. Verified by the newer-build test.
  • Release note (newer recipe): undo puts back exactly what the step showed, whole-theme color tokens included. Verified by the undo tests for both modes and one.
  • Release note (newer recipe): except a named undo of a one-mode setting of a token the newer module doesn't map, which writes this CLI's shade. Verified by the new test and by checks: that undo maps the named mode from the palette and keeps the other mode as it showed; a plain undo, or a set for both modes, is exact.
  • Release note (newer recipe): for every theme, a change that leaves the colors alone keeps the shades, and --only, a note or letter case don't reset them. Verified by reading the color comparison, which ignores --only and notes and compares case-insensitively.
  • Release note (kept palette): a theme whose palette a newer CLI made stays as saved through hand edits and undo, and its refusal says what is true. Verified by the hand-edit tests.
  • Release note (kept palette): a hand edit that leaves the whole-theme colors alone (corners, a part's color) keeps every color the module writes out, and one that changes a whole-theme color maps them this CLI's way. Verified by the corners, non-color and part-color hand-edit tests and by reading the build's hand-edit branch.
  • Release note (kept palette): a whole-theme token the palette maps comes back to its palette shade after undo, and one removed by hand takes this CLI's shade of the saved palette. Verified by the undo and removed-by-hand tests.
  • Release note (kept palette): a token the saved module never mapped gains no value from a set for both modes and its undo. Verified by the named-undo test and by plain and named undo checks that leave the module and the CSS as before.
  • Release note (kept palette): after a hand-changed color, setting the saved seed back is the way back, the refusal names it or each setting to put back, and that result compares nothing. Verified by the way-back tests.
  • Release note (kept palette): beside the accent dial a whole-theme --color-accent saves as an exact value and undoes, and without the dial it is refused. Verified by the accent-token tests and the checks above.
  • Release note (kept palette): the refusal text. Verified word for word by the refusal test.
  • Description: the earlier note called the accent token always refused and gave a named-undo exception for any unmapped token. Verified against the base text.
  • Description: the later note says the accent token beside the dial saves exactly, and an unmapped token gains no value from a set and its undo. Verified against the base text.
  • Description: the accent token is refused only when no accent dial is set. Verified.
  • Description: the exception is narrowed to a one-mode setting, the one case where that undo still writes this CLI's shade. Verified.
  • Description: the later note now says a set for both modes, matching that case. Verified.
  • Description: the changeset check passes. Verified: all changesets are valid.
  • Description: one test row pins the one-mode named undo of a token the newer module does not map. Verified: the test passes and fails if that undo left the token unset.
  • Description: no other code changes. Verified: two release notes and one test change.
  • File .changeset/experimental-theme-palette-newer-recipe-opens.md: clear.
  • File .changeset/experimental-theme-kept-palette-hand-edits.md: clear, and consistent with the other note.
  • File packages/cli/api/theme-edit/theme-palette-newer-recipe-opens.test.mjs: clear; its name and comment match the note's wording.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit c4df0c0 into feature/theme-editor Nov 21, 2026
7 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…t-palette one (#13284)

Reviewed pull request #13284, 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
…t-palette one (#13284)

Reviewed pull request #13284, 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
- #13284 experimental theme: the newer-recipe release note agrees with the kept-palette one
- #13159 fix(cli): experimental theme editor - rounder corners never make the chat corners less round
- #13243 set: a text size token a part never reads goes into the one its held parts read
- #13299 experimental theme: text in a see-through region is measured over the region as drawn
- #12772 experimental theme how: a label that names the spacing or corners setting reads its value as that setting's; sans after a kind of typeface is the typeface
- #12773 experimental theme how: a contradiction holds back only its own pair; a decimal is one value; a color for the whole theme takes its role
- #13309 perf(cli): theme how makes its every-word check's patterns once per lexicon
- #13224 fix(cli): experimental theme editor - a group height narrowed off one control stays a control height show lists
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13377.

@github-actions
github-actions Bot deleted the theme-m-recipe-note-agrees branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 9029b987 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