Repository navigation
experimental theme how: a file's path changes no other ask inside the question reader - #13317
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Approval waits on an engineering owner's decision, and one fix is needed.
No current spec record covers how astryx experimental theme editor how reads an ask, so an engineering owner needs to identify the governing record, or decide that a file named in url() is set aside before the question reader's whole-ask readers so that a word of its path does not change how another ask in the same line is answered. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so, being an engineering owner.
Blocking:
- The changeset says the file is set aside "before any reader of the whole ask reads it", but
answer()inpackages/cli/api/theme-edit/_how.mjsstill reads the raw ask first (toolAnswerat line 592 andcolorBlindPiecesat line 605), somenus opacity 0.9, cards background-image: url(/img/rename.png)still answers only "no command renames a theme": scope the note and title to the question reader, or move the set-aside to the top ofanswer().
Claims and files checked
Review mode: full; reason: no-earlier-review
- Changeset: a file in
url()is set aside before any reader of the whole ask. False: the command's own checks in_how.mjsread the raw ask first (the blocking finding). - Changeset and title: a word of the path changes no other ask. False in general: a path word
renamedrops both asks andcolorblindadds the color-blind answer, on the base and the head alike; true inside the question reader. - Changeset and description: "frosted" no longer turns the menus' opacity into a fill alpha. Verified: on the base the menus get a fill at 0.9 alpha, and on the head they get
opacity 0.9, as when asked alone. - Changeset: a patch release note for the CLI. Verified: no command, option or export changes.
- Description: every answer still writes the file back as typed. Verified by the twelve as-typed tests and by the restore pass at the end of
draftAnswer. - Description: the "not used" line still names an unwritten layer as typed. Verified by its test.
- Description: the test file has 16 tests; the new one fails on the layer below and the other 15 pass on both. Verified.
- Description: this pull request sits on the unwritten-layer note, the follow-up ask fix and #13283. Verified from the branch history.
.changeset/experimental-theme-how-url-whole-ask.md: the blocking finding.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear.
55d2818 to
1b7f6b4
Compare
c20d109 to
cb48bad
Compare
1b7f6b4 to
790dcb9
Compare
There was a problem hiding this comment.
Approval waits on an engineering owner's decision; no other fix is needed.
No current spec record covers how astryx experimental theme editor how reads an ask, so an engineering owner needs to identify the governing record, or decide that a file named in url() is set aside before the question reader's whole-ask readers, so that a word of its path does not change how another ask in the same line is answered there. An engineering owner records that decision by commenting /approve-spec <full head SHA> on this pull request; the author may do so, being an engineering owner.
The release note now matches the change: it limits the fix to the question reader and names the checks that still read the raw ask.
Claims and files checked
Review mode: full; reason: rebase
- Title and changeset: inside the question reader, a word of a
url()path changes no other ask. Verified: the question reader copies the whole ask after the set-aside, and every reader of that copy sees the placeholder. - Changeset and description: "frosted" no longer turns the menus' opacity into a fill alpha. Verified: on the base the menus get a fill at 0.9 alpha; on the head they get
opacity 0.9, as when asked alone. - Changeset and description: the checks that run before the question reader, such as the color-blind one, still read the raw ask. Verified: the tool and color-blind checks in
_how.mjsread the raw ask first. - Changeset: a patch release note for the CLI. Verified: no command, option or export changes.
- Description: every answer still writes the file back as typed. Verified by the as-typed tests and the restore pass at the end of the question reader.
- Description: the "not used" line still names an unwritten layer as typed. Verified by its test and a probe.
- Description: the test file has 16 tests; the new one fails on the layer below and the other 15 pass on both. Verified.
- Description: this pull request is the top of a four-pull-request
url()stack. Verified from the branch history: each lower head is an ancestor of this head. .changeset/experimental-theme-how-url-whole-ask.md: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear.
790dcb9 to
6eb7b57
Compare
cb48bad to
019e2ac
Compare
|
/approve-spec 6eb7b57 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
CI runs only for pull requests into main or a release branch, and this one targets the branch of the pull request below it, so CI has not run here. An engineering owner's /approve-spec settles how how reads an ask, and the new test and the release note match the change; no fix is needed.
Claims and files checked
Review mode: same-head; reason: none
- Title: inside the question reader, a word of a file's path changes no other ask. Verified: the whole-ask copies are taken after the
url()set-aside (_how-question.mjs:5032-5041). - Release note: the file is set aside before the question reader's whole-ask readers take their copy. Verified at the same lines.
- Release note and description: "frosted" no longer turns the menus' opacity into a fill alpha. Verified: the new test fails on the base and passes on the head; the base gives the menus a 0.9 fill alpha, the head
opacity 0.9. - Release note and description: the checks before the question reader, such as the color-blind one, still read the raw ask. Verified:
_how.mjs:592and:605read it beforedraftAnswerat:754. - Release note: a patch note for the CLI. Verified: no command, option or export changes.
- Description: every answer still writes the file back as typed. Verified: the restore pass at
_how-question.mjs:32897-32903and the file's as-typed tests. - Description: the "not used" line still names an unwritten layer as typed. Verified: its test passes and the head answers
not used: "url(b.png)". - Description: the test file has 16 tests; the new one fails on the layer below and the other 15 pass on both. Verified.
- Description: top of a four-pull-request chain, rebased onto a change to the lower pull request's release note only. Verified: each lower head is an ancestor of this head, the base moved only that release note, and this pull request's own patch is unchanged.
- Description: the author's own replay and preflight run report. Not relied on; the tests were run on this head instead.
.changeset/experimental-theme-how-url-whole-ask.md: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear.
|
Taken out of landing #13377 together with the rest of its group (#13283, #13297, #13298, #13317), which lands as one. The review of the combined head flagged the url() handling (asTyped drops a second url() layer) and the two url release notes. The group stays on the working branch and rides again once a fix pull request that names these enters the branch. |
- #13196 how: every part named before a colon is a subject of the list - #13283 experimental theme how: a file named in url() is a value, written as typed - #13297 experimental theme how: a file in a follow-up ask is written as typed - #13298 experimental theme how: a second url() layer left unwritten is named as not used - #13317 experimental theme how: a file's path changes no other ask inside the question reader - #13251 set: a text size said of a title piece goes on its holder's main text - #13374 experimental theme how: a label after an earlier part's sentence still sets its setting - #13396 experimental theme how: a heading's label run reads two-word and hyphenated labels; a short sentence is no heading - #13263 how: in asks like "Header: navy. Cards: …, gray header." another sentence's part stays an item - #13378 fix(cli): a radius named for one corner writes that corner only - #13389 experimental theme how: the url() note no longer lists the follow-up ask as uncovered - #13435 experimental theme how: the url() layer note names only the phrasing still left out - #13449 how: a colon-list item is read in the sentence that holds it as typed
|
Landed on main in #13412. |
User impact
With the url() reading underneath, a word of a file's path still reached the readers that hold the whole ask: in "menus opacity 0.9, cards background-image: url(/img/frosted.png)", "frosted" turned the menus' opacity into a fill alpha.
Behavior
Each
url(...)is set aside before the question reader's whole-ask readers take their copy of the words, so no reader inside the question reader sees a word of its path (the checks that run before it, such as the color-blind one, still read the raw ask); every answer still writes the file back as typed, and the "not used" line still names a layer left unwritten as typed.Stack
Stack: #13283 → #13297 → #13298 → #13317
Top of the url() stack: on the unwritten-layer note, on the follow-up ask fix, on #13283; the stack enters together.
Testing
theme-how-url-file-name.test.mjs(16 tests): the menus opacity is answered as when asked alone, with no fill line on menus and the file written as typed (fails on the layer below); the other 15 rows pass on both.replay: worse 0 at 6eb7b57
preflight: pass 6eb7b57 (CI half pass at 790dcb9, rebased onto a changeset-only change since)