Repository navigation
experimental theme how: the url() layer note names only the phrasing still left out - #13435
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.
Approved: the rewritten release note matches what astryx experimental theme editor how does on the theme branch. The as-typed ask, the ask without the colon, the part said after "on" and another ask after a semicolon all name url(b.png) in the "not used" line, and only a part said after the value leaves it unnamed.
Optional: for background-image: url(a.png), url(b.png) on cards, how writes neither layer and names only the first as not used, so the second sentence could say that rather than only "the second layer is still left out unnamed". CI's workflows run only for pull requests into main, so they check this note when the theme branch lands there.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim (changeset):
hownames an unwritten secondurl()layer in its "not used" line for the as-typed ask: verified by the existing url test and a probe. - Claim (changeset): with the part said after the value, the second layer is still left out unnamed: verified by a probe with a colon, without one, and with "for".
- Claim (changeset): the entry keeps its experimental tag, patch bump and credit: verified by the changeset check.
- Claim (description): the old note listed three phrasings as left out: verified against the base file.
- Claim (description): on the theme branch all three now name the second layer: verified by a probe of each phrasing.
- Claim (description): text only, no code change: verified, one changed line.
- File
.changeset/experimental-theme-how-url-layer-not-used.md: clear, with one optional wording note.
| --- | ||
|
|
||
| [experimental] `astryx experimental theme editor how` names a second `url()` layer it does not write in its "not used" line, as typed, for the ask `cards background-image: url(a.png), url(b.png)`. Other phrasings of two `url()` layers (without the colon, a part said after "on", or another ask after a semicolon) still leave the second layer out unnamed. | ||
| [experimental] `astryx experimental theme editor how` names a second `url()` layer it does not write in its "not used" line, as typed (`cards background-image: url(a.png), url(b.png)`). When the part is said after the value (`background-image: url(a.png), url(b.png) on cards`), the second layer is still left out unnamed. |
There was a problem hiding this comment.
Optional: for background-image: url(a.png), url(b.png) on cards, how writes neither layer (the answer is a lookup of what cards read) and its "not used" line names background-image: url(a.png). The sentence could say so, for example: "When the part is said after the value (background-image: url(a.png), url(b.png) on cards), neither layer is written and only the first is named as not used."
There was a problem hiding this comment.
Approved: the release note matches what astryx experimental theme editor how does on the theme branch, and the four new test rows pin each phrasing it mentions or used to list.
Optional, non-blocking:
- The still-unnamed row (
theme-how-url-file-name.test.mjs:179) fails only on the exact"url(b.png)"; matching the unquotedurl(b.png), as the row at line 140 does, keeps it failing if the reader later names the layer with the words around it. - The earlier wording note on the after-value sentence still applies: that ask writes neither layer, and the not-used line names only the first.
CI's build and test workflows run only for pull requests into main, so they check these rows when the theme branch lands there.
Claims and files checked
Review mode: incremental; reason: none
- changed rules (0): none
- Claim (changeset):
hownames an unwritten secondurl()layer in its "not used" line for the as-typed ask: verified by the existing url test row and a probe. - Claim (changeset): with the part said after the value, the second layer is still left out unnamed: verified by the new row and a probe with and without the colon.
- Claim (changeset): the entry keeps its experimental tag, patch bump and credit: verified by the changeset check.
- Claim (description): the old note listed three phrasings as left out: verified against the base file.
- Claim (description): on the theme branch all three are named, and the three named examples name
url(b.png): verified by the new rows and a probe. - Claim (description): the after-value example still leaves the second layer unnamed: verified by the new row and a probe.
- Claim (description): the note being fixed is the one the earlier url pull request added: verified, that pull request added this changeset.
- Claim (description): the test file has 20 tests, one row per phrasing, with the after-value row pinned as unnamed: verified, 20 of 20 pass.
- Claim (description): no code change: verified, only the changeset and the test file change.
- File
.changeset/experimental-theme-how-url-layer-not-used.md: clear, with the earlier optional wording note. - File
packages/cli/api/theme-edit/theme-how-url-file-name.test.mjs: clear, with one optional note on line 179.
| 'background-image: url(a.png), url(b.png) on cards', | ||
| ); | ||
| expect( | ||
| texts.some(t => /^not used/.test(t) && t.includes('"url(b.png)"')), |
There was a problem hiding this comment.
Optional: this row fails only on the exact quoted "url(b.png)". If a later reader change names the layer with the words around it ("url(b.png) on cards", say), the changeset's second sentence turns false and this row stays green. Matching the unquoted string, as the row at line 140 does, keeps it honest:
texts.some(t => /^not used/.test(t) && t.includes('url(b.png)')),- #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
The release note for naming an unwritten second
url()layer (#13298) listed three phrasings as still left out. In the theme branch all three are named; only a part said after the value still leaves the second layer unnamed.Behavior
The note names only that phrasing. Examples:
cards background url(a.png), url(b.png)(no colon),on cards background-image: url(a.png), url(b.png)(the part before the value),cards background-image: url(a.png), url(b.png); 12px radius on buttons(another ask after it);background-image: url(a.png), url(b.png) on cards(the part after the value).Fixes #13298's release note (url group).
Testing
theme-how-url-file-name.test.mjs(20 tests): one row per phrasing above, each checking whether a "not used" line names"url(b.png)"; the after-value row pins it as still unnamed. No code change.replay: worse 0 at 3581bc4
preflight: pass 3581bc4