Skip to content

docs(cli): the shareable-page guide names the layouts that go wrong on a phone, and how to write each one - #11976

Merged
josephfarina merged 6 commits into
mainfrom
josephfarina/share-a-page-phone-traps
Nov 16, 2026
Merged

josephfarina merged 6 commits into
mainfrom
josephfarina/share-a-page-phone-traps

Conversation

@josephfarina

@josephfarina josephfarina commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Reader impact

An agent or person who makes a shareable page with astryx experimental render follows astryx docs cli/experimental/share-a-page. A real page made this way, read at phone width, hit five layout problems that the guide did not mention, and one that the guide caused:

  • a Badge beside a heading or text in an HStack shrank and cut off its label (the guide's own example does this when the heading is long);
  • a Badge on its own line in a VStack stretched into a bar across the page;
  • a string ListItem label and description were cut to one line, and a file has no way to show the rest;
  • a Table with small column floors, as the guide advised (minWidth: 80), broke words in the middle;
  • the guide said a table wider than the screen "scrolls sideways"; in a file with no script it is cut off at its edge instead, and its last columns cannot be reached;
  • long CodeBlock lines did not fit the screen.

After this change, step 1 names each one and the way to write it, and the example follows that advice. The guide only helps when it is read: in a blind test (below), no agent opened it until astryx experimental render --help pointed to it, so the help and the command doc now do.

Source of truth

  • StackItem (component:Stack FR6): static neither grows nor shrinks, and fill grows into the remaining space. A bare Badge is a shrinkable flex item, and component:Badge FR3 lets it shrink below its label and clip it.
  • Stack: hAlign sets the cross-axis alignment of a VStack, and its default stretches each child.
  • ListItem: a string label or description is cut to one line; an element is not.
  • spec:AST-025 FR21 / DEC-3: a scroll viewport stays overflow: clip until script measures overflow, so a static file cannot scroll a Table sideways. Table cells in wrap mode use overflow-wrap: break-word, which breaks a word that does not fit its column.

Correction

  • New: the Badge-in-HStack trap, with <StackItem size="static"> for the badge and <StackItem size="fill"> for the text, and where StackItem is imported from. The example at the top of step 1 now uses both.
  • New: the VStack stretch, with <StackItem crossAlignSelf="start"> around that one item (hAlign="start" on the VStack would shrink every child, Cards and Grids too).
  • New: string ListItem labels, with an element for text readers must see whole.
  • Corrected: tables. The file cannot scroll a table sideways, so keep a table that phones must show within about 310 px (a 375 px phone leaves 327 px inside the example's padding). Floors add up only when each proportional() share equals its floor, or with pixel() columns, because a table is as wide as its pixel() columns plus the largest floor divided by its column's share of all the shares (Table/columnUtils.ts). A floor includes the cells' 24 px of padding and must fit the column's longest word and its header (a header stays on one line). A column with no width counts as proportional(1, {minWidth: 60}), so every column of a phone table needs a width. The old advice (small floors, "scrolls sideways") is gone.
  • New: astryx experimental render --help has an example that opens the guide, and the command doc sends a reader making a page to share to it.
  • New: isWrapped for CodeBlocks.
  • The "looks wrong on a phone" problem line lists the new cases.

Evidence

Each trap and each fix was measured in Chromium at 375–420 px on static renders (no script), with the same checker used for the blind runs below:

  • Before: a stretched Badge (372 px wide for an 11-character label), a clipped Badge (37 of 47 px), a cut-off ListItem label and description, four words broken in a table of 72 px floors, and tables of 600 and 640 px cut off at 375–420 px with no way to scroll.
  • After, written as the guide now says: the Badge keeps its 49–75 px, the ListItem text wraps, and the guide's example with a long heading keeps its Badge whole while the heading wraps. A page with a Badge in <StackItem crossAlignSelf="start">, a Card, a three-column Grid and a 310 px table (proportional(146, {minWidth: 146}), pixel(100) under "Error rate", pixel(64) under "p95") shows no defect at 375 px: nothing cut off, no header cut, no word broken; the Card stays full width at 375 and 1024 px and the Grid keeps three 317 px columns at 1024 px.

No-context agent test: the same real task (turn a set of notes into one status page for a team that reads it on phones) given to Claude Opus 5.5 with one bash tool and no other context, each run against a local registry serving one CLI build. The task does not mention the guide or that it is a test. Each result was checked in Chromium at 375 px with no script.

Build Runs Opened the guide Runs with a phone defect Defects
main 2 0 2 a 910 px table cut off; 12 cut-off texts and 4 words broken in the middle
this guide, no pointer 2 0 2 7 cut-off list texts; a 900 px table cut off
this guide + the help pointer 3 3 (at step 4–5) 2 two table headers cut off in 72–80 px columns, in each of two runs

With the pointer, every run read the guide before writing the page, no table was cut off, no word broke, and no list text was cut off. The only defect left was headers in narrow number columns, which the last commit covers (a floor fits its header too). Runs with the pointer took 4–24 minutes (14–46 turns); the others 7–35 minutes (38–46 turns).

Scope

Components: astryx docs cli/experimental/share-a-page, astryx experimental render help and command doc

  • This PR changes documentation only, or names every necessary generated artifact.
  • Runtime, API, visual, and policy changes were removed or split.
  • Public text and artifacts contain no internal Meta context.

Testing

  • pnpm exec vitest run --project node packages/cli/clients packages/cli/test packages/cli/foundation/doc-compiler packages/cli/foundation/discovery packages/cli/assets/docs (284 files, 5,214 tests)
  • node packages/cli/scripts/generate-cli-readme.mjs --check; node scripts/check-cli-structure.mjs
  • astryx docs cli/experimental/share-a-page write read back, and the example rendered and measured at 375 px.
  • node scripts/check-changesets.mjs; Prettier on the changed files.

…n a phone in a file with no script, and how to write each one
@vercel

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

Request Review

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

astracat-bot Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

🔎 Preview · 0d33f87

Storybook · Sandbox · built from this PR's head

Package size: @astryxdesign/cli 4.97 MB packed (+834 B); no new dependencies.

Not run on this PR: add ci:run-visual for Visual, ci:run-a11y for Accessibility, ci:run-rtl for RTL.


Generated by PR Enrichment workflow | View full report

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

Changes requested. The new step 1 example now keeps its badge whole beside a long heading on a phone, but two of the new bullets give advice that still breaks the page:

  • share-a-page.doc.mjs:79: Table floors add up only when each column's share matches its floor, so word-width floors of 140, 80 and 100 px (320 px, under the advised 360 px) at equal shares render a 420 px table that loses 77 px of its last column at 375 px, and a floor equal to the longest word still breaks that word because each cell keeps 24 px of inline padding; state the real rule (floor ÷ share × total shares, plus any pixel() columns), suggest shares that match the floors or pixel() columns, add the padding to each floor, and reword the changeset's table clause to match.
  • share-a-page.doc.mjs:77: hAlign="start" aligns every child of the VStack, so in a page VStack it shrinks a full-width Card to 259 px and collapses the guide's own <Grid columns={{minWidth: 220, max: 3}}> to one 83 px column at 1024 px; recommend wrapping only the badge in <StackItem crossAlignSelf="start">, which keeps the Card and the three-column Grid intact.

One smaller point on line 79: 120 px is the default floor only for proportional() without minWidth, while a column with no width keeps 60 px, so name proportional() in the "four columns" sentence.

Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim: a badge beside a long heading in an HStack shrinks and cuts off its label, including the guide's own example: verified (static render at 375 px).
  • Claim: a badge alone in a VStack stretches into a bar: verified (static render at 1024 px).
  • Claim: a string ListItem label or description stays on one line: verified (Item and ListItem source).
  • Claim: small Table floors break words in the middle: verified (wrap styles; observed in a render).
  • Claim: the old "scrolls sideways" advice is wrong for a script-free file: verified (the scroll region stays clipped; 77 px hidden in a probe).
  • Claim: long CodeBlock lines do not fit without wrapping: consistent with source (the code viewport also stays clipped without script).
  • Claim: the cited Stack, Badge, Table, ListItem and scroll-container behaviours: verified against the current records and source.
  • Claim: keeping a phone table within about 360 px of floors, each as wide as its longest word, keeps it whole: false (see the first finding).
  • Claim: hAlign="start" fixes a stretched badge: true only for a VStack that holds nothing else (see the second finding).
  • Claim: written as the guide now says, the example keeps its badge and wraps the heading: verified (badge label fully shown at 375 px).
  • Claim: the named docs test suites pass: verified (81 of 82 files and 1,650 tests; the remaining file needs a git checkout to run).
  • Claim: the changeset check passes, and the change is docs-only with no internal context: verified.
  • Claim: the changeset lists the five layouts and their fixes: accurate to the guide, but its table clause repeats the first finding's rule.
  • File: .changeset/share-a-page-phone-layouts.md: table clause to reword with the first finding; format matches the repository's changesets.
  • File: packages/cli/assets/docs/tree/share-a-page.doc.mjs: findings at lines 77 and 79; the example and the badge, ListItem, CodeBlock and problem-line text are clear.

Automated review (maintainer link)

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

Changes requested. The new pointer from astryx experimental render --help to the shareable-page guide is fine, but the two bullets flagged on the previous revision are unchanged and still give advice that breaks the page:

  • share-a-page.doc.mjs:79: Table floors add up only when each column's share matches its floor, so word-width floors of 140, 80 and 100 px (320 px, under the advised 360 px) at equal shares render a 420 px table that loses 77 px of its last column at 375 px, and a floor equal to the longest word still breaks that word because each cell keeps 24 px of inline padding; state the real rule (floor ÷ share × total shares, plus any pixel() columns), suggest shares that match the floors or pixel() columns, add the padding to each floor, and reword the changeset's table clause to match.
  • share-a-page.doc.mjs:77: hAlign="start" aligns every child of the VStack, so in a page VStack it shrinks a full-width Card to 259 px and collapses the guide's own <Grid columns={{minWidth: 220, max: 3}}> to one 83 px column at 1024 px; recommend wrapping only the badge in <StackItem crossAlignSelf="start">, which keeps the Card and the three-column Grid intact.

Not blocking:

  • Line 79: 120 px is the default floor only for proportional() without minWidth, while a column with no width keeps 60 px, so name proportional() in the "four columns" sentence.
  • Regression: since #11970 landed on main, a long CodeBlock line scrolls sideways in a file that runs no script, so the changeset should say that isWrapped shows whole lines without scrolling rather than list long lines among the layouts that go wrong.
Claims and files checked

Review mode: incremental; reason: none

  • Claim: a badge beside a long heading in an HStack shrinks and cuts off its label, including the guide's own example: verified (static render at 375 px).
  • Claim: a badge alone in a VStack stretches into a bar: verified (static render at 1024 px).
  • Claim: a string ListItem label or description stays on one line: verified (Item and ListItem source).
  • Claim: small Table floors break words in the middle: verified (wrap styles; observed in a render).
  • Claim: the old "scrolls sideways" advice is wrong for a script-free file: verified (the scroll region stays clipped; 77 px hidden in a probe).
  • Claim: long CodeBlock lines do not fit the screen: true at the base; on main they now scroll sideways (second non-blocking point).
  • Claim: the cited Stack, Badge, Table, ListItem and scroll-container behaviours: verified against the current records and source.
  • Claim: keeping a phone table within about 360 px of floors, each as wide as its longest word, keeps it whole: false (first finding).
  • Claim: hAlign="start" fixes a stretched badge: true only for a VStack that holds nothing else (second finding).
  • Claim: written as the guide now says, the example keeps its badge and wraps the heading: verified (badge label fully shown at 375 px).
  • Claim: the named docs test suites pass: verified (81 of 82 files; the remaining file needs a git checkout to run).
  • Claim: the changeset check passes, and the change is docs-only with no internal context: verified.
  • Claim: the changeset lists the five layouts and their fixes: accurate to the guide, but its table clause repeats the first finding's rule.
  • File: .changeset/share-a-page-phone-layouts.md: table clause to reword with the first finding; CodeBlock clause in the second non-blocking point.
  • File: packages/cli/assets/docs/tree/share-a-page.doc.mjs: findings at lines 77 and 79; the example and the badge, ListItem, CodeBlock and problem-line text are clear.
  • File: packages/cli/clients/cli/commands/experimental-render.doc.mjs: clear; the new example prints first in help, its route resolves, and it runs outside a project as declared.

Automated review (maintainer link)

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

Changes requested. The help pointer and the new note that a Table header stays on one line are right, but the guide's advice still breaks a page when it is followed:

  • share-a-page.doc.mjs:79: Table floors add up only when each column's share equals its floor, so floors that fit each column's longest word and header (120, 148 and 90 px, under the advised 360 px) at proportional(1, …) render a 444 px table that loses 117 px on a 375 px phone; say that shares must match floors (proportional(148, {minWidth: 148})) or the columns be pixel(), that a floor includes the cell's 24 px of padding, and reword the changeset's table clause to match.
  • share-a-page.doc.mjs:77: hAlign="start" aligns every child of the VStack, so in a page VStack it shrinks a full-width Card to 289 px and collapses the guide's own <Grid columns={{minWidth: 220, max: 3}}> to one 83 px column at 1024 px; recommend wrapping only the badge in <StackItem crossAlignSelf="start">, which keeps the Card and the three-column Grid intact.
  • Miss: share-a-page.doc.mjs:79: the "about 360 px" budget is wider than the 327 px a 375 px phone leaves inside the example's padding={6} (342 px at 390 px), so floors that do add up to 360 px still lose 33 px of the last column; budget about 310 px instead.
  • share-a-page.doc.mjs:79: "Error rate" needs 90.1 px (66 px of semibold text plus 24 px of padding), so the advised 90 px column shows "Error ra…" and a Card's edge column "Error r…"; say about 100 px, or the header's width plus 24 px with room to spare.

Not blocking: name proportional() in the "default 120 px floor" sentence, since a column with no width keeps 60 px; and since #11970 on main lets a long CodeBlock line scroll without script, describe isWrapped in the changeset as showing whole lines rather than fixing a broken layout.

Claims and files checked

Review mode: incremental; reason: none

  • Claim: a badge beside a long heading in an HStack shrinks and cuts off its label, including the guide's own example: verified (render at 375 px).
  • Claim: a badge alone in a VStack stretches into a bar: verified (render at 1024 px).
  • Claim: a string ListItem label or description stays on one line: verified (Item and ListItem source).
  • Claim: small Table floors break words in the middle: verified (wrap styles).
  • Claim: the old "scrolls sideways" advice is wrong for a script-free file: verified (the scroll region stays clipped until script runs).
  • Claim: long CodeBlock lines do not fit the screen: true at the base; on main they now scroll sideways (non-blocking point).
  • Claim: the cited Stack, Badge, Table, ListItem and scroll-container behaviours: verified against the current records and source.
  • Claim: keeping a phone table within about 360 px of floors, each fitting its longest word and header, keeps it whole: false (first and third findings).
  • Claim: hAlign="start" fixes a stretched badge: true only for a VStack that holds nothing else (second finding).
  • Claim: written as the guide now says, the example keeps its badge and wraps the heading: verified (render at 375 px).
  • Claim: the render help and command doc point to the guide: verified (help example, docs read-back, tests).
  • Claim: a Table header stays on one line and ends in an ellipsis: verified (header cell styles; render).
  • Claim: pixel(64) holds a short number under a header such as "p95": verified (49 of 64 px).
  • Claim: "Error rate" needs about 90 px, so the last commit covers the cut-off headers: false (fourth finding).
  • Claim: the named docs test suites pass: verified for the docs, doc-compiler, ASCII, manifest and help suites; the full run was not repeated.
  • Claim: the changeset check passes, and the change is docs-only with no internal context: verified.
  • Claim: the changeset lists the layouts, their fixes and the help pointer: accurate to the guide, but its table clause repeats the first finding's rule.
  • Claim: the blind agent runs: the author's report, not reproduced.
  • File: .changeset/share-a-page-phone-layouts.md: table clause to reword with the first finding; CodeBlock clause in the non-blocking point.
  • File: packages/cli/assets/docs/tree/share-a-page.doc.mjs: findings at lines 77 and 79; the example and the badge, ListItem, CodeBlock and problem-line text are clear.
  • File: packages/cli/clients/cli/commands/experimental-render.doc.mjs: clear.

Automated review (maintainer link)

…in about 310 px; a lone VStack item aligns itself

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

Changes requested. This revision fixes every point from the last review, and a page written to the guide now renders whole at 375 px in a file with no script, but the new table formula leaves one trap:

  • share-a-page.doc.mjs:79 counts only pixel() and proportional() columns, yet Table gives a column with no width a share of 1 and a 60 px floor, so one such column beside proportional(148, {minWidth: 148}) and pixel(64) makes a 9,004 px table that is cut off on every screen; say that a column with no width counts as proportional(1, {minWidth: 60}), so every column of a phone table needs a width.

Not blocking: Prettier would split the new help example in experimental-render.doc.mjs over four lines, so "Prettier on the changed files" does not hold for that file, though no check covers .mjs.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: a badge beside a long heading in an HStack cuts off its label, the guide's own example included: verified (static render at 375 px shows 17 of 36 px of the label).
  • Claim: a badge alone in a VStack stretches into a bar: verified (a 327 px bar at 375 px).
  • Claim: a string ListItem label or description is cut to one line and an element is not: verified (Item source; render).
  • Claim: small column floors break words in the middle: verified (a word breaks in an 80 px-floor column).
  • Claim: a file with no script cannot scroll a wide table sideways: verified (the scroll region stays clipped; a 1,320 px table loses 993 px at 375 px).
  • Claim: long CodeBlock lines did not fit the screen: verified at the base (the line is cut at the edge); the main branch now scrolls them without script.
  • Claim: the cited Stack, Badge, ListItem, scroll-region and table wrap behaviours: verified against the current records and source.
  • Claim: a 375 px phone leaves about 327 px inside the example's padding: verified (327 px measured).
  • Claim: a table is as wide as its pixel columns plus the largest floor divided by its share for the other columns, so floors add up with matching shares or pixel columns: true for pixel and proportional columns, false once a column has no width (the finding).
  • Claim: a floor includes 24 px of cell padding and must fit the longest word and the one-line header: verified (12 px each side at the default density; header cells do not wrap and end in an ellipsis).
  • Claim: 64 px holds "p95" and "Error rate" needs about 100 px: verified (both headers whole).
  • Claim: the help has an example that opens the guide, and the command doc points to it: verified (help lists it first).
  • Claim: isWrapped shows whole CodeBlock lines: verified (the long line wraps to three lines at 375 px).
  • Claim: the problem line lists the new cases: verified.
  • Claim: written as the guide says, the example keeps its badge whole while the heading wraps, and a page with a lone badge, a Card, a three-column Grid and a 310 px table shows no defect at 375 px and keeps the Card and Grid at 1024 px: verified (badges whole, no cut header or broken word; Card full width and three Grid columns at 1024 px).
  • Claim: the before measurements (stretched and clipped badges, cut list text, broken words, cut-off wide tables): verified in kind on this review's own pages; exact pixel values depend on the author's pages.
  • Claim: the no-context agent runs: the author's report, not reproduced.
  • Claim: the named test suites pass: verified (284 of 286 files pass; one test needs a git checkout this review does not have; one is skipped).
  • Claim: the README, CLI structure and changeset checks pass, and the guide reads back: verified.
  • Claim: Prettier on the changed files: holds for the changeset and the guide, not for the render command doc (non-blocking).
  • Claim: documentation only, with no internal context: verified.
  • Claim: the changeset's summary of the guide and the help pointer: accurate; its table clause shares the formula's gap and follows the guide's fix.
  • File: .changeset/share-a-page-phone-layouts.md: clear.
  • File: packages/cli/assets/docs/tree/share-a-page.doc.mjs: finding at line 79; the example and lines 76 to 78, 80, 81 and 151 are clear.
  • File: packages/cli/clients/cli/commands/experimental-render.doc.mjs: clear apart from the non-blocking formatting note.

Automated review (maintainer link)

…nWidth: 60}), so every phone-table column needs one; Prettier on the render command doc

@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. This revision closes the last open point: the table advice now says a column with no width counts as proportional(1, {minWidth: 60}), so every column of a phone table needs a width, which matches how Table sizes its columns, and the render command doc is now Prettier-formatted.

CI's one failure, test-node (8/8) (reported again by the test join), is the search search golden expecting 118 matches and getting 119 on the merge with main; the same test fails the same way on main alone and passes on this branch, so it does not come from this change. The merge guard still needs it green, so the golden needs updating on main and CI needs a re-run here.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: a Badge beside text in an HStack shrinks and cuts its label, the guide's own example with a long heading included: verified (a static render at 375 px shows 26 of 36 px of the label).
  • Claim: a Badge alone in a VStack stretches into a bar: verified (a bar across the 327 px content width).
  • Claim: a string ListItem label or description is cut to one line and an element is not: verified (Item source; render).
  • Claim: small column floors break words in the middle: verified (wrap cells use overflow-wrap: break-word; an 80 px floor also cuts the "Error rate" header).
  • Claim: a file with no script cannot scroll a wide table sideways: verified (the scroll region stays clipped; a 9,004 px table loses 8,677 px at 375 px).
  • Claim: long CodeBlock lines did not fit the screen: verified at the base (the line is cut at the edge); the main branch now scrolls them without script.
  • Claim: the cited Stack, Badge, ListItem, scroll-region and table wrap behaviours: verified against the current records and source.
  • Claim: a 375 px phone leaves about 327 px inside the example's padding: verified (327 px measured).
  • Claim: a table is as wide as its pixel columns plus the largest floor divided by its share, so floors add up with matching shares or pixel columns: verified (Table source; a 310 px table fits).
  • Claim: a column with no width counts as proportional(1, {minWidth: 60}), so every phone-table column needs a width: verified (Table source; the same table renders 9,004 px without a width and 302 px with one).
  • Claim: a floor includes 24 px of cell padding and must fit the longest word and the one-line header: verified (12 px each side at the default density; header cells do not wrap and end in an ellipsis).
  • Claim: 64 px holds "p95" and "Error rate" needs about 100 px: verified (both headers whole).
  • Claim: the help has an example that opens the guide, and the command doc points to it: verified (help lists it first).
  • Claim: isWrapped shows whole CodeBlock lines: verified (the long line wraps to three lines at 375 px).
  • Claim: the problem line lists the new cases: verified.
  • Claim: written as the guide says, the example keeps its badge whole while the heading wraps, and a page with a lone badge, a Card and a 310 px table shows no defect at 375 px: verified (badges whole, no cut header or broken word).
  • Claim: the Card stays full width and the Grid keeps three columns at 1024 px: verified in kind on an earlier render of the same components; exact widths depend on the author's page.
  • Claim: the before measurements (stretched and clipped badges, cut list text, broken words, cut-off wide tables): verified in kind; exact pixel values depend on the author's pages.
  • Claim: the header-floor rule a commit added is in the guide: verified (the floor bullet).
  • Claim: the no-context agent runs: the author's report, not reproduced.
  • Claim: the named test suites pass: verified (284 of 286 files pass; one test needs a git checkout this review does not have; one is skipped).
  • Claim: the README, CLI structure and changeset checks pass, and the guide reads back: verified.
  • Claim: Prettier on the changed files: verified (all three pass).
  • Claim: documentation only, with no internal context: verified.
  • Claim: the changeset's summary of the guide and the help pointer: accurate.
  • File: .changeset/share-a-page-phone-layouts.md: clear.
  • File: packages/cli/assets/docs/tree/share-a-page.doc.mjs: clear (the example, the six new or changed step 1 bullets and the problem line).
  • File: packages/cli/clients/cli/commands/experimental-render.doc.mjs: clear.

Automated review (maintainer link)

@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's test, typecheck, build and docsite jobs have not finished on this head yet, and the merge guard needs them green. This revision changes no file; it re-runs CI now that main has updated the search golden that failed on the previous revision. The guide's phone advice, the help pointer and the release note match how Stack, Badge, ListItem, Table and CodeBlock render in a file with no script, so there is nothing to change.

Claims and files checked

Review mode: incremental; reason: none

  • Changed rules (0): none.
  • Claim: a Badge beside text in an HStack shrinks and cuts its label, the guide's own example with a long heading included: verified (a static render at 375 px shows 26 of 36 px of the label).
  • Claim: a Badge alone in a VStack stretches into a bar: verified (a bar across the 327 px content width; the VStack keeps the browser's stretch default).
  • Claim: a string ListItem label or description is cut to one line and an element is not: verified (Item's string-label truncation; render).
  • Claim: small column floors break words in the middle: verified (wrap cells break inside a word that does not fit; a 60 px column breaks "Checkout" and "Ledger").
  • Claim: a file with no script cannot scroll a wide table sideways: verified (the scroll region stays clipped until script measures it; a 9,004 px table loses 8,677 px at 375 px).
  • Claim: long CodeBlock lines did not fit the screen: verified at the base (the line is cut at the edge); main now scrolls them without script.
  • Claim: StackItem static neither grows nor shrinks and fill grows into the remaining space: verified (Stack record and StackItem source).
  • Claim: a 375 px phone leaves about 327 px inside the example's padding: verified (375 px minus 24 px on each side).
  • Claim: a table is as wide as its pixel() columns plus the largest floor divided by its share of all the shares, so floors add up with matching shares or pixel() columns: verified (Table's column-width source; four 120 px floors at one share each need 480 px).
  • Claim: a column with no width counts as proportional(1, {minWidth: 60}), so every phone-table column needs a width: verified (Table source and record; the same table renders 9,004 px without a width and 302 px with one).
  • Claim: a floor includes 24 px of cell padding and must fit the longest word and the one-line header: verified (12 px each side at the default density; header cells never wrap and end in an ellipsis).
  • Claim: 64 px holds "p95" and "Error rate" needs about 100 px: verified (both headers whole; an 80 px column shows "Error r…").
  • Claim: the help has an example that opens the guide, and the command doc points to it: verified (the help lists it first; the command doc carries the sentence).
  • Claim: isWrapped shows whole CodeBlock lines: verified (the long line wraps to three lines at 375 px).
  • Claim: the problem line lists the new cases: verified.
  • Claim: written as the guide says, the example keeps its badge whole while the heading wraps, and a page with a lone badge, a Card and a 310 px table shows no defect at 375 px: verified (badges whole, no cut header or broken word).
  • Claim: the Card stays full width and the Grid keeps three columns at 1024 px: verified in kind on a render of the same components; exact widths depend on the author's page.
  • Claim: the before measurements (stretched and clipped badges, cut list text, broken words, cut-off wide tables): verified in kind; exact pixel values depend on the author's pages.
  • Claim: the no-context agent runs: the author's report, not reproduced.
  • Claim: the named test suites pass: verified (284 of 286 files pass; one needs a git checkout, one is skipped).
  • Claim: the README, CLI structure and changeset checks pass, and the guide reads back: verified.
  • Claim: Prettier on the changed files: verified (all three pass).
  • Claim: documentation only, with no internal context: verified.
  • Claim: the changeset's summary of the guide's new cases, its table rule and the help pointer: accurate.
  • File: .changeset/share-a-page-phone-layouts.md: clear.
  • File: packages/cli/assets/docs/tree/share-a-page.doc.mjs: clear (the example, the six new or changed step 1 bullets and the problem line).
  • File: packages/cli/clients/cli/commands/experimental-render.doc.mjs: clear.

Automated review (maintainer link)

@josephfarina
josephfarina merged commit 95025f1 into main Nov 16, 2026
78 checks passed
@github-actions
github-actions Bot deleted the josephfarina/share-a-page-phone-traps branch November 17, 2026 06:03

This branch was successfully deployed

1 active deployment
Preview — 0d33f872 Deployed Nov 16, 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