Skip to content

experimental theme: a text color that reaches a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary - #12792

Closed
josephfarina wants to merge 1 commit into
josephfarina/theme-a/04c-set-option-pairsfrom
josephfarina/theme-a/06-placeholder-secondary
Closed

josephfarina wants to merge 1 commit into
josephfarina/theme-a/04c-set-option-pairsfrom
josephfarina/theme-a/06-placeholder-secondary

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

User impact

An empty text field's placeholder no longer reads as a typed value after a text color reaches the field (a text, number, date, time, date-time, typeahead or tokenizer input).

Problem and solution fit

The part census recorded the color an input's ::placeholder reads (the secondary text token) as text the part shows. A text color set on the field, or on another member of its family, was then written into both text tokens, so the placeholder took the value color. The census now records a placeholder read inside a field apart, so only the value's token changes. The text area, whose control is a part of its own, follows in the next pull request.

Evidence

  • Before: color #000000 --on selector --mode light wrote --color-text-secondary: #000000 on every text input; the placeholder computed black.
  • After: only --color-text-primary is written; the placeholder keeps the secondary color.
  • Regression test: theme-placeholder-stays-secondary.test.mjs.

Scope

Components: theme editor (part census)

  • 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

The touched tests, the stack's theme-editor tests, the CLI strict typecheck and eslint, on this layer's tree.

Gate

