Repository navigation
experimental theme: a text color that reaches a text input, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary - #12792
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
38f386b to
a5c6830
Compare
2b54245 to
dc5edac
Compare
a5c6830 to
14d8cdc
Compare
dc5edac to
320b167
Compare
14d8cdc to
ed25920
Compare
320b167 to
7652392
Compare
There was a problem hiding this comment.
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, onselectoror on the text area itself still writes--color-text-secondaryon.astryx-text-area, because the<textarea>carries its own target (text-area-control) and its::placeholderread passes the inner-part loop ininnerTextTokens(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::placeholdercondition there (or record own-target placeholder reads apart in the census) and add a text-area case totheme-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
colorfor 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)
| 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, | ||
| ); |
There was a problem hiding this comment.
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.
ed25920 to
e0678d0
Compare
7652392 to
0354da8
Compare
There was a problem hiding this comment.
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, onselectoror on the text area itself still writes--color-text-secondaryon.astryx-text-area, because the<textarea>carries its own target (text-area-control) and its::placeholderread passes the inner-part loop ininnerTextTokens(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::placeholdercondition there (or record own-target placeholder reads apart in the census) and add a text-area case totheme-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)
e0678d0 to
a3749ac
Compare
0354da8 to
89ab277
Compare
There was a problem hiding this comment.
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, onselectoror on the text area itself still writes--color-text-secondaryon.astryx-text-area, because the<textarea>carries its own target (text-area-control) and its::placeholderread passes the inner-part loop ininnerTextTokens(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::placeholdercondition there (or record own-target placeholder reads apart in the census) and add a text-area case totheme-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)
a3749ac to
51e8484
Compare
89ab277 to
1a84edf
Compare
There was a problem hiding this comment.
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, onselectoror on the text area itself still writes--color-text-secondaryon.astryx-text-area, because the<textarea>carries its own target (text-area-control) and its::placeholderread passes the inner-part loop ininnerTextTokens(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::placeholdercondition there (or record own-target placeholder reads apart in the census) and add a text-area case totheme-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)
1a84edf to
d5b7cab
Compare
cd6ea3a to
f90e4de
Compare
222770c to
75a5f8c
Compare
|
/approve-spec f90e4de |
There was a problem hiding this comment.
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:strictfails here with TS7006 atpackages/cli/api/theme-edit/_settings.mjs:12779, which came in with the rebased base branch (keptRecordsandkeptAsDesignednow sit betweenoneNotePerCauseand 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
insidedocumentation atpackages/cli/api/theme-edit/_parts.mjs:102and thepropsReadingcomment atpackages/cli/api/theme-edit/_compiler.mjs:1010still describe plain CSS properties, though an entry can now beplaceholder 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: clearpackages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note oninside)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)
| on: 'text-input', | ||
| only: true, | ||
| }).catch(x => x); | ||
| expect(String(e?.message ?? e)).not.toMatch(/--color-text-secondary/); |
There was a problem hiding this comment.
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.
f90e4de to
cbd6db5
Compare
75a5f8c to
38b1e43
Compare
|
/approve-spec cbd6db5 |
There was a problem hiding this comment.
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
insidedocumentation atpackages/cli/api/theme-edit/_parts.mjs:102and thepropsReadingcomment atpackages/cli/api/theme-edit/_compiler.mjs:1010still describe plain CSS properties, though an entry can now beplaceholder 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: clearpackages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note oninside)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)
38b1e43 to
a44450c
Compare
cbd6db5 to
34b785c
Compare
|
/approve-spec 34b785c |
There was a problem hiding this comment.
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
insidedocumentation atpackages/cli/api/theme-edit/_parts.mjs:102and thepropsReadingcomment atpackages/cli/api/theme-edit/_compiler.mjs:1010still describe plain CSS properties, though an entry can now beplaceholder 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: clearpackages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note oninside)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)
34b785c to
25bbfaa
Compare
a44450c to
5bbdd33
Compare
|
/approve-spec 25bbfaa |
There was a problem hiding this comment.
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
insidedocumentation atpackages/cli/api/theme-edit/_parts.mjs:102and thepropsReadingcomment atpackages/cli/api/theme-edit/_compiler.mjs:1010still describe plain CSS properties, though an entry can now beplaceholder 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: clearpackages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note oninside)packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (passes here; covers the text input only; optional assertion note)
… placeholder's secondary color, so an empty text field never reads as filled in [skip ci]
25bbfaa to
02679ec
Compare
|
/approve-spec 02679ec |
There was a problem hiding this comment.
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
insidedocumentation atpackages/cli/api/theme-edit/_parts.mjs:102and thepropsReadingcomment atpackages/cli/api/theme-edit/_compiler.mjs:1010still describe plain CSS properties, though an entry can now beplaceholder 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: clearpackages/cli/api/theme-edit/_parts.mjs: clear (optional documentation note oninside)packages/cli/api/theme-edit/theme-placeholder-stays-secondary.test.mjs: clear (covers the text input only; optional assertion note)
…ut, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary
…ut, number, date, time, date-time, typeahead or tokenizer leaves its placeholder secondary
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
::placeholderreads (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
color #000000 --on selector --mode lightwrote--color-text-secondary: #000000on every text input; the placeholder computed black.--color-text-primaryis written; the placeholder keeps the secondary color.theme-placeholder-stays-secondary.test.mjs.Scope
Components: theme editor (part census)
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)