Repository navigation
fix(lineage): drill in when a fast zoom-in reaches the maximum zoom - #37080
Conversation
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
| - **Revisions:** v1 2026-10-27 (initial); v2 2026-11-04 (a settled zoom is judged against the | ||
| zoom it last rested at) |
There was a problem hiding this comment.
💡 Quality: ADR v2 rewrites the v1 Decision text in place, with no Amendment section
docs/decisions/README.md (lines 38-41) says each amendment adds a dated Revisions entry and an ## Amendment section below the original. This PR adds the v2 entry, but it rewrites the v1 Decision bullet in place, so "any further move … cancels or restarts it" becomes "restarts that wait". The record has no ## Amendment section, so a reader can no longer see what v1 decided, or that v1's per-move comparison is what caused the stuck-at-250% bug. To fix this, put the original bullet back and add an ## Amendment (v2, 2026-11-04) section. That section should state the new rule: every move restarts the 250ms settle window; when the window ends, the zoom is compared with the zoom the viewport last rested at, not with the previous move; the resting zoom is then updated, so a pan after a settled zoom never drills.
Restore the v1 bullet and add the amendment section after ## Consequences:
## Amendment (v2, 2026-11-04)
Any further move, a pan included, restarts the 250ms settle wait (it no longer cancels it). When
the viewport settles, the zoom is compared with the zoom it last rested at, not with the move
before, and that zoom becomes the new resting zoom. Once the zoom reaches its maximum, the wheel
keeps sending moves that no longer change the zoom, so a per-move comparison never drilled.
Guard: `PlatformLineage.spec.ts` (a fast zoom-in past the maximum still drills).
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 0 closed / 1 findings🟡 Medium risk · Updating semantic-zoom settling and zoom-direction tracking could open an unintended lineage level after mixed zoom and pan gestures. Fixes a fast zoom-in that stalls at the 250% maximum and never drills, by judging each zoom against the resting zoom instead of the previous move and restarting the 250ms settle wait on every move. Approved with a suggestion: the decision record rewrites the v1 Decision text in place instead of adding the required 💡 Quality: ADR v2 rewrites the v1 Decision text in place, with no Amendment section📄 docs/decisions/2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling.md:4-5 📄 docs/decisions/2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling.md:27-30
Restore the v1 bullet and add the amendment section after `## Consequences`🤖 Prompt for agentsVerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Issue
No issue. Found while checking why
LineageScenePerformanceScaleITstill fails itsinteraction-semantic-zoom-instep after PR #35892.Problem
On the platform Lineage map, zooming in over a card should open the next level (a service's assets, a table's columns) once the card fills 35% of the canvas and the view stops moving. A fast zoom-in (quick wheel or trackpad) instead stops at the 250% maximum and never drills. Wheeling again does nothing, so the user must zoom out and retry slowly.
Why it happened
The decision record says a drill fires once the view has been still for 250ms, and that any further move "cancels or restarts" that wait. The code cancelled the wait on every move, but only started it again when the move made the zoom bigger than the move before it.
At 250% the browser keeps sending moves while the wheel turns, but the zoom no longer changes. Each of those moves cancelled the pending drill and none started it again.
The root cause was what each move was compared with. Comparing with the previous move answers "did this event zoom in?". The decision needs "did the user zoom in since the view last stood still?".
What this PR changes
What users will notice
A fast zoom-in now drills, like a slow one. Slow zooming, panning and zooming out are unchanged.
How it was tested
PlatformLineage.spec.ts: opens a table's scene, sends 40 wheel steps over the table without pausing, and expects the columns level. It fails on main (stuck at 250%) and passes here.LineageScenePerformanceScaleITat its nightly size (50,000 tables) against a server built from this branch: all 3 tests pass and all 10 map interactions are measured, including zoom-in (p95 2.3s). On main, zoom-in times out.LineageMapunit tests (88) pass; ESLint, Prettier and import order are clean.Not in this PR
Main's UI build is broken by the
lru-cachebump in PR #37062; PR #37073 fixes it. I applied that fix locally to build and test this change, but it is not part of this PR.