preflight: pass 02679ec (rebased onto #13273's release-note fix, own diff unchanged by patch-id from 25bbfaa)
replay: worse 0 at 02679ec (rebased onto #13273's release-note fix, own diff unchanged by patch-id from 25bbfaa)

@vercel

vercel Bot commented Nov 19, 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 22, 2026 8:34pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 22, 2026, 8:37 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/05-rest-look-hover-focus branch from 38f386b to a5c6830 Compare November 19, 2026 02:28
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 2b54245 to dc5edac Compare November 19, 2026 02:28
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/05-rest-look-hover-focus branch from a5c6830 to 14d8cdc Compare November 19, 2026 02:29
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from dc5edac to 320b167 Compare November 19, 2026 02:29
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/05-rest-look-hover-focus branch from 14d8cdc to ed25920 Compare November 19, 2026 04:26
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 320b167 to 7652392 Compare November 19, 2026 04:26

@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 problem needs fixing first, and approval also waits on an engineering owner's decision about editor behavior that no current spec covers.

  • A text color set on inputs, on selector or on the text area itself still writes --color-text-secondary on .astryx-text-area, because the <textarea> carries its own target (text-area-control) and its ::placeholder read passes the inner-part loop in innerTextTokens (packages/cli/api/theme-edit/_settings.mjs:14972-14984), so an empty text area's placeholder still takes the value color and the changeset's promise for every text field is false: skip a ::placeholder condition there (or record own-target placeholder reads apart in the census) and add a text-area case to theme-placeholder-stays-secondary.test.mjs, or narrow the changeset, title and description to the fields it does fix.

The fix works for the text input, number, date, time, date-time, typeahead and tokenizer, and the new tests fail before the change and pass after it. No current spec says which text tokens astryx experimental theme editor set writes when a color reaches a field, so approval needs an engineering owner to provide or identify the governing spec for that behavior, recorded by commenting /approve-spec <full head SHA> on the head that carries the fix; the author may do so as an engineering owner.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: a text color on a field leaves its placeholder secondary: false for the text area; verified for the seven other inputs-family fields
  • Changeset: a text color that reaches a text field, set on it or on a family member, goes into the value's token and never the placeholder's secondary token: false for the text area (the head still writes the secondary token on it; its placeholder computes black); verified for the text input, number, date, time, date-time, typeahead and tokenizer
  • Description: an empty field's placeholder no longer reads as a typed value after a text color reaches it: true for the seven fields above, false for the text area
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the value color went into both text tokens: verified (the base census records it as color for the text input)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified (base theme output, browser probe, new tests fail on the base)
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified for the text input (head theme output; placeholder rgb(71, 71, 71))
  • Description: a regression test covers it: verified (fails on the base, passes on the head; text input only)
  • Description: the change is scoped to the theme editor's part census: verified
  • Description: public text carries no internal context: verified

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: finding (promises every text field; the text area is not covered)
  • packages/cli/api/theme-edit/_parts.mjs: finding (own-target placeholder reads are not tagged; the new comment repeats the broader claim)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (red before, green after; covers the text input only)

Automated review (maintainer link)

Comment on lines 1583 to +1589
if (!ownsTarget)
for (const k of toks) (T.inside[k] ??= new Set()).add(d.prop);
for (const k of toks)
(T.inside[k] ??= new Set()).add(
/::placeholder/.test(d.cond ?? '')
? `placeholder ${d.prop}`
: d.prop,
);

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.

This tags ::placeholder reads only for elements without a target of their own. TextArea's <textarea> carries text-area-control, so its ::placeholder color lands under that part's own color with condition ::placeholder, and the inner-part loop in innerTextTokens (_settings.mjs:14972-14984) still counts it. A color on inputs, selector or text-area keeps writing --color-text-secondary on .astryx-text-area. Skip a ::placeholder condition there (or tag own-target placeholder reads too) and add a text-area case to the test.

@josephfarina
josephfarina force-pushed the josephfarina/theme-a/05-rest-look-hover-focus branch from ed25920 to e0678d0 Compare November 21, 2026 04:16
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 7652392 to 0354da8 Compare November 21, 2026 04:16

@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: two problems need fixing first, and approval also waits on an engineering owner's decision about editor behavior that no current spec covers.

  • A text color set on inputs, on selector or on the text area itself still writes --color-text-secondary on .astryx-text-area, because the <textarea> carries its own target (text-area-control) and its ::placeholder read passes the inner-part loop in innerTextTokens (packages/cli/api/theme-edit/_settings.mjs:15420-15439), so an empty text area's placeholder still takes the value color and the changeset's promise for every text field is false: skip a ::placeholder condition there (or record own-target placeholder reads apart in the census) and add a text-area case to theme-placeholder-stays-secondary.test.mjs, or narrow the changeset, title and description to the fields it does fix.
  • Miss: the title's "a field" also covers the file input, whose placeholder (packages/core/src/FileInput/FileInput.tsx:265-279) still takes the value color under the same setting, so say "a text field" in the title, as the changeset and description already do.

The fix works for the text input, number, date, time, date-time, typeahead and tokenizer, and the new tests fail before the change and pass after it. No current spec says which text tokens astryx experimental theme editor set writes when a color reaches a field, so approval needs an engineering owner to provide or identify the governing spec for that behavior, recorded by commenting /approve-spec <full head SHA> on the head that carries the fix; the author may do so as an engineering owner.

Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: a text color on a field leaves its placeholder secondary: false for the text area and the file input; verified for the text input, number, date, time, date-time, typeahead and tokenizer
  • Changeset: a text color that reaches a text field, set on it or on a family member, goes into the value's token and never the placeholder's secondary token: false for the text area (the head still writes the secondary token on it; its placeholder computes black); verified for the seven fields above
  • Changeset: an experimental patch release note for the CLI: verified (the changeset check passes)
  • Description: an empty text field's placeholder no longer reads as a typed value after a text color reaches it: verified for the seven fields above, false for the text area
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the value color went into both text tokens: verified (the base writes the secondary token on every text input)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified (base theme output, browser probe, the new tests fail on the base)
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified for the text input (placeholder rgb(71, 71, 71))
  • Description: a regression test covers it: verified (fails on the base, passes on the head; text input only)
  • Description: the change is scoped to the theme editor's part census: verified
  • Description: public text carries no internal context: verified

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: finding (promises every text field; the text area is not covered)
  • packages/cli/api/theme-edit/_parts.mjs: finding (own-target placeholder reads are not tagged; the new comment repeats the broader claim)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (fails before, passes after; covers the text input only)

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/theme-a/05-rest-look-hover-focus branch from e0678d0 to a3749ac Compare November 21, 2026 04:45
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 0354da8 to 89ab277 Compare November 21, 2026 04:45

@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: two problems need fixing first, and approval also waits on an engineering owner's decision about editor behavior that no current spec covers.

  • A text color set on inputs, on selector or on the text area itself still writes --color-text-secondary on .astryx-text-area, because the <textarea> carries its own target (text-area-control) and its ::placeholder read passes the inner-part loop in innerTextTokens (packages/cli/api/theme-edit/_settings.mjs:15420-15439), so an empty text area's placeholder still takes the value color and the changeset's promise for every text field is false: skip a ::placeholder condition there (or record own-target placeholder reads apart in the census) and add a text-area case to theme-placeholder-stays-secondary.test.mjs, or narrow the changeset, title and description to the fields it does fix.
  • Miss: the title's "a field" also covers the file input, whose placeholder (packages/core/src/FileInput/FileInput.tsx:265-279) still takes the value color under the same setting, so say "a text field" in the title, as the changeset and description already do.

The fix works for the text input, number, date, time, date-time, typeahead and tokenizer, and the new tests fail before the change and pass after it. No current spec says which text tokens astryx experimental theme editor set writes when a color reaches a field, so approval needs an engineering owner to provide or identify the governing spec for that behavior, recorded by commenting /approve-spec <full head SHA> on the head that carries the fix; the author may do so as an engineering owner.

Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Title: a text color on a field leaves its placeholder secondary: false for the text area and the file input; verified for the text input, number, date, time, date-time, typeahead and tokenizer
  • Changeset: a text color that reaches a text field, set on it or on a family member, goes into the value's token and never the placeholder's secondary token: false for the text area (the head still writes the secondary token on it; its placeholder computes black); verified for the seven fields above
  • Changeset: an experimental patch release note for the CLI: verified (the changeset check passes)
  • Description: an empty text field's placeholder no longer reads as a typed value after a text color reaches it: verified for the seven fields above, false for the text area
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the value color went into both text tokens: verified (the base writes the secondary token on every text input)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified (base theme output, browser probe, the new tests fail on the base)
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified for the text input (placeholder rgb(71, 71, 71))
  • Description: a regression test covers it: verified (fails on the base, passes on the head; text input only)
  • Description: the change is scoped to the theme editor's part census: verified
  • Description: public text carries no internal context: verified

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: finding (promises every text field; the text area is not covered)
  • packages/cli/api/theme-edit/_parts.mjs: finding (own-target placeholder reads are not tagged; the new comment repeats the broader claim)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (fails before, passes after; covers the text input only)

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/theme-a/05-rest-look-hover-focus branch from a3749ac to 51e8484 Compare November 21, 2026 05:44
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 89ab277 to 1a84edf Compare November 21, 2026 05:44
@josephfarina
josephfarina changed the base branch from josephfarina/theme-a/05-rest-look-hover-focus to josephfarina/theme-a/05c-rest-outline-focus November 21, 2026 05:44

@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: two problems need fixing first, and approval also waits on an engineering owner's decision about editor behavior that no current spec covers.

  • A text color set on inputs, on selector or on the text area itself still writes --color-text-secondary on .astryx-text-area, because the <textarea> carries its own target (text-area-control) and its ::placeholder read passes the inner-part loop in innerTextTokens (packages/cli/api/theme-edit/_settings.mjs:15420-15439), so an empty text area's placeholder still takes the value color and the changeset's promise for every text field is false: skip a ::placeholder condition there (or record own-target placeholder reads apart in the census) and add a text-area case to theme-placeholder-stays-secondary.test.mjs, or narrow the changeset, title and description to the fields it does fix.
  • Miss: the title's "a field" also covers the file input, whose placeholder (packages/core/src/FileInput/FileInput.tsx:265-279) still takes the value color under the same setting, so say "a text field" in the title, as the changeset and description already do.

The fix works for the text input, number, date, time, date-time, typeahead and tokenizer, and the new tests fail before the change and pass after it. No current spec says which text tokens astryx experimental theme editor set writes when a color reaches a field, so approval needs an engineering owner to provide or identify the governing spec for that behavior, recorded by commenting /approve-spec <full head SHA> on the head that carries the fix; the author may do so as an engineering owner.

Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Title: a text color on a field leaves its placeholder secondary: false for the text area and the file input; verified for the text input, number, date, time, date-time, typeahead and tokenizer
  • Changeset: a text color that reaches a text field, set on it or on a family member, goes into the value's token and never the placeholder's secondary token: false for the text area (the head still writes the secondary token on it; its placeholder computes black); verified for the seven fields above
  • Changeset: an experimental patch release note for the CLI: verified (the changeset check passes)
  • Description: an empty text field's placeholder no longer reads as a typed value after a text color reaches it: verified for the seven fields above, false for the text area
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the value color went into both text tokens: verified (the base writes the secondary token on every text input)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified (base theme output, browser probe, the new tests fail on the base)
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified for the text input (placeholder rgb(71, 71, 71))
  • Description: a regression test covers it: verified (fails on the base, passes on the head; text input only)
  • Description: the change is scoped to the theme editor's part census: verified
  • Description: public text carries no internal context: verified

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: finding (promises every text field; the text area is not covered)
  • packages/cli/api/theme-edit/_parts.mjs: finding (own-target placeholder reads are not tagged; the new comment repeats the broader claim)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (fails before, passes after; covers the text input only)

Automated review (maintainer link)

@josephfarina josephfarina changed the title experimental theme: a text color on a field leaves its placeholder secondary experimental theme: a text color that reaches a text field leaves its placeholder's secondary color, so an empty text field never reads as filled in Nov 21, 2026
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 1a84edf to d5b7cab Compare November 21, 2026 10:02
@josephfarina
josephfarina changed the base branch from josephfarina/theme-a/05c-rest-outline-focus to josephfarina/theme-a/04c-set-option-pairs November 21, 2026 10:02
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from cd6ea3a to f90e4de Compare November 22, 2026 15:22
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/04c-set-option-pairs branch from 222770c to 75a5f8c Compare November 22, 2026 15:22
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec f90e4de

@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 claim in the description needs fixing. The editor change itself is approved by an engineering owner for this head and works for the seven fields the title names.

  • Regression: the Gate line reports a preflight pass for this head, but pnpm -F @astryxdesign/cli typecheck:strict fails here with TS7006 at packages/cli/api/theme-edit/_settings.mjs:12779, which came in with the rebased base branch (keptRecords and keptAsDesigned now sit between oneNotePerCause and its JSDoc); restore that JSDoc in the layer that adds them and rerun preflight here, or say in the Gate line that preflight was not re-run at this head.

The new tests fail on the base and pass on this head, and the generated theme loses --color-text-secondary on exactly those seven fields. CI's test and typecheck workflows run only on pull requests into main, so they have not run on this head.

  • Optional: the inside documentation at packages/cli/api/theme-edit/_parts.mjs:102 and the propsReading comment at packages/cli/api/theme-edit/_compiler.mjs:1010 still describe plain CSS properties, though an entry can now be placeholder color.
  • Optional: the second test case passes even when the set is accepted; assert the refusal and cover all seven fields.
Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: a text color reaching a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary: verified (the generated theme changes for exactly those fields; the new test fails on the base and passes here)
  • Changeset: an experimental patch release note for the CLI that names the editor: verified
  • Changeset: such a color, set on the field or on another member of its family, goes into the value's token and never the placeholder's secondary token: verified (a family color writes only the primary token on all seven; the date-time input accepts a direct color and writes only that token; the other six refuse a direct color as before, and the refusal now names only the primary token)
  • Description: an empty field's placeholder no longer reads as a typed value after a text color reaches one of those fields: verified (rgb(71, 71, 71) instead of the value color)
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the color went into both text tokens: verified
  • Description: the placeholder read is now recorded apart, so only the value's token changes: verified (packages/cli/api/theme-edit/_parts.mjs:1618-1627)
  • Description: the text area follows in the next pull request: verified (both tokens are still written there)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified
  • Description: a regression test covers it: verified (both cases fail on the base and pass here; text input only)
  • Description: one defect is restored, in the theme editor's census, with no new public API, visual representation, default or interaction model: verified
  • Description: public text carries no internal context: verified
  • Description: the touched tests, the theme-editor tests, the CLI strict typecheck and eslint were run on this layer's tree: the touched test, 86 related theme-editor test files and eslint pass here; the CLI strict typecheck fails here on the base-branch error above
  • Description: preflight passes at this head: false (its typecheck step fails on the same error)
  • Description: replay shows nothing worse at this head: not re-run
  • Description: the pull request's own diff is unchanged from the earlier head: verified (identical diff)

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note on inside)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (fails on the base, passes here; covers the text input only; optional assertion note)

Automated review (maintainer link)

on: 'text-input',
only: true,
}).catch(x => x);
expect(String(e?.message ?? e)).not.toMatch(/--color-text-secondary/);

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.

Optional: this case also passes when the set is accepted, since String(e?.message ?? e) is then [object Object]. Assert that the call was refused and that the refusal offers --color-text-primary, and cover the number, date, time, date-time, typeahead and tokenizer fields too, so the scope the title names stays pinned.

@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from f90e4de to cbd6db5 Compare November 22, 2026 15:50
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/04c-set-option-pairs branch from 75a5f8c to 38b1e43 Compare November 22, 2026 15:50
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec cbd6db5

@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: the test and typecheck workflows run only on pull requests into main, so they have not run on this head. An engineering owner approved the editor behavior for this head, and it works for the seven fields the title names; the strict typecheck error that made the Gate line false is gone now that the rebased base branch restores the JSDoc on oneNotePerCause.

  • Optional: the inside documentation at packages/cli/api/theme-edit/_parts.mjs:102 and the propsReading comment at packages/cli/api/theme-edit/_compiler.mjs:1010 still describe plain CSS properties, though an entry can now be placeholder color.
  • Optional: the second test case passes even when the set is accepted; assert the refusal and cover all seven fields.
Claims and files checked

Review mode: full; reason: other:carry-forward would keep a fixed finding

Claims:

  • Title: a text color reaching a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary: verified (the generated theme changes for exactly those fields; the new test fails on the base and passes here)
  • Changeset: an experimental patch release note for the CLI that names the editor: verified
  • Changeset: such a color, set on the field or on another member of its family, goes into the value's token and never the placeholder's secondary token: verified (a family color writes only the primary token on all seven; a direct color on the text input is refused as before, and the refusal now names only the primary token)
  • Description: an empty field's placeholder no longer reads as a typed value after a text color reaches one of those fields: verified (rgb(71, 71, 71) instead of the value color)
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the color went into both text tokens: verified
  • Description: the placeholder read is now recorded apart, so only the value's token changes: verified (packages/cli/api/theme-edit/_parts.mjs:1618-1627)
  • Description: the text area follows in the next pull request: verified (both tokens are still written there)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified
  • Description: a regression test covers it: verified (both cases fail on the base and pass here; text input only)
  • Description: one defect is restored, in the theme editor's census, with no new public API, visual representation, default or interaction model: verified
  • Description: public text carries no internal context: verified
  • Description: the touched tests, the theme-editor tests, the CLI strict typecheck and eslint were run on this layer's tree: verified (the touched test, 86 related theme-editor test files and eslint pass here; the strict typecheck reports only the two missing theme build outputs)
  • Description: preflight passes at this head: consistent (its typecheck step's only errors here are missing build outputs it reports as skipped; the full preflight was not re-run)
  • Description: replay shows nothing worse at this head: not checkable (the repository has no replay tool)
  • Description: the pull request's own diff is unchanged from the earlier head: verified (identical diff)

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note on inside)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (fails on the base, passes here; covers the text input only; optional assertion note)

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/theme-a/04c-set-option-pairs branch from 38b1e43 to a44450c Compare November 22, 2026 16:29
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from cbd6db5 to 34b785c Compare November 22, 2026 16:29
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 34b785c

@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: the test, typecheck and lint workflows run only on pull requests into main, so they have not run on this head. An engineering owner approved the editor behavior for this head, and it works for the seven fields the title names: the new test fails without the change and passes with it.

  • Optional: the inside documentation at packages/cli/api/theme-edit/_parts.mjs:102 and the propsReading comment at packages/cli/api/theme-edit/_compiler.mjs:1010 still describe plain CSS properties, though an entry can now be placeholder color.
  • Optional: the second test case passes even when the set is accepted; assert the refusal and cover all seven fields.
Claims and files checked

Review mode: full; reason: rebase

Claims:

  • Title: a text color reaching a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary: verified (the generated theme changes for exactly those seven fields; the new test fails without the change and passes here)
  • Changeset: an experimental patch release note for the CLI that names the editor: verified
  • Changeset: such a color, set on the field or on another member of its family, goes into the value's token and never the placeholder's secondary token: verified (a family color writes only the primary token on all seven; a direct color on the text input is refused as before, and the refusal now names only the primary token)
  • Description: an empty field's placeholder no longer reads as a typed value after a text color reaches one of those fields: verified (in the browser the text and number input placeholders show the secondary color instead of the value color)
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the color went into both text tokens: verified
  • Description: the placeholder read is now recorded apart, so only the value's token changes: verified (packages/cli/api/theme-edit/_parts.mjs:1649-1655)
  • Description: the text area follows in the next pull request: verified (both tokens are still written there)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified
  • Description: a regression test covers it: verified (both cases fail without the change and pass here; text input only)
  • Description: one defect is restored, in the theme editor's census, with no new public API, visual representation, default or interaction model: verified
  • Description: public text carries no internal context: verified
  • Description: the touched tests, the theme-editor tests, the CLI strict typecheck and eslint were run on this layer's tree: verified (the touched test, 86 related theme-editor test files and eslint pass here; the strict typecheck reports only two missing theme build outputs)
  • Description: preflight passes at this head: consistent (its typecheck step's only errors here are missing build outputs it reports as skipped; the full preflight was not re-run)
  • Description: replay shows nothing worse at this head: not checkable (the repository has no replay tool)
  • Description: the branch was rebased onto main and the pull request's own diff is unchanged: verified (same patch identity as the earlier head)

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note on inside)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (fails without the change, passes here; covers the text input only; optional assertion note)

Automated review (maintainer link)

@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 34b785c to 25bbfaa Compare November 22, 2026 18:08
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/04c-set-option-pairs branch from a44450c to 5bbdd33 Compare November 22, 2026 18:08
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 25bbfaa

@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: the test, typecheck and lint workflows run only on pull requests into main, so they have not run on this head. The rebase leaves this pull request's own change exactly as it was, an engineering owner approved the editor behavior for this head, and it works for the seven fields the title names: the new test fails without the change and passes with it.

  • Optional: the inside documentation at packages/cli/api/theme-edit/_parts.mjs:102 and the propsReading comment at packages/cli/api/theme-edit/_compiler.mjs:1010 still describe plain CSS properties, though an entry can now be placeholder color.
  • Optional: the second test case passes even when the set is accepted; assert the refusal and cover all seven fields.
Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Title: a text color reaching a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary: verified (the generated theme changes for exactly those seven fields; the new test fails without the change and passes here)
  • Changeset: an experimental patch release note for the CLI that names the editor: verified
  • Changeset: such a color, set on the field or on another member of its family, goes into the value's token and never the placeholder's secondary token: verified (a family color writes only the primary token on all seven; a direct color on the text input is refused as before, and the refusal now names only the primary token)
  • Description: an empty field's placeholder no longer reads as a typed value after a text color reaches one of those fields: verified (in the browser the text and number input placeholders show the secondary color instead of the value color)
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the color went into both text tokens: verified
  • Description: the placeholder read is now recorded apart, so only the value's token changes: verified (packages/cli/api/theme-edit/_parts.mjs:1649-1655)
  • Description: the text area follows in the next pull request: verified (both tokens are still written there)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified
  • Description: a regression test covers it: verified (both cases fail without the change and pass here; text input only)
  • Description: one defect is restored, in the theme editor's census, with no new public API, visual representation, default or interaction model: verified
  • Description: public text carries no internal context: verified
  • Description: the touched tests, the theme-editor tests, the CLI strict typecheck and eslint were run on this layer's tree: verified (the touched test and eslint pass here and the strict typecheck reports only two missing theme build outputs; the wider theme-editor tests passed on the same change before the rebase)
  • Description: preflight passes at this head: consistent (its typecheck step's only errors here are missing build outputs it reports as skipped; the full preflight was not re-run)
  • Description: replay shows nothing worse at this head: not checkable (the repository has no replay tool)
  • Description: the branch was rebased onto the earlier fix below it and the pull request's own diff is unchanged: verified (the base gained only that fix, and the change is byte-for-byte the one reviewed before)

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note on inside)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (passes here; covers the text input only; optional assertion note)

Automated review (maintainer link)

… placeholder's secondary color, so an empty text field never reads as filled in

[skip ci]
@josephfarina
josephfarina force-pushed the josephfarina/theme-a/06-placeholder-secondary branch from 25bbfaa to 02679ec Compare November 22, 2026 20:24
@josephfarina

Copy link
Copy Markdown
Contributor Author

/approve-spec 02679ec

@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: the test, typecheck and lint workflows run only on pull requests into main, so they have not run on this head. The rebase onto the release-note fix below leaves this pull request's own change exactly as it was, an engineering owner approved the editor behavior for this head, and it works for the seven fields the title names: the new test fails without the change and passes with it.

  • Optional: the inside documentation at packages/cli/api/theme-edit/_parts.mjs:102 and the propsReading comment at packages/cli/api/theme-edit/_compiler.mjs:1010 still describe plain CSS properties, though an entry can now be placeholder color.
  • Optional: the second test case passes even when the set is accepted; assert the refusal and cover all seven fields.
Claims and files checked

Review mode: carry-forward; reason: none

Claims:

  • Title: a text color reaching a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary: verified (the generated theme changes for exactly those seven fields; the new test fails without the change and passes here)
  • Changeset: an experimental patch release note for the CLI that names the editor: verified
  • Changeset: such a color, set on the field or on another member of its family, goes into the value's token and never the placeholder's secondary token: verified (a family color writes only the primary token on all seven; a direct color on the text input is refused as before, and the refusal now names only the primary token)
  • Description: an empty field's placeholder no longer reads as a typed value after a text color reaches one of those fields: verified (in the browser the text and number input placeholders show the secondary color instead of the value color)
  • Description: the census recorded the placeholder's secondary read as text the part shows, so the color went into both text tokens: verified
  • Description: the placeholder read is now recorded apart, so only the value's token changes: verified (packages/cli/api/theme-edit/_parts.mjs:1649-1655)
  • Description: the text area follows in the next pull request: verified (both tokens are still written there)
  • Description: before, a black text color on the selector in light mode wrote the secondary token on every text input and the placeholder computed black: verified
  • Description: after, only the primary text token is written and the placeholder keeps the secondary color: verified
  • Description: a regression test covers it: verified (both cases fail without the change and pass here; text input only)
  • Description: one defect is restored, in the theme editor's census, with no new public API, visual representation, default or interaction model: verified
  • Description: public text carries no internal context: verified
  • Description: the touched tests, the theme-editor tests, the CLI strict typecheck and eslint were run on this layer's tree: verified (the tree matches the one checked before apart from another pull request's release note; there the touched test and eslint passed and the strict typecheck reported only two missing theme build outputs)
  • Description: preflight passes at this head: consistent (its typecheck step's only errors on this tree are missing build outputs it reports as skipped; the full preflight was not re-run)
  • Description: replay shows nothing worse at this head: not checkable (the repository has no replay tool)
  • Description: the branch was rebased onto the release-note fix below it and the pull request's own diff is unchanged: verified (the base gained only a one-line edit to that pull request's release note, and the change is byte-for-byte the one reviewed before)

Files:

  • .changeset/experimental-theme-placeholder-stays-secondary.md: clear
  • packages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note on inside)
  • packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (covers the text input only; optional assertion note)

Automated review (maintainer link)

josephfarina added a commit that referenced this pull request Nov 22, 2026
…ut, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary
josephfarina added a commit that referenced this pull request Nov 22, 2026
…ut, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary
@github-actions
github-actions Bot deleted the josephfarina/theme-a/06-placeholder-secondary branch November 23, 2026 06:06

This branch was successfully deployed

1 active deployment
Preview — 02679ec4 Deployed Nov 22, 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