Skip to content

experimental theme pictures: the pages section draws the sample app whole, cut between pages and named - #13199

Merged
josephfarina merged 4 commits into
feature/theme-editorfrom
theme-sheet-pages-whole
Nov 21, 2026
Merged

josephfarina merged 4 commits into
feature/theme-editorfrom
theme-sheet-pages-whole

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #13200 (a change removes cut pictures): this PR's base is that branch, and it moves to main once #13200 lands.

User impact

astryx experimental theme editor show --section pages --png pictures 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

  • Why was the app cut? .cs-item .astryx-app-shell{height:360px} matched every item, the pages section's too.
  • Why does it matter? The pages are where a reader sees the theme on a whole app. A cut app hides the very look being checked.
  • The fix:
    • The cap now holds on the sheet only (.cs-sheet .cs-item …).
    • The pages picture is cut between pages at about 1600px (sheet-pages-1.png, -2 …), as a family's picture already is.
    • The look line names those pictures.
    • The --png help 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, lookAtPictures in _context.mjs, and the --png help text.

Evidence

  • Before: the sample app on sheet-pages.html was drawn 360px tall, and the look line had no pages entry.
  • After: the app shell is uncapped on the pages section, and lookAtPictures names sheet-pages-1.png, sheet-pages-2.png (the sample app and each page template).
  • Unchanged: on the sheet itself an app shell is still capped at 360px.
  • Regression test: theme-sheet-pages-pictures.test.mjs checks 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 with show t --png --section pages. theme-sheet-cells-b.test.mjs now pins the scoped rule.

Scope

Components: experimental theme editor pictures (CLI)

  • 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

  • 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)

… 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.
@vercel

vercel Bot commented Nov 21, 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 21, 2026 6:53am UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 21, 2026
@astracat-bot

astracat-bot Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 21, 2026, 6:57 AM UTC

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@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: 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-shell matched the .cs-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:8403 and _context.mjs:1378.
  • Claim: the --png help says so. Verified in experimental-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.

Automated review (maintainer link)

…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.
@josephfarina
josephfarina force-pushed the theme-sheet-pages-whole branch from c68a9b8 to bfce804 Compare November 21, 2026 06:40
@josephfarina
josephfarina changed the base branch from main to theme-change-removes-cut-pictures November 21, 2026 06:40

@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: 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-shell matched 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:8406 and _context.mjs:1376-1389.
  • Claim: the --png help says so. Verified in experimental-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.

Automated review (maintainer link)

@josephfarina
josephfarina marked this pull request as ready for review November 21, 2026 08:19
@josephfarina
josephfarina changed the base branch from theme-change-removes-cut-pictures to feature/theme-editor November 21, 2026 17:22
@josephfarina
josephfarina merged commit 4c7c2ea into feature/theme-editor Nov 21, 2026
71 checks passed
josephfarina added a commit that referenced this pull request Nov 21, 2026
…hole, cut between pages and named (#13199)

Reviewed pull request #13199, merged into the theme working branch with only its own changes (the layer below it, #13200, is already here). It reaches main with the branch's next landing.
josephfarina added a commit that referenced this pull request Nov 21, 2026
- #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
@josephfarina

Copy link
Copy Markdown
Contributor Author

Landed on main in #13470.

@github-actions
github-actions Bot deleted the theme-sheet-pages-whole branch November 22, 2026 06:04

This branch was successfully deployed

1 active deployment
Preview — bfce8041 Deployed Nov 21, 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