From 0bc0703ff1c9ebb81da3d5b05c205184c591bd0c Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 17:00:51 +0000 Subject: [PATCH 1/3] docs(ui,skills): print pages author one record:details block per section avoidBreakInside keeps each block whole on one sheet, so a block holding several sections moves to the next sheet as one piece. The print-pages doc and the objectstack-ui pages rule now say to author one record:details block per section where sections may break between sheets. The skill pays for the sentence by dropping its stale claim that the console's print rendering is still to follow. Claude-Session: https://claude.ai/code/session_01FEkQ5pNoRjsgMJKr5utN33 Co-Authored-By: Claude --- .changeset/34228-print-section-per-block.md | 10 ++++++++++ content/docs/ui/print-pages.mdx | 4 ++++ skills/objectstack-ui/rules/pages.md | 13 +++++++------ 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 .changeset/34228-print-section-per-block.md diff --git a/.changeset/34228-print-section-per-block.md b/.changeset/34228-print-section-per-block.md new file mode 100644 index 00000000000..9443ce4712d --- /dev/null +++ b/.changeset/34228-print-section-per-block.md @@ -0,0 +1,10 @@ +--- +'@objectstack/skills': patch +--- + +docs(ui, skills): a print page whose sections may break between sheets authors one `record:details` block per section + +Clause-②: no +Metadata-protocol: none + +`skills/objectstack-ui/rules/pages.md`, § Print pages: one sentence after the page-break hints says that where sections may break between sheets, the author writes one `record:details` block per section, because `avoidBreakInside` keeps each block whole and a multi-section block moves to the next sheet whole. The file pays for it within its token ceiling by dropping the sentence that said the console's print rendering was still to follow and that `os validate` warns the layout is not applied, which no longer holds: the console applies every `print` key. The docs page `content/docs/ui/print-pages.mdx` carries the same guidance under its key table. `avoidBreakInside` keeps its meaning; no schema or runtime change. diff --git a/content/docs/ui/print-pages.mdx b/content/docs/ui/print-pages.mdx index 7b53d421ace..a7713ec256f 100644 --- a/content/docs/ui/print-pages.mdx +++ b/content/docs/ui/print-pages.mdx @@ -74,6 +74,10 @@ panels are hidden, and the page runs onto as many sheets as it needs. | `repeatTableHeaders` | A table's column headings repeated on every sheet it runs onto; on when omitted | | `avoidBreakInside` | `break-inside: avoid` on each block of a region | +On a print page whose sections may break between sheets, author one `record:details` block +per section: `avoidBreakInside` keeps each block whole on one sheet when it fits, so a block +holding several sections moves to the next sheet as one piece. + Blocks print whole: - `record:line_items` loads at most its row cap (`limit`, 500 when unset). On a print page, diff --git a/skills/objectstack-ui/rules/pages.md b/skills/objectstack-ui/rules/pages.md index 7012d54bc84..2f1699f95b1 100644 --- a/skills/objectstack-ui/rules/pages.md +++ b/skills/objectstack-ui/rules/pages.md @@ -76,10 +76,12 @@ page and a `slotted` / `html` / `react` page. `repeatFooter` repeat the page's own `header` / `footer` region on every sheet (refused without that region; off = printed once); `pageNumbers` prints sheet number and count; the page-break hints `repeatTableHeaders` (on by default) -and `avoidBreakInside` (keep each block whole). +and `avoidBreakInside` (keep each block whole). Where sections may break +between sheets, author one `record:details` block per section: a +multi-section block moves to the next sheet whole. -Every block, at any depth, must draw all it declares, in full, the same at -any width: the containers `page:section` / `page:card` / +Every block, at any depth, must draw all it declares, the same at any +width: the containers `page:section` / `page:card` / `page:footer`, the field blocks `record:details` / `record:highlights`, the all-lines child table `record:line_items`, `element:text` / `element:image` / `element:divider` / `element:definition-list` / `element:repeater`, and the @@ -92,9 +94,8 @@ to print** (`record:path`, tabs, buttons, inputs, forms — values print through `record:details`), or it is **outside the vocabulary** (`flex`, `object-chart`, a plugin widget), so nothing answers for how it prints. -Validated today; the console's print rendering that applies it follows, so -`os validate` warns the layout is not yet applied. List export has no `'pdf'`; -a list prints as shown via the view's `allowPrinting`. +List export has no `'pdf'`; a list prints as shown via the view's +`allowPrinting`. ```typescript From 31b3ea032b4d8af8b8b14ea3cafbacc678431d14 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 18:23:50 +0000 Subject: [PATCH 2/3] docs(skills): keep the when-it-fits qualifier on avoidBreakInside The pages.md print rule now says avoidBreakInside keeps each block whole on one sheet when it fits, as the spec describe and the print-pages doc do: a block taller than one sheet still breaks inside itself. Paid for in the same file by dropping the react Safety sentence's opening clause, which repeated what that sentence and its section already say. The changeset also names the dropped ", in full". Claude-Session: https://claude.ai/code/session_01FEkQ5pNoRjsgMJKr5utN33 Co-Authored-By: Claude --- .changeset/34228-print-section-per-block.md | 2 +- skills/objectstack-ui/rules/pages.md | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.changeset/34228-print-section-per-block.md b/.changeset/34228-print-section-per-block.md index 9443ce4712d..8c2f0da2093 100644 --- a/.changeset/34228-print-section-per-block.md +++ b/.changeset/34228-print-section-per-block.md @@ -7,4 +7,4 @@ docs(ui, skills): a print page whose sections may break between sheets authors o Clause-②: no Metadata-protocol: none -`skills/objectstack-ui/rules/pages.md`, § Print pages: one sentence after the page-break hints says that where sections may break between sheets, the author writes one `record:details` block per section, because `avoidBreakInside` keeps each block whole and a multi-section block moves to the next sheet whole. The file pays for it within its token ceiling by dropping the sentence that said the console's print rendering was still to follow and that `os validate` warns the layout is not applied, which no longer holds: the console applies every `print` key. The docs page `content/docs/ui/print-pages.mdx` carries the same guidance under its key table. `avoidBreakInside` keeps its meaning; no schema or runtime change. +`skills/objectstack-ui/rules/pages.md`, § Print pages: one sentence after the page-break hints says that where sections may break between sheets, the author writes one `record:details` block per section, because `avoidBreakInside` keeps each block whole on one sheet when it fits (the qualifier the spec describe carries: a block taller than one sheet still breaks inside itself) and a multi-section block moves to the next sheet whole. The file pays for it within its token ceiling, which is not raised. It drops the sentence that said the console's print rendering was still to follow and that `os validate` warns the layout is not applied, which no longer holds: the console applies every `print` key. It also drops the words ", in full" from "must draw all it declares", which they only repeated; the "draws a window of its rows" refusal still covers a block that draws part of its rows. And § Safety / availability no longer opens with "`kind:'react'` executes author code in the app, so it": the same sentence's "a react page's source is code every viewer runs" and the section's "real React executed at render by the runtime" already say so. The docs page `content/docs/ui/print-pages.mdx` carries the same guidance under its key table. `avoidBreakInside` keeps its meaning; no schema or runtime change. diff --git a/skills/objectstack-ui/rules/pages.md b/skills/objectstack-ui/rules/pages.md index 2f1699f95b1..42580869213 100644 --- a/skills/objectstack-ui/rules/pages.md +++ b/skills/objectstack-ui/rules/pages.md @@ -76,9 +76,9 @@ page and a `slotted` / `html` / `react` page. `repeatFooter` repeat the page's own `header` / `footer` region on every sheet (refused without that region; off = printed once); `pageNumbers` prints sheet number and count; the page-break hints `repeatTableHeaders` (on by default) -and `avoidBreakInside` (keep each block whole). Where sections may break -between sheets, author one `record:details` block per section: a -multi-section block moves to the next sheet whole. +and `avoidBreakInside` (keep each block whole on one sheet when it fits). +Where sections may break between sheets, author one `record:details` block +per section: a multi-section block moves to the next sheet whole. Every block, at any depth, must draw all it declares, the same at any width: the containers `page:section` / `page:card` / @@ -227,9 +227,8 @@ function Page() { }); ``` -**Safety / availability.** `kind:'react'` executes author code in the app, so it is gated -by the host capability `react-pages` — **OFF by default**: a react page's source is code -every viewer runs. A deployment that trusts its authors turns it on server-side +**Safety / availability.** `kind:'react'` is gated by the host capability +`react-pages` — **OFF by default**: a react page's source is code every viewer runs. A deployment that trusts its authors turns it on server-side with `OS_PAGE_REACT_ENABLED=true`; while off, the page shows a "disabled" notice instead. `os build` does NOT lint react source — errors surface at render behind an error boundary, so always test a react page in the browser. From 5d97ca84f9aebba54f128d3252203b77f307424a Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Nov 2026 19:05:33 +0000 Subject: [PATCH 3/3] docs(skills): restore the react Safety opening; pay the print qualifier elsewhere The Safety / availability sentence of the react page section is back to main's text byte for byte. The tokens for the "when it fits" qualifier come instead from the Routing model sentence, which drops "regardless of which app you came from": the same paragraph already says the viewer is platform-level and the URL has no package or app prefix. Claude-Session: https://claude.ai/code/session_01FEkQ5pNoRjsgMJKr5utN33 Co-Authored-By: Claude --- .changeset/34228-print-section-per-block.md | 2 +- skills/objectstack-ui/rules/pages.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.changeset/34228-print-section-per-block.md b/.changeset/34228-print-section-per-block.md index 8c2f0da2093..86c7e994d97 100644 --- a/.changeset/34228-print-section-per-block.md +++ b/.changeset/34228-print-section-per-block.md @@ -7,4 +7,4 @@ docs(ui, skills): a print page whose sections may break between sheets authors o Clause-②: no Metadata-protocol: none -`skills/objectstack-ui/rules/pages.md`, § Print pages: one sentence after the page-break hints says that where sections may break between sheets, the author writes one `record:details` block per section, because `avoidBreakInside` keeps each block whole on one sheet when it fits (the qualifier the spec describe carries: a block taller than one sheet still breaks inside itself) and a multi-section block moves to the next sheet whole. The file pays for it within its token ceiling, which is not raised. It drops the sentence that said the console's print rendering was still to follow and that `os validate` warns the layout is not applied, which no longer holds: the console applies every `print` key. It also drops the words ", in full" from "must draw all it declares", which they only repeated; the "draws a window of its rows" refusal still covers a block that draws part of its rows. And § Safety / availability no longer opens with "`kind:'react'` executes author code in the app, so it": the same sentence's "a react page's source is code every viewer runs" and the section's "real React executed at render by the runtime" already say so. The docs page `content/docs/ui/print-pages.mdx` carries the same guidance under its key table. `avoidBreakInside` keeps its meaning; no schema or runtime change. +`skills/objectstack-ui/rules/pages.md`, § Print pages: one sentence after the page-break hints says that where sections may break between sheets, the author writes one `record:details` block per section, because `avoidBreakInside` keeps each block whole on one sheet when it fits (the qualifier the spec describe carries: a block taller than one sheet still breaks inside itself) and a multi-section block moves to the next sheet whole. The file pays for it within its token ceiling, which is not raised. It drops the sentence that said the console's print rendering was still to follow and that `os validate` warns the layout is not applied, which no longer holds: the console applies every `print` key. It also drops the words ", in full" from "must draw all it declares", which they only repeated; the "draws a window of its rows" refusal still covers a block that draws part of its rows. And § Routing model drops "regardless of which app you came from" after "one global `/docs/` route resolves any doc": the same paragraph already says the viewer is platform-level and the URL has no package or app prefix. The docs page `content/docs/ui/print-pages.mdx` carries the same guidance under its key table. `avoidBreakInside` keeps its meaning; no schema or runtime change. diff --git a/skills/objectstack-ui/rules/pages.md b/skills/objectstack-ui/rules/pages.md index 42580869213..92ddc1595f8 100644 --- a/skills/objectstack-ui/rules/pages.md +++ b/skills/objectstack-ui/rules/pages.md @@ -227,8 +227,9 @@ function Page() { }); ``` -**Safety / availability.** `kind:'react'` is gated by the host capability -`react-pages` — **OFF by default**: a react page's source is code every viewer runs. A deployment that trusts its authors turns it on server-side +**Safety / availability.** `kind:'react'` executes author code in the app, so it is gated +by the host capability `react-pages` — **OFF by default**: a react page's source is code +every viewer runs. A deployment that trusts its authors turns it on server-side with `OS_PAGE_REACT_ENABLED=true`; while off, the page shows a "disabled" notice instead. `os build` does NOT lint react source — errors surface at render behind an error boundary, so always test a react page in the browser. @@ -347,7 +348,7 @@ behind the screen is not. ### Routing model — platform-level viewer, opt-in entry The viewer is **platform-level**: one global `/docs/` route -resolves any doc regardless of which app you came from. The URL is +resolves any doc. The URL is **single-coordinate** — no package or app prefix — so a doc has exactly one URL. Do **not** design per-app or per-package doc URLs.