docs/plans/2026-05-27-pagination-virtualized-overscan-control.md
Status: done
Objective:
/examples/pagination.Source:
Decision:
pageOverscan as the user-settable control.stress_pages as the document scale control.PagedEditable page-surface windowing so the example control changes both page shells and editable DOM.Changed:
page_overscan URL state added to pagination controls.overscan: pageOverscan.slate-layout page-surface virtualization now derives overscan from the virtualized DOM strategy.Page overscan only when DOM strategy is virtualized.page overscan and derived visible pages..changeset/paged-editable-virtualized-overscan.md.page_overscan.pageOverscan=4 increases retained pages/DOM, stays bounded, and preserves the table editing proof.Verification:
PLAYWRIGHT_BASE_URL=http://localhost:3100 PLAYWRIGHT_RETRIES=0 bunx playwright test playwright/integration/examples/pagination.test.ts playwright/integration/examples/query-controls.test.ts --project=chromium
bun typecheck:site
bun --filter slate-layout typecheck
bunx tsc --noEmit --project tsconfig.json --pretty false
bun lint:fix
bun lint
/Users/zbeyens/git/plate-2/.agents/skills/autoreview/scripts/autoreview --mode local
perl -e 'alarm 60; exec @ARGV' /Users/zbeyens/git/plate-2/.agents/skills/autoreview/scripts/autoreview --mode local
Browser proof:
/examples/pagination with strategy=virtualized, page_overscan, the 1000-page stress fixture, and the 10-page table editing path.http://localhost:3100/examples/pagination?strategy=virtualized&page_overscan=4 showed page overscan 4, stress pages 990, pages 1005, and 12 page surfaces.Notes:
1005 pages and 11 table pages.Completion: