Skip to content

docs(print-pages): leave avoidBreakInside off when a detail table can run past one sheet - #34733

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-34427-print-docs-long-tables
Nov 17, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-34427-print-docs-long-tables

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Part of #34427

Clause-②: no
Metadata-protocol: none

Requested by Steve · project thread

维护者速读

  1. 改了什么:只改文档 content/docs/ui/print-pages.mdx,在 avoidBreakInside 的说明下加一段:明细表可能超过一页时不要开这个键。
  2. 为什么改:按卡上的裁决 C(6942931911)只写文档、不改代码。实测开着这个键时,放不进第一页剩余空间的明细表会整张挪到第二页再断开,第一页下部留白,21 行时还多用一张纸(开 3 张,关 2 张)。
  3. 风险与回滚:纯文档,无代码、无 spec 改动;回滚即撤本 PR。
  4. 先看:content/docs/ui/print-pages.mdx 新增的那一段。
  5. 两分钟验证:读那一段,对照卡上 os-dev 实测记录 6931957598 的数字。
  6. 需要你做的:无。合并后由本区把卡按 not planned 关掉。

What changes

content/docs/ui/print-pages.mdx gets one paragraph under the print keys table, after the existing avoidBreakInside guidance. It tells an author to leave avoidBreakInside off on a print page whose detail table can run past one sheet, and says why: a table is one block, so with the key on, a table that does not fit the rest of the first sheet moves whole to the next sheet even when no single sheet can hold it, and is broken there. The first sheet keeps only the blocks above the table, and the document can take one sheet more.

The figure in the paragraph (an A4 invoice page, a 21-line table on 3 sheets with the key on and 2 with it off) is the reading in os-dev report 6931957598 on #34427, taken on the real print-page DOM in Chromium through service-print's page.pdf path. The key keeps its published meaning, as ruled on #34228 (6922479414) and on this card (6942931911, letter C), so no code, stylesheet or packages/spec describe changes.

This PR does not close the card. Under the ruling the card ends as not planned once this doc lands, and the area marks it so by hand after the merge.

Verification

At head 02e081472aac51ab6ed554504bdbf7d0ee25ad37 (one commit over origin/main dc66d33082):

  • node scripts/pm/dispatch-gates.mjs --commands derived 44 commands for this diff. Each ran with stdin closed and its exit taken before any pipe; all 44 exited 0.
  • Five first exited for a missing prerequisite, not a finding: check:doc-formula-expressions, check:doc-security-posture, check:docs-transcript-drift (exit 3, @objectstack/lint not built), spec check:docs (exit 1, packages/spec/json-schema not generated) and spec check:skill-examples (exit 3, client-react declarations not built). After building @objectstack/lint..., @objectstack/spec... and @objectstack/client-react... under the verify lock (exit 0 each), every one re-ran with exit 0.
  • dispatch-gates --ran: "44 derived famil(ies) accounted for — 44 run, 0 NOT-MEASURED". Exit 0.
  • No changeset: the PR changes only content/docs, which ships no package, so it carries skip-changeset.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC

… run past one sheet

With the key on, a record:line_items table taller than one sheet still
moves whole to the next sheet before it is broken, which leaves the first
sheet mostly blank and can cost a sheet. Say so where the key is described.

Claude-Session: https://claude.ai/code/session_01ADHkmSYVw1sqCsaHSJS9JC
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 17, 2026
@github-actions github-actions Bot added size/xs documentation Improvements or additions to documentation labels Nov 17, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC

Final head for L1 · 2026-11-17T09:25Z
Final head: 02e081472aac51ab6ed554504bdbf7d0ee25ad37 (card #34427, area o2-B, ruling C 6942931911: document only). One commit over origin/main dc66d33082, one paragraph in content/docs/ui/print-pages.mdx. No code, no packages/spec, not a governed path, so this PR owes L1 only and the area lands it after L1 ACCEPT.
CI at this head: 30 success, 25 skipped by path filter. One PR-body guards run (check run 133932194024) failed on the body as first created: a sentence put a closing keyword before the card number, which the Part-of guard rightly refused. The body was patched at once to drop it, and the guard's run on that edit (run 44052204513, check run 133932542215, same head) succeeded. The body now binds no closing keyword; the card is marked not planned by hand after the merge.
Owed: L1 (L1-a).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmQtnGcx7hYEL11ptVs

席位核对

L1 first review: ACCEPT · PR #34733 · card #34427 (ruling C, record 6942931911) · area o2-B · L1-a2 · 2026-11-17T09:27Z

Head-sha: 02e081472aac51ab6ed554504bdbf7d0ee25ad37

Final-head comment 6944045060.

Checklist

  • Shape. Draft, base main, labels documentation and skip-changeset. The first line is Part of #34427, and the body has no closing keyword. That is right for ruling C: "No code change. Document … When that doc lands, this card closes not_planned". The close is a manual step after landing, so no closing verb belongs here. Clause-②: no and Metadata-protocol: none are right for one docs paragraph.
  • Scope (get_files): one path, content/docs/ui/print-pages.mdx, +9/−0. One commit, 02e08147, on top of main, with no merge.
  • The paragraph against the measurement. I read os-dev report 6931957598 on print: with avoidBreakInside on, a record:line_items table that does not fit the rest of sheet 1 moves whole to sheet 2 (measure on the real page first) #34427 (Chromium print of the showcase invoice page shape, A4).
    • 21 lines. Key on [0|20|1] = 3 sheets; key off [3|18] = 2 sheets. The paragraph's figure (3 with the key on, 2 with it off) matches.
    • What happens with the key on. The report shows a table that does not fit the rest of sheet 1 moving whole to sheet 2 and breaking there. Sheet 1 is left 27% blank with the key on, against 4% with it off. That matches "moves whole to the next sheet even when it cannot fit any single sheet, and is broken there" and "a blank lower part".
    • "Can take one sheet more". The report shows the extra sheet at 21–24 and 45 lines, and equal counts elsewhere, so "can" (not "does") is the right word.
  • The cross-reference. The paragraph says column headings repeat on each sheet (repeatTableHeaders). The page's own table at :74 says "on when omitted", and the key exists in page.zod.ts, so the sentence is true by default. No other sentence on the page contradicts the new paragraph. The sentence above it ("avoidBreakInside keeps each block whole on one sheet when it fits") still stands as written.
  • Ruling fidelity. Ruling C asks only for this documentation. The PR adds no code, no spec change and no default change, and it says nothing that would recommend option A or B.
  • Gates. 44 derived, 44 run, 0 NOT-MEASURED. Five first exited because nothing was built, then exited 0 after a build.

CI on this head

  • filter=latest gives success=30, skipped=25, failure=1. The failure is PR-body guards run 133932194024 (09:03:51Z). It failed on a body sentence that put a closing word next to the card number. The body was then corrected, and run 133932542215 of the same check on this head is success (09:04:32Z–09:05:08Z), later than the failure. The body at this head has no closing keyword. That is the only red, and it is superseded.
  • ⚠️ filter=latest still lists the failed run beside the success, because the two runs are in separate check suites. Before queueing, confirm the PR's own checks view shows the guard green. If it does not, re-run that one job. Do not push.

L2 and landing

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC

Landing · 2026-11-17T09:28Z

probe reading
check-governed-merges.mjs --pr 34733 NOT governed; +9 / -0, under the 3000-line human-merge threshold; nothing under packages/spec/src
L1 at 02e081472aac51ab6ed554504bdbf7d0ee25ad37 ACCEPT (6944078665, first review, L1-a); no L2 owed; head unchanged since the final-head comment 6944045060

State change: ready for review + auto-merge, by area o2-B. The body says Part of #34427 and binds no closing keyword; after the merge the area closes the card not_planned under ruling C (6942931911).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 17, 2026 09:28
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 8f36b06 Nov 17, 2026
56 of 57 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-34427-print-docs-long-tables branch November 17, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xs skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants