Repository navigation
experimental theme pictures: the pages section draws the sample app whole, cut between pages and named - #13199
Conversation
… tall one with the others A family picture taller than about 1600px is cut into sheet-<family>-1.png, -2 and so on, but a change removed only uncut pictures, so the cut ones kept showing the theme as it was. A change now removes them with the others, and a cut picture the running command takes again is kept.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
PR Analysis Report
Generated by PR Enrichment workflow | View current CI run |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The pages section now draws the sample app whole, and a --section pages --png run on a neutral theme writes three pictures, one page each, that the look line names; on the base the same run cut the app at 360px and wrote one 2,759px picture. The new test fails on the base and passes here. Nothing blocks.
Claims and files checked
Review mode: full; reason: no-earlier-review
- Claim (changeset): the pages section draws the sample app whole. Verified: about 990px tall on this head against a 360px shell on the base, in real pictures.
- Claim (changeset): a tall pages picture is cut between pages into numbered pictures. Verified: three pieces of 1340, 1006 and 1001px, each holding one page.
- Claim (changeset): the pages pictures are named among the pictures to open. Verified in the run's look line and in
theme-sheet-pages-pictures.test.mjs. - Claim: every app shell on the pages section was capped at 360px by a rule meant for sheet cells. Verified: the base rule
.cs-item .astryx-app-shellmatched the.cs-pagesitems. - Claim: the pages picture was one tall image and the look line did not name it. Verified on the base run.
- Claim: the cap now holds on the sheet only. Verified in
_catalog.mjs:752. - Claim: the pages picture is cut at about 1600px, as a family's already is, and the look line names every piece. Verified in
_edit.mjs:8403and_context.mjs:1378. - Claim: the
--pnghelp says so. Verified inexperimental-theme-editor-show.doc.mjs. - Claim: an app shell on the sheet is still capped at 360px. Verified: the scoped selector, pinned in
theme-sheet-cells-b.test.mjs. - Claim: the new test checks the scoped cap, that no unscoped cap returns, and the look line. Verified: both cases fail on the base and pass here.
- Claim: no new public API, default or interaction model. Verified: no export, option or signature changes.
- Claim: the two named test files pass, 7 tests. Verified.
- File
.changeset/experimental-theme-sheet-pages-whole.md: clear. - File
packages/cli/api/theme-edit/_catalog.mjs: clear. - File
packages/cli/api/theme-edit/_context.mjs: clear. - File
packages/cli/api/theme-edit/_edit.mjs: clear. - File
packages/cli/api/theme-edit/theme-sheet-cells-b.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-sheet-pages-pictures.test.mjs: clear. - File
packages/cli/clients/cli/commands/experimental-theme-editor-show.doc.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
…he cut pictures too A change keeps a copy of the pictures it may remove and puts them back when its build fails; the copy matched uncut pictures only, so a cut one (sheet-inputs-2.png) removed by the failed build stayed gone.
…hole, is cut between pages and named in the look line The sheet capped every app shell at 360px so a sheet cell shows its frame; the pages section, which shows the sample app and each page template, was capped too and drew the app cut. The cap now holds on the sheet only. A tall pages picture is cut between pages into pictures of about 1600px (sheet-pages-1.png, -2 ...), as a family's is, and the line that says which pictures to open names them. The show command's --png help says so.
… pictures, and the look's description names them The pages pictures are now cut into sheet-pages-1.png, -2 and so on; a change removes those pieces and names them with show --png --section pages to take them again, as it does a family's. The result's look field describes the pages pictures too.
c68a9b8 to
bfce804
Compare
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The pages section now draws the sample app whole, and a --section pages --png run on a neutral theme writes three pictures, one page each, that the look line names; on the base the same run cut the app at 360px and wrote one 2,759px picture. The new test's two pages cases fail on the base and pass here, and its removal case relies on #13200 below it. Nothing blocks, and this pull request lands after #13200.
Claims and files checked
Review mode: full; reason: rebase
- Claim (changeset): the pages section draws the sample app whole. Verified: the whole app in a cell about 990px tall on this head against a 360px shell on the base, in real pictures.
- Claim (changeset): a tall pages picture is cut between pages into numbered pictures. Verified: three pieces of 1340, 1006 and 1001px, each holding one page, plus the dark pieces.
- Claim (changeset): the pages pictures are named among the pictures to open. Verified in the run's look line and in
theme-sheet-pages-pictures.test.mjs. - Claim: every app shell on the pages section was capped at 360px by a rule meant for sheet cells. Verified: the base rule
.cs-item .astryx-app-shellmatched the pages items. - Claim: the pages picture was one tall image and the look line did not name it. Verified on the base run.
- Claim: the cap now holds on the sheet only. Verified in
_catalog.mjs:752. - Claim: the pages picture is cut at about 1600px, as a family's already is, and the look line names every piece. Verified in
_edit.mjs:8406and_context.mjs:1376-1389. - Claim: the
--pnghelp says so. Verified inexperimental-theme-editor-show.doc.mjs:35. - Claim: an app shell on the sheet is still capped at 360px. Verified: the scoped selector, pinned in
theme-sheet-cells-b.test.mjs. - Claim: the new test checks the scoped cap, that no unscoped cap returns, the look line, and that a change removes the cut pages pictures and offers the pages show to take them again. Verified: the first two cases fail on the base and all three pass here.
- Claim: the cells test now pins the scoped rule. Verified.
- Claim: the result's look field describes the pages pictures. Verified in
theme-edit.type.mjs:163. - Claim: no new public API, default or interaction model, and no internal context in public text. Verified: no export, option or signature changes, and no internal reference in the added lines.
- Claim: the two named test files pass, 8 tests. Verified.
- Claim: this pull request depends on #13200 and sits on its branch. Verified: the removal case passes only with that base's removal of cut pictures.
- File
.changeset/experimental-theme-sheet-pages-whole.md: clear. - File
packages/cli/api/theme-edit/_catalog.mjs: clear. - File
packages/cli/api/theme-edit/_context.mjs: clear. - File
packages/cli/api/theme-edit/_edit.mjs: clear. - File
packages/cli/api/theme-edit/theme-edit.type.mjs: clear. - File
packages/cli/api/theme-edit/theme-sheet-cells-b.test.mjs: clear. - File
packages/cli/api/theme-edit/theme-sheet-pages-pictures.test.mjs: clear. - File
packages/cli/clients/cli/commands/experimental-theme-editor-show.doc.mjs: clear. - File
scripts/vitest-node-durations.json: clear.
- #12787 experimental theme: a pressed or hovered part's flat tint is measured as the fill it is - #13252 experimental theme: a one-color layer is a fill only where it covers the whole box - #13300 experimental theme: a fill and its on-color set inside a part are measured as that part draws them - #13321 experimental theme: a part's fill pair is measured though its on-color is set for the whole theme - #13360 experimental theme: an on-color set on a part holding the readers leaves the fill pair out - #12768 feat(cli): experimental theme editor show <theme> --on <part> gives what one part of a theme shows - #13057 experimental theme pictures: sheet cells are never narrower than what they hold, and a panel over the page is drawn at its cell's full width - #13200 experimental theme pictures: a change removes the pictures cut from a tall one - #13199 experimental theme pictures: the pages section draws the sample app whole, cut between pages and named - #13320 fix(cli): corners said before their edge run after it, so the whole answer does both - #13375 experimental theme how: a clashing fill's text color goes in that fill's choice - #13411 experimental theme how: a clash with a see-through fill joins its text too; another look's text leaves it joined - #13420 fix(cli): experimental theme editor - glossy writes no sample gradient - #13452 test(cli): the said-order test reads a named corner as that corner - #13262 fix(cli): experimental theme editor - an ask that starts with clear the and names only removable looks takes them away - #13450 fix(cli): experimental theme editor - a bar's text token is checked in the menus its items open - #13442 feat(cli): a light neutral also fills the page, surface and card backgrounds in light mode - #13477 docs(changeset): the clear reading takes looks away for one part
|
Landed on main in #13470. |
Depends on #13200 (a change removes cut pictures): this PR's base is that branch, and it moves to
mainonce #13200 lands.User impact
astryx experimental theme editor show --section pages --pngpictures the sample app and each page template. Each app shell on that page was capped at 360px, a cap meant for sheet cells, so the sample app was drawn cut. Its picture was also one tall image that a reader shrinks until it can't be read, and the line that says which pictures to open didn't name it.Problem and solution fit
.cs-item .astryx-app-shell{height:360px}matched every item, the pages section's too..cs-sheet .cs-item …).sheet-pages-1.png,-2…), as a family's picture already is.--pnghelp says so.Expected behavior and authority
This matches the family pictures' existing rule: a picture taller than 1600px is cut between rows into pictures of about that height (
FAMILY_PICTURE_HEIGHT), and the look line names every picture taken.Smallest restoration
The sheet CSS (one selector), the pages section's picture height in
_edit.mjs,lookAtPicturesin_context.mjs, and the--pnghelp text.Evidence
sheet-pages.htmlwas drawn 360px tall, and the look line had no pages entry.lookAtPicturesnamessheet-pages-1.png, sheet-pages-2.png (the sample app and each page template).theme-sheet-pages-pictures.test.mjschecks the scoped cap (and that no unscoped one returns), the look line, and that a change removes the cut pages pictures (sheet-pages-1.png,sheet-pages-dark-2.png) and names them withshow t --png --section pages.theme-sheet-cells-b.test.mjsnow pins the scoped rule.Scope
Components: experimental theme editor pictures (CLI)
Testing
CI=1 vitest run --project node packages/cli/api/theme-edit/theme-sheet-pages-pictures.test.mjs packages/cli/api/theme-edit/theme-sheet-cells-b.test.mjs: 8 passed.replay: worse 0 at bfce804
preflight: pass bfce804 (review deferred to batch: subagent cap)