The board learns to zoom — eight rungs on one ruler, and Actual Size is the untouched board

View ▸ Zoom In / Zoom Out / Actual Size (⌘+ / ⌘− / ⌘0): 75%–200% in eight
rungs, app-wide and persisted (the Show Comments precedent) — a viewing
comfort, not a property of any one board. The level travels as
BoardZoomContext in the environment, injected on BoardView alone so the
banner strip, search bar, sheets and popovers stay at the system size; the
environment is also what carries it through CardFaceView's equality gate,
which compares nothing that moves with the level. Every BoardMetrics figure
follows zoom.bodyPointSize — card and lane chrome, drag replicas and the
count badge, the resize handle, the trash column — and the drop registry
carries the ruler for event-time reads, with the autoscroller's three
reaches turning font-derived (reachSide named as the stripGap it always
equalled). Lanes still divide the window; zoom never moves the window or
its floor. The toolbar gains a catalog-only Zoom In/Out pair mirroring the
menu rows' predicate; zoom holds shut mid-drag (frozen geometry), each rung
announces itself to VoiceOver, and the render suite pins both invariants:
a rung repaints every face, a no-op Actual Size repaints nothing.

Claude-Session: https://claude.ai/code/session_014PtZdPwqZuqEDLc6wZMtEy
This commit is contained in:
2026-08-07 11:22:02 -04:00
parent d5ad21c3da
commit cfee4a4b41
29 changed files with 1491 additions and 101 deletions
+4 -4
View File
@@ -96,7 +96,7 @@ struct RestingLayoutCacheTests {
let layout = cache.layout(inLane: lane1, of: store, registry: registry, hidden: [])
let nominal = LaneDropRegistry.nominalCardHeight
let nominal = registry.nominalCardHeight
#expect(layout?.heights == [40, nominal, nominal])
}
@@ -194,7 +194,7 @@ struct RestingLayoutRegroundingTests {
// uncached path left it.
let reground = cache.layout(inLane: lane1, of: store, registry: registry, hidden: [])
#expect(reground?.cardIDs == [card1, foreignCard, card2, card3])
#expect(reground?.heights == [40, LaneDropRegistry.nominalCardHeight, 60, 80])
#expect(reground?.heights == [40, registry.nominalCardHeight, 60, 80])
#expect(cache.builds == 2)
#expect(cache.reuses == 0)
}
@@ -288,7 +288,7 @@ struct RestingLayoutMeasurementTests {
registry.removeHeight(card3)
#expect(cache.layout(inLane: lane1, of: store, registry: registry, hidden: [])?.heights
== [40, 60, LaneDropRegistry.nominalCardHeight])
== [40, 60, registry.nominalCardHeight])
#expect(cache.builds == 2)
// A second removal of the same card is not a change, and must not cost a rebuild.
@@ -312,7 +312,7 @@ struct RestingLayoutMeasurementTests {
#expect(cache.layout(inLane: lane1, of: store, registry: settled, hidden: [])?.heights
== [40, 60, 80])
let nominal = LaneDropRegistry.nominalCardHeight
let nominal = opening.nominalCardHeight
#expect(cache.layout(inLane: lane1, of: store, registry: opening, hidden: [])?.heights
== [nominal, nominal, nominal])
#expect(cache.builds == 2)