Skip to content

fix(cli): the fields-at-3:1 note prints its exact-color command in full, with the color quoted - #13256

Merged
josephfarina merged 1 commit into
feature/theme-editorfrom
josephfarina/editor-field-edge-command-fix
Nov 21, 2026
Merged

josephfarina merged 1 commit into
feature/theme-editorfrom
josephfarina/editor-field-edge-command-fix

Conversation

@josephfarina

Copy link
Copy Markdown
Contributor

Fixes the field-edge note from #13225.

User impact

astryx experimental theme editor set <theme> --color-border <color>: when the fields' edge takes a nearer shade so it keeps 3:1, the note names the command for the exact color. That command lacked the editor's own command (astryx experimental theme editor) and left the hex unquoted, so pasted into a shell the color after # was read as a comment. It now prints astryx experimental theme editor set <theme> --color-border-emphasized '<color>', which runs as pasted.

Smallest restoration

  • packages/cli/api/theme-edit/_settings.mjs: the note builds its command from the editor's command and quotes the color.
  • packages/cli/api/theme-edit/theme-border-follows.test.mjs: the note's command is asserted in full.
  • .changeset/experimental-theme-field-edge-exact-command.md: the release note.

Evidence

  • packages/cli/api/theme-edit/theme-border-follows.test.mjs
  • The whole packages/cli/api/theme-edit suite gives the same results as its base.

Scope

Components: none (experimental theme editor only)

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

preflight: pass 8573d77
replay: worse 0 at 8573d77

…ll, with the color quoted

Fixes the field-edge note from #13225: the command lacked the editor's own command and left the hex unquoted, so a shell read the color as a comment.
@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 9:04am 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, 9:24 AM 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.

Approved: the theme editor's "fields kept at 3:1" note now prints astryx experimental theme editor set <theme> --color-border-emphasized '<color>', which runs as pasted, and the new assertion fails on the base and passes on this head.

No changes are needed. The printed command runs as pasted and saves the exact color, for a light-only theme and, with --mode light, for a two-mode theme.

Claims and files checked

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

Claims:

  • Title: the note prints its exact-color command in full, with the color quoted. Verified: packages/cli/api/theme-edit/_settings.mjs:8307.
  • Release note: the command now carries the editor's own command and a quoted color, so it runs as pasted. Verified: _settings.mjs:8307; the printed commands run as pasted and save the color.
  • Description: it fixes the note that #13225 added. Verified: that change introduced the line this one edits.
  • Description: the old command lacked the editor's command and left the hex unquoted, so a shell read the color as a comment. Verified: on the base the line prints set st --color-border-emphasized #e3e8ee, which runs the shell's own set builtin and drops #e3e8ee.
  • Description: it now prints the full editor command with the color in single quotes, which runs as pasted. Verified: the printed command runs and saves the color.
  • Description: the test asserts the note's command in full. Verified: theme-border-follows.test.mjs:71-75 fails on the base and passes on the head.
  • Description: the whole theme-edit suite gives the same results as its base. Verified by bound: the change alters one note string that no source code reads, and both test files that read it pass on the head; the full suite was not rerun.
  • Description: no component, public API, default or interaction change, and no internal context. Verified: no command, option, export or default changes.
  • Description: the author's preflight passed and the replay found nothing worse. Consistent with the tests run here; those tools were not rerun.
  • Commit message: same as the description. Verified as above.

Files:

  • .changeset/experimental-theme-field-edge-exact-command.md: clear; a patch for @astryxdesign/cli in the same [experimental] form as the editor's other release notes, and it describes what the code prints.
  • packages/cli/api/theme-edit/_settings.mjs: clear; uses the CLI's shared quoting helper and the editor's command constant.
  • packages/cli/api/theme-edit/theme-border-follows.test.mjs: clear; asserts the quoted form the helper produces on every platform.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 79483c4 into feature/theme-editor Nov 21, 2026
7 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…ll, with the color quoted (#13256)

Reviewed pull request #13256, 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
…ll, with the color quoted (#13256)

Reviewed pull request #13256, 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
…ll, with the color quoted (#13256)

Reviewed pull request #13256, 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
…ll, with the color quoted (#13256)

Reviewed pull request #13256, 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
- #13225 experimental theme: a whole-theme border color reaches the fields' edge at the nearest shade that keeps 3:1...
- #13186 fix(cli): a color said with a tint word fills with that color again
- #13091 experimental theme: a kept palette stays as saved through hand edits and undo
- #13233 fix(cli): on a one-family base, a body font set alone keeps empty-state titles on the heading font
- #13256 fix(cli): the fields-at-3:1 note prints its exact-color command in full, with the color quoted
- #13044 feat(cli): experimental theme how: readings held back from round 15
- #13241 experimental theme: a text color on an option row reaches the tokens its label and description read
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13276.

@github-actions
github-actions Bot deleted the josephfarina/editor-field-edge-command-fix branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — 8573d772 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