Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ door's first-tap prompt, shown once; features/lessons.js).
`stripPins` so a plain reload keeps the device's arrangement and seeds the
next bid — the both-places rule the sidebar filter scope uses. Wiped by the
sign-out key list.)
- Per-project, in save/load: `codes` (rulebook slice 4 — `{ plumbing?, electrical?, hvac?, jurisdiction?, occupancy? }`, only what the project CHOSE (null = never chosen; `occupancy` is `'public' | 'private'`, the fixture-unit column the project reads, WATER-PLAN rung 1, set from the flip word in Project Settings' Codes row hint and resolved to public when unchosen); `getProjectCodes()` layers the device default (localStorage `codesDefault`, written on every change like `defaultTrade`) and `CODE_DEFAULTS` under it; rides every intake beside `ceilingHeightFt` — save payloads, hydrate, the IndexedDB backup, canvas JSON export/import, copy/load/pdf-intake), `trade` (`'plumbing' | 'electrical' | 'hvac' | null` — the Quick creator's vocabulary and the handoff's stamp; explicit, set from the Quick tab's Trade segment or Project Settings, null = never chosen = plumbing behavior), `ceilingHeightFt` + `makeUpFt` (vertical by default — with a counter's `mountHeightIn` the Chain tool writes ceiling − mount + make-up as the run's drop; Room Sizer rooms override the ceiling; null ceiling = off), `bidCheck` (S5 — `{ manual: { <row-id>: true }, loadAmps?, volts? }`: the Bid Check's manual ticks and the voltage-drop defaults; the auto verdicts are computed, never stored; D9 adds the duct rows — `duct-*` ids from duct-model's `DUCT_BID_CHECK_ROWS`, ticked in the same `manual` map once the project has a duct run), `maxZoom`, `groups`, `ductSettings` (the Duct
- Per-project, in save/load: `codes` (rulebook slice 4 — `{ plumbing?, electrical?, hvac?, jurisdiction?, occupancy? }`, only what the project CHOSE (null = never chosen; `occupancy` is `'public' | 'private'`, the fixture-unit column the project reads, WATER-PLAN rung 1, set from the flip word in Project Settings' Codes row hint and resolved to public when unchosen); `getProjectCodes()` layers the device default (localStorage `codesDefault`, written on every change like `defaultTrade`) and `CODE_DEFAULTS` under it; rides every intake beside `ceilingHeightFt` — save payloads, hydrate, the IndexedDB backup, canvas JSON export/import, copy/load/pdf-intake), `trade` (`'plumbing' | 'electrical' | 'hvac' | null` — the Quick creator's vocabulary and the handoff's stamp; explicit, set from the Quick tab's Trade segment or Project Settings, null = never chosen = plumbing behavior), `ceilingHeightFt` + `makeUpFt` (vertical by default — with a counter's `mountHeightIn` the Chain tool writes ceiling − mount + make-up as the run's drop; Room Sizer rooms override the ceiling; null ceiling = off), `bidCheck` (S5 — `{ manual: { <row-id>: true }, loadAmps?, volts? }`: the Bid Check's manual ticks and the voltage-drop defaults; the auto verdicts are computed, never stored; D9 adds the duct rows — `duct-*` ids from duct-model's `DUCT_BID_CHECK_ROWS`, ticked in the same `manual` map once the project has a duct run), `maxZoom` (the project's own zoom ceiling, 400% unset; DEEP-ZOOM 2026-10-14: `getMaxZoom()` holds it under the device's `deviceZoomCeiling()`, 1200% on a small canvas cap or a low-memory Chromium else 5000%, then the layout wall over the sheet's longest side, and the save blob keeps the project's own through `getProjectMaxZoom`, never the device's), `groups`, `ductSettings` (the Duct
Schedule knobs — `seamWastePct` (+15 default), `fittingFactorPct` (40) and
the Counted|Factor `fittingMode`, plus the D6 design-build ductulator knobs
`frictionInPer100ft` (0.08) and `maxVelocityFpm` (1200), edited on the
Expand Down
145 changes: 81 additions & 64 deletions ARCHITECTURE.md

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,41 @@ expired recovery UX" work occupies that slot).

---

## feat(zoom): zoom past 1200% with a sharp overlay window (DEEP-ZOOM, 2026-10-14)

Wendi wanted to zoom in past 1200%, and at depth her marks blurred while the sheet stayed crisp.
The plan (journeys/plans/DEEP-ZOOM.md, measured on main the same day) in three parts:

- **The overlay window** (part 1). Past the canvas budget `#annCanvas` is sized to the clamped
`#pdfCanvas` buffer, so at 3000% the marks drew at a fifth of the screen's density. A third
canvas, `#annWindowCanvas`, is now the visible area at full density: `renderAnnotationsInner`
is split into the sizing and `paintOverlay(ctx, width, height, page)`, and
`renderAnnotationWindow` runs that same body with `currentRenderZoom`, `currentEffDpr` and a
new `overlayOffset` rebound around the call (restored in a finally), boxed by the crop tile's
math in container units with the k factor, so a mid-gesture paint and a tile-first commit are
screen-sharp too. Painted with every overlay paint (the window first, so the page pass leaves
the overlays' DOM anchors in page units), re-cut at the four pan-end sites beside
`scheduleCropTile` and at a cold zoom commit before its tile rasters; hidden while the page
overlay is not meaningfully soft (the crop tile's 1.15 deficit) and when one screen of pixels
would exceed the render budget. The page pass is byte-identical (render-pixels holds).
Found on the first 3000% screenshot: the window is transparent, and under it the page overlay
drew every mark fat and soft (raw buffer widths at a fifth of the density), haloing the crisp
marks; so the page pass ends by clearing the window's box out of itself, under the window only
the window shows, the soft overlay stands only in the strips a pan reveals, and a pan end or a
cold commit repaints the whole overlay (`recutOverlayWindow`). The aim loupe samples the crop
canvas and the window where they stand, so a tablet keeps sharp marks under the loupe at depth.
- **The ceiling** (part 2). `getMaxZoom()` is the project's own ceiling under
`deviceZoomCeiling()`: 1200% where the canvas probe found under 32 Mpx (iOS Safari) or Chromium
reports under 4 GB, else 5000%, then Firefox's layout wall as 16e6 over the sheet's longest
side. The save blob and the project payload carry `getProjectMaxZoom()`, never the device's.
Zoom Settings' slider runs to the device's ceiling, shows the project's own held to it with a
hint where the device holds it, and writes only when moved. The rail gains 2000, 3000 and 5000.
- **The backdrop budget** (part 3). Past 4× `effectiveDpr` holds the full-page buffer to 24 Mpx,
about half the peak memory at depth, since the tiles and the window carry the screen.
- app.js (`// SECTION: Deep-zoom overlay window`), app/index.html, styles.css, features/zoom.js,
features/zoom-rail.js, deep-zoom.spec.js (new), zoom.spec.js (the slider's max is the device's
ceiling), the ARCHITECTURE rows and catalog bullet, AGENTS.md's `maxZoom` field, the plan file's
Built section, the PUNCHLIST row closed, sw.js, the TOC and the file map restamped.
## docs: the hand-kept lists caught up to main at 655a023 (2026-10-13)

A read of AGENTS.md, ARCHITECTURE.md, RECONSTITUTE.md, SUPABASE_SETUP.md, FEATURES.md,
Expand Down
1 change: 0 additions & 1 deletion PUNCHLIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ How agents add to this list: AGENTS.md, "Recording a to-do".
| ICON-STORE | Opening a project REPLACES the user's own icon store with its `customIconPaths` (annotation-model.js:509 and 444 into app.js:209, wholesale; a project with an empty list empties the store), and they ride the user's later saves. Since #268 they are inert, but should a project be able to add icons to a user's store at all? Decide, then build | decision | ⚑ call | — | |
| DEMO-TRACK | The demo track behind the test drive's "Try it" is built for all three trades (phases 1 to 3 landed 2026-10-02). Left: a tester's real tablet and phone walk with a stopwatch against the 60 s target | test | tester | — | [DEMO-TRACK.md](journeys/plans/DEMO-TRACK.md#open-after-phase-2) |
| BOARD-QUIET | All Bids for a lead: the board becomes a quiet list, actions on the hovered row, exceptions only, grouped by estimator once there are enough; PEOPLE-TWINS, REVIEW-BAR, DROP-CARD-BUTTONS and CLOUD-OFF-ICON shipped the first steps (the twin fleet off by default, the decision in the opened bid only, oldest waiting first, the cloud silent unless the PDF is missing) | build | agent | — | [BID-BOARD-QUIET.md](journeys/plans/BID-BOARD-QUIET.md#what-is-left) |
| DEEP-ZOOM | Zoom past 1200% for Wendi: a full-density overlay window for the marks at deep zoom, the ceiling to 5000% with the device and per-sheet guard rails, and a smaller full-page backdrop past 4×; measured safe to 30000% on main, the blur is the marks, not the sheet | build | agent | — | [DEEP-ZOOM.md](journeys/plans/DEEP-ZOOM.md#the-build) |
Loading
Loading