Skip to content

Page counts: a reflowed document leads with its base and head counts (sc-9184) - #214

Merged
ndbroadbent merged 2 commits into
mainfrom
page-counts
Dec 4, 2026
Merged

ndbroadbent merged 2 commits into
mainfrom
page-counts

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

sc-9184. A comparison's rows are aligned positions, so a book that went from 34 to 32 pages showed pages: 35 and "1 page added, 3 pages removed".

  • Build summary (checks, build page): "34 → 32 pages (2 fewer), pages 5, 7 … changed (34 regions)". When the counts differ, pages added and removed are left out, since they describe the alignment; the snapshot page still shows which base page matched which head page. With equal counts, added and removed pages are listed as before.
  • The build list and MCP get_build: pages is the head's page count (the base's for a removed snapshot), and base_pages is new. The build list reads "34 → 32 pages, 26 changed" when they differ.
  • MCP get_snapshot: new base_pages and head_pages.

Tests: app/tests/summaries.rs. The reflow test fails on main ("page 3 changed, 1 page added, 2 pages removed"). The build list's wording changes only when a document's page count changes.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@visualci-com

visualci-com Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #819 · 5 changed, 516 unchanged · approved by visualci coordinator agent (MCP) for Nathan Broadbent

Rebase onto main: the docs' VISUALCI_VERSION pin follows the CLI's version, 0.2.26 → 0.2.27 (#210's release). Same 60-pixel text change in all four docs screenshots and the quick-start text. Intended.

This PR vs base: 33 changed since #787, across 2 builds

Snapshot Before After
screenshots/docs/page/1440-dark (changed)
screenshots/docs/page/1440-light (changed)
screenshots/docs/page/390-dark (changed)
screenshots/docs/page/390-light (changed)
site/docs/quick-start (changed) text text, see the build

docspring/visualci · journeys · build #816 · 50 unchanged · no changes

This PR vs base: 1 changed since #782, across 3 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

…unts (sc-9184)

A comparison's rows are aligned positions, so a book going from 34 to 32 pages showed pages: 35 and "1 page added,
3 pages removed". The summary now says "34 → 32 pages (2 fewer)" before the changed pages, and leaves added and
removed pages to the snapshot's page when the counts differ. The build list and MCP's get_build give the head's page
count as pages, with base_pages; get_snapshot gives base_pages and head_pages.
@ndbroadbent
ndbroadbent merged commit 02c699c into main Dec 4, 2026
16 checks passed
@ndbroadbent
ndbroadbent deleted the page-counts branch December 4, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant