Skip to content

Fixes 36363: Lineage zoom drill threshold, dark-mode node text and drag re-renders - #36370

Merged
chirag-madlani merged 6 commits into
mainfrom
chirag-madlani/lineage-zoom-drill-threshold
Oct 28, 2026
Merged

chirag-madlani merged 6 commits into
mainfrom
chirag-madlani/lineage-zoom-drill-threshold

Conversation

@chirag-madlani

@chirag-madlani chirag-madlani commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #36363

Follow-up to #36093 from testing the new lineage experience, plus a mitigation for the drag crash tracked in #36362, which this PR partially addresses.

1. Zoom drill threshold (platform Lineage page). Zooming into a node drilled a level only when the widest card filled 60% of the canvas: zoom 2.45 for a 340px service card on a ~1400px canvas, against a 2.5 maximum.

  • ZOOM_IN_SCREEN_FILL is now 0.35: service and container cards drill at ~1.43, asset cards at ~1.21. The threshold was chosen on a dev build.
  • The fill is measured on the node being zoomed into, not the widest card in the scene.
  • Button and keyboard zoom drill the selected node, else the drillable node nearest the canvas centre within the middle half of each axis. They previously drilled only when exactly one drillable node was in view.
  • A drill waits 250ms for the zoom to settle. Any further move, a pan included, restarts or cancels it. Zooming out is unchanged.

2. Dark mode: lineage node text.

  • All node titles use link-primary in both themes. Previously only the base node did; the rest used link-gray, which is gray-400 on dark cards. titleColor is removed.
  • Node-level DQ badge counts use primary text. They inherited React Flow's fixed #222 node colour, so they were dark on dark cards; the column badges were already light.

3. Drag crash mitigation (#36362). Holding a dragged node at the canvas edge, where React Flow auto-pans, crashed the entity Lineage tab with "Maximum update depth exceeded" in about half of headless repro runs. It reproduces on main too.

  • EntityLineageCanvas gave every node a fresh data object on every drag frame, re-rendering every node. The extended data is now cached per source data.
  • The LineageHandlersContext value was rebuilt every frame, because several handlers depend on nodes; it re-rendered every consumer (~1000 renders of the search box per drag). It now holds stable wrappers that call the latest handler.
  • LineageSearchSelect subscribed to the whole lineage store. It now selects only what it renders and builds options when it opens, applying any search text already typed.

Crash rate went from ~1 in 2 to ~1 in 8, the same as passing nodes to React Flow unwrapped. The rest is the controlled-node round trip on each auto-pan frame; #36362 proposes making the drag uncontrolled.

Type of change:

  • Bug fix

High-level design:

N/A: targeted UI fixes; the reasoning for each is above and in the commit messages.

Tests:

Use cases covered

  • Wheel zoom over a node drills it at ~143% (about a third of the canvas), after the zoom settles.
  • The zoom-in button drills the node nearest the canvas centre.
  • Zooming out returns to the parent level immediately.
  • Node titles and node-level DQ badge counts read as primary text in light and dark.
  • Dragging a node at the canvas edge no longer re-renders every node or handler consumer per frame.

Unit tests

  • LineageMap.utils.test.ts:
    • the drill threshold straddles 35%;
    • getBoxNearestPoint measures to box centres.
  • LineageSearchSelect.test.tsx: a keystroke typed after the menu closed with focus kept in the input is filtered. This fails on this branch's earlier commit and passes on main.
  • Lineage.integration.test.tsx: the handlers context value is the same object after nodes change (fails on main).
  • EntityLineageCanvas.test.tsx (new): each node's extended data is the same object across a position-only change (fails on main).
  • After bot review (8213bce8c9f):
    • isSceneNodeDrillableWithChildren: an empty or non-expandable node is never an unaimed drill target, so the zoom button and the Data Assets rail no longer open an empty service;
    • LineageSearchSelect: nodes loaded while the menu is open appear in the options. The test now uses a real zustand store.
  • Lineage suites: 450/450 pass (src/components/Entity/EntityLineage, src/components/Lineage).
  • Not unit-tested: the 250ms settle timer and centre targeting in LineageMap.component.tsx (no component test exists); both were checked in the browser, below.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

The nine impacted specs (make playwright_affected; no impact-map gaps) ran locally against a production build of 6256b61bfd7, served against a local stack with --workers=4 --retries=1:

  • Flow/LineageSettings
  • Pages/Lineage/DataAssetLineage
  • Pages/Lineage/LineageControls
  • Pages/Lineage/LineageFilters
  • Pages/Lineage/LineageInteraction
  • Pages/Lineage/LineageLargeResponse
  • Pages/Lineage/LineageNodePagination
  • Pages/Lineage/LineageRightPanel
  • Pages/Lineage/PlatformLineage

Result: 168 passed, 4 flaky (passed on retry), 1 failed, 2 skipped.

  • Flaky: three DataAssetLineage tests (two timeouts, one data-not-ready check) and LineageFilters "Domains filter" (a timeout).
  • Failed: LineageFilters "Owners filter", a 60s timeout. "Tag filter" and "Tier filter" were skipped after it in the serial group.
  • The run took 72 minutes, so the shared local stack was under load. Re-run alone with --workers=1 --retries=0, the four metadata-filter tests all passed in 11–15s each.
  • 742b11f2b82 (the search-box reopen fix and tests) came after this build; it was checked with Jest only.

Manual testing performed

  1. Built this branch and served it against a local stack (AI mode, dark and light).
  2. Platform Lineage:
    • wheel zoom over sample_data drilled into it after the step that crossed the threshold;
    • the zoom-in button drilled sample_kafka, the node nearest the centre;
    • zooming out returned to Service Level.
  3. dim_customer lineage: every node title measured rgb(238, 240, 244) in dark and rgb(24, 29, 39) in light.
  4. Drag crash, headless repro (Observability on, base node columns expanded, node held at the top edge): crash rate went from ~1 in 2 runs to ~1 in 8, matching unwrapped nodes.

UI screen recording:

Dark mode (AI mode), built from 8213bce8c9f and served against a local stack with sample data. The "before" images are from main's behaviour on the same data.

Before After
Node titles before-node-titles after-node-titles
Node-level DQ badge counts before-dq-badges after-dq-badges

Zoom drill on the platform Lineage page. The recording shows two drills:

  • wheel-zooming over sample_data, which drills into it once the zoom settles past the threshold;
  • the zoom-in button, which drills sample_kafka, the service with assets nearest the canvas centre.

The local stack has many Playwright seed services, so the map opens at 14%.

lineage-zoom-drill.mp4

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: N/A.
  • For a UI feature or feature task: not applicable (bug fixes), explained above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Self-review: I reviewed the final diff against REVIEW.md (the pr-checklist skill runs it) and fixed every 🔴 finding, or answered it on the line below.
    Reviewed 6256b61bfd7; the one 🔴 (an unfiltered list after reopening by typing) is fixed with a regression test in 742b11f2b82, along with both 🟡 (tests for the identity changes, trimmed comments).
  • Decision check: adds docs/decisions/2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling.md, covering the drill threshold, targeting, settle delay and centre region.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The latest changes appear safe to merge; both previous findings are fixed.

Summary

This PR makes lineage drill sooner after zooming stops, improves dark-mode text, and reduces extra renders during dragging.

  • The platform Lineage map drills into a card sooner, after zooming settles.
  • Entity Lineage reuses node data and handlers during dragging.
  • The Lineage search list updates when its nodes change.
  • Lineage node titles and quality counts use primary text colors.

Reviews (2) · Last reviewed commit: "Lineage: address bot review — empty-serv..." · Reviewed by Greptile

…oom settles

Drilling needed the widest card to fill 60% of the canvas width. A 340px
container on a ~1400px canvas reached that at zoom 2.45 against a 2.5 maximum,
so drilling only happened at the very end of the zoom range.
- ZOOM_IN_SCREEN_FILL is 0.35: containers drill at ~1.43, assets at ~1.21.
- The fill is measured on the node being zoomed into (under the pointer, or
  for button/keyboard zoom the selected node or the drillable node nearest
  the canvas centre), not the widest card in the scene.
- Button/keyboard zoom picks the drillable node nearest the centre within the
  middle half of the canvas on each axis, instead of drilling only when a
  single drillable node is in view.
- A drill waits 250ms for the zoom to settle; any further move, a pan
  included, restarts or cancels it.
Only the base node's title used link-primary; the rest used link-gray, whose
tertiary text read washed out on dark node cards (gray-400 on raised).
All titles now use link-primary in both themes, so the titleColor prop is
gone.
The node footer sets no colour, so the node's test summary counts inherited
React Flow's fixed #222 node text, dark on dark cards, while the column rows'
counts were light. The badge now sets primary text itself.
…rame

Dragging a node and holding it at the canvas edge (React Flow auto-pans)
crashed the entity lineage page with "Maximum update depth exceeded" in about
half of runs; it reproduces on main too.
- EntityLineageCanvas gave every node a fresh `data` object whenever `nodes`
  changed, which is every drag frame, so every node re-rendered. Each node now
  keeps its extended data until its own data changes.
- The handlers context was rebuilt per frame (several handlers depend on
  `nodes`), re-rendering every consumer (~1000 renders of the search box per
  drag). It now holds stable wrappers that call the latest handler.
- LineageSearchSelect subscribed to the whole store and reset its options on
  every node change; it selects only what it renders and builds options on open.

Crash rate in a headless repro went from ~1 in 2 to ~1 in 8, the same as
passing nodes to React Flow unwrapped. The rest is the controlled-node round
trip per auto-pan frame; making the drag uncontrolled is a follow-up.
- LineageSearchSelect rebuilds options on open; typing into the focused
  input reopens the menu after the filter for that text was queued, and
  the rebuild cancelled it, so a single keystroke or paste showed the
  unfiltered list. Opening now applies the current search text.
- Regression tests: the keystroke-after-close case (fails on the previous
  commit, passes on main), the handlers context staying the
  same object when nodes change, and EntityLineageCanvas keeping each
  node's extended data across a position-only change. Each fails without
  its fix.
- Comments trimmed to the reason.
@chirag-madlani
chirag-madlani requested a review from a team as a code owner October 27, 2026 15:20
@chirag-madlani
chirag-madlani requested review from anuj-kumary and a balanced review from Copilot October 27, 2026 15:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

The linked issue has a description and all required Shipping project fields set. Thanks!

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Oct 27, 2026
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.76% (131340/164651) 66.26% (46298/69870) 69.23% (26293/37978)

@chirag-madlani chirag-madlani added the To release Will cherry-pick this PR into the release branch label Oct 27, 2026
…ns, ADR

- Unaimed drills (zoom button/keyboard, the Data Assets rail) pick only a
  drillable node with children near the centre, sharing the predicate
  getRailDrillFallbackNode already used. The scene API marks empty containers
  expandable, so the centre fallback could open an empty service; the rail
  again falls back to a service with assets.
- LineageSearchSelect follows nodes added or removed while its menu is open,
  via a node-id key that drag-only updates leave unchanged. The search filter
  moves to LineageSearchSelect.utils.ts; its test uses a real zustand store
  so subscriptions behave as in the app.
- Record ADR:2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling
  and cite it at the constants.
Copilot AI balanced review requested due to automatic review settings October 27, 2026 15:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@gitar-bot

gitar-bot Bot commented Oct 27, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk · Changing lineage zoom thresholds, drill targeting, and search refresh behavior could open unexpected views or omit newly loaded nodes.

Lineage zoom now drills at 35% screen fill on the zoomed node after a 250ms settle, with node titles and DQ badge counts moved to primary text for dark mode and fewer re-renders per drag frame. The missing decision record was added and cited at the threshold and settle constants, resolving the open finding. No open issues remain.

✅ 1 closed
✅ Quality: Semantic-zoom drill threshold and settle delay have no decision record

📄 openmetadata-ui/src/main/resources/ui/src/components/Lineage/LineageMap/LineageMap.utils.ts:797-799 📄 openmetadata-ui/src/main/resources/ui/src/components/Lineage/LineageMap/LineageMap.component.tsx:159-164 📄 openmetadata-ui/src/main/resources/ui/src/components/Lineage/LineageMap/LineageMap.component.tsx:1716-1730
This PR changes ZOOM_IN_SCREEN_FILL from 0.6 to 0.35, adds a 250ms SEMANTIC_ZOOM_IN_SETTLE_MS debounce and a 0.5 ZOOM_TARGET_CENTRE_REGION, and moves the fill measurement from the widest card to the zoomed card. Each of these values is a judgment call: the description says 0.35 "was tuned on a dev build". The behaviour rule also appears only in the description: "A drill waits 250ms for the zoom to settle, and any further move, including a pan, restarts or cancels it. Zooming out is unchanged and returns to the parent level immediately." Nothing under docs/decisions/ covers lineage semantic zoom. The repo squash-merges, so this reasoning will be lost and the next tuning PR will have nothing to start from.

A record could say: "On the lineage map, zooming in drills one level once the card being zoomed into fills 35% of the canvas on either axis (the widest card if there is no target). The target is the card under the pointer, the selected card, or the drillable card nearest the canvas centre within the middle 50%. The drill fires only after the viewport has been still for 250ms, and any further move cancels it. Zooming out goes back to the parent level immediately, once the graph fills less than 1/3 of the canvas."

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 2 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 2 warning(s) across 2 changed file(s).

Count Rule
2 react-hooks/exhaustive-deps
All findings
Location Rule Message
🟡 src/components/Entity/EntityLineage/CustomNodeV1.component.tsx:392:6 react-hooks/exhaustive-deps React Hook useMemo has an unnecessary dependency: 'onSceneNodeSelect'. Either exclude it or remove the dependency array.
🟡 src/components/Lineage/EntityLineageCanvas/EntityLineageCanvas.tsx:132:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'updateEntityData'. Either include it or remove the dependency array.

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@sonarqubecloud

Copy link
Copy Markdown

@Rohit0301
Rohit0301 disabled auto-merge October 27, 2026 17:53
@Rohit0301
Rohit0301 added this pull request to the merge queue Oct 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — failed_checks (2026-10-27T19:53:22Z)

Blocked the queue: playwright-summary

@chirag-madlani
chirag-madlani added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit 4ada25a Oct 28, 2026
102 of 104 checks passed
@chirag-madlani
chirag-madlani deleted the chirag-madlani/lineage-zoom-drill-threshold branch October 28, 2026 05:47
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.1 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.1 opened as #36390 (clean cherry-pick). It merges itself once the checks pass.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Not backported to 2.0. Claude looked at the conflict and declined to resolve it:

Backport aborted: PR #36370 → 2.0

Reason

PR #36370 ("Fixes 36363: Lineage zoom drill threshold, dark-mode node text and
drag re-renders") is built entirely on top of the new store-based lineage
canvas architecture (components/Lineage/Lineage, components/Lineage/LineageMap,
components/Lineage/EntityLineageCanvas, useLineageStore) that was
introduced on main by PR #33921 ("refactor(lineage): replace
LineageProvider with Lineage component + useLineageStore").

That refactor was never backported to 2.0. The 2.0 branch still has the
pre-refactor, monolithic LineageProvider.tsx (2284 lines) driving the
lineage view, and none of the following paths exist on 2.0 at all:

  • openmetadata-ui/.../components/Lineage/Lineage/Lineage.tsx
  • openmetadata-ui/.../components/Lineage/LineageMap/LineageMap.component.tsx
  • openmetadata-ui/.../components/Lineage/LineageMap/LineageMap.utils.ts
  • openmetadata-ui/.../components/Lineage/EntityLineageCanvas/EntityLineageCanvas.tsx

The "semantic zoom / drill" concept this PR fixes the threshold for (ZOOM_IN_SCREEN_FILL,
drill-on-settle, drillable-node-near-centre selection, etc.) does not exist
anywhere in 2.0's lineage code — it's a feature of the new canvas, not a
behavior of the old LineageProvider. Confirmed by searching the old
components/Entity/EntityLineage tree on origin/2.0 for any zoom/drill
logic: none found.

This is why git cherry-pick -x produced conflicts that are not ordinary
textual conflicts: git's rename detection matched LineageProvider.tsx
(2.0, "ours") against Lineage.tsx (the commit, "theirs") as a rename,
because the two files are historically related but have diverged completely
in shape and responsibility since the #33921 refactor split one file into
the Lineage/, LineageMap/, EntityLineageCanvas/ module tree.

Why this can't be sensibly adapted

  • The zoom-drill-threshold fix (ZOOM_IN_SCREEN_FILL = 0.35, settle-timer,
    centre-node selection for button/keyboard zoom) only makes sense against
    LineageMap.component.tsx's zoom/pan model, which doesn't exist on 2.0.
  • The drag re-render fix changes how EntityLineageCanvas memoizes per-node
    data and how the handlers context is built — both are structures specific
    to the post-refactor canvas, not analogous to anything in LineageProvider.tsx.
  • The remaining smaller pieces (title color → link-primary, DQ badge text
    color, LineageSearchSelect live-refresh-on-open) touch CustomNodeV1,
    LineageNodeLabelV1, and LineageSearchSelect, which do exist on 2.0,
    but their behavior in this PR is wired through the new handlers
    context/useLineageStore subscriptions that 2.0 doesn't have. Porting
    just these fragments would mean re-deriving equivalent logic against the
    old LineageProvider context API, which is a reimplementation, not a
    backport, and risks diverging from what was actually reviewed and shipped
    in Fixes 36363: Lineage zoom drill threshold, dark-mode node text and drag re-renders #36370.

Backporting this correctly would first require backporting the #33921
lineage-canvas refactor to 2.0, which is out of scope for this task.

State left behind

The cherry-pick (git cherry-pick -x 4ada25ae71a2c0ab068b9ea5457acd88fd2e1475)
is left in progress with unmerged paths, as found. No files were staged or
committed. A maintainer should run git cherry-pick --abort to clean up.

resolver run

chirag-madlani added a commit that referenced this pull request Oct 28, 2026
…ag re-renders (#36370) (#36390)

* Lineage map: drill at 35% screen fill, on the zoomed node, once the zoom settles

Drilling needed the widest card to fill 60% of the canvas width. A 340px
container on a ~1400px canvas reached that at zoom 2.45 against a 2.5 maximum,
so drilling only happened at the very end of the zoom range.
- ZOOM_IN_SCREEN_FILL is 0.35: containers drill at ~1.43, assets at ~1.21.
- The fill is measured on the node being zoomed into (under the pointer, or
  for button/keyboard zoom the selected node or the drillable node nearest
  the canvas centre), not the widest card in the scene.
- Button/keyboard zoom picks the drillable node nearest the centre within the
  middle half of the canvas on each axis, instead of drilling only when a
  single drillable node is in view.
- A drill waits 250ms for the zoom to settle; any further move, a pan
  included, restarts or cancels it.

* Lineage nodes: every title in primary text

Only the base node's title used link-primary; the rest used link-gray, whose
tertiary text read washed out on dark node cards (gray-400 on raised).
All titles now use link-primary in both themes, so the titleColor prop is
gone.

* Lineage nodes: node-level DQ badge counts in primary text

The node footer sets no colour, so the node's test summary counts inherited
React Flow's fixed #222 node text, dark on dark cards, while the column rows'
counts were light. The badge now sets primary text itself.

* Lineage: stop re-rendering every node and handler consumer per drag frame

Dragging a node and holding it at the canvas edge (React Flow auto-pans)
crashed the entity lineage page with "Maximum update depth exceeded" in about
half of runs; it reproduces on main too.
- EntityLineageCanvas gave every node a fresh `data` object whenever `nodes`
  changed, which is every drag frame, so every node re-rendered. Each node now
  keeps its extended data until its own data changes.
- The handlers context was rebuilt per frame (several handlers depend on
  `nodes`), re-rendering every consumer (~1000 renders of the search box per
  drag). It now holds stable wrappers that call the latest handler.
- LineageSearchSelect subscribed to the whole store and reset its options on
  every node change; it selects only what it renders and builds options on open.

Crash rate in a headless repro went from ~1 in 2 to ~1 in 8, the same as
passing nodes to React Flow unwrapped. The rest is the controlled-node round
trip per auto-pan frame; making the drag uncontrolled is a follow-up.

* Lineage: address self-review — search filter on reopen, identity tests

- LineageSearchSelect rebuilds options on open; typing into the focused
  input reopens the menu after the filter for that text was queued, and
  the rebuild cancelled it, so a single keystroke or paste showed the
  unfiltered list. Opening now applies the current search text.
- Regression tests: the keystroke-after-close case (fails on the previous
  commit, passes on main), the handlers context staying the
  same object when nodes change, and EntityLineageCanvas keeping each
  node's extended data across a position-only change. Each fails without
  its fix.
- Comments trimmed to the reason.

* Lineage: address bot review — empty-service drills, live search options, ADR

- Unaimed drills (zoom button/keyboard, the Data Assets rail) pick only a
  drillable node with children near the centre, sharing the predicate
  getRailDrillFallbackNode already used. The scene API marks empty containers
  expandable, so the centre fallback could open an empty service; the rail
  again falls back to a service with assets.
- LineageSearchSelect follows nodes added or removed while its menu is open,
  via a node-id key that drag-only updates leave unchanged. The search filter
  moves to LineageSearchSelect.utils.ts; its test uses a real zustand store
  so subscriptions behave as in the app.
- Record ADR:2026-10-27-lineage-semantic-zoom-drills-at-35-percent-after-settling
  and cite it at the constants.

(cherry picked from commit 4ada25a)

Co-authored-by: Chirag Madlani <[email protected]>
mohityadav766 added a commit that referenced this pull request Oct 29, 2026
#36370 drills in once a card fills 35% of the viewport and the zoom has
settled for 250ms, and lets button zoom drill the drillable node nearest
the canvas centre. LineageMapPage still wheels over its own node, which
targets it either way; its Javadoc and the scale doc now say so.
mohityadav766 added a commit that referenced this pull request Nov 4, 2026
…sting (#35892)

* Fixes #35891: Fix hierarchical lineage issues found in 2.1 release testing

Lineage page (/lineage):
- The header names the lens the map is drawn through (lineageLens), not
  the legacy platformView parameter, which the map no longer reads.
- The browser tab title names the focused entity; "Entity Lineage" had no
  placeholder.
- PNG export goes through the shared onExportClick, which reads the graph
  the map now publishes to the lineage store: its laid-out nodes and its
  edges. Lineage no longer mirrors its empty classic graph over them on
  this page.

PNG export (both lineage views):
- The capture fits its frame after beforeCapture mounts the off-screen
  nodes, at the size it renders (ExportData.getViewport), and hands that
  frame to the edge overlay. A frame fitted when the modal opened shrank
  any graph with nodes out of view into a corner of the image.

Lineage settings:
- The classic page and the AI-mode form send back the fields they do not
  edit. The settings PUT replaces the whole value, so every save dropped
  graphPerformanceConfig.

Scene API:
- GET /v1/lineage/scene answers a malformed query_filter with 400, not 500.

Nightly scale benchmark (LineageScenePerformanceScaleIT):
- Take the server handle before seeding, which starts the admin-token
  refresher, and call through server.sdk(). The seed outlasted the login
  token, and the nightly failed with 401 Expired token.
- LineageMapPage follows the map markup #34551 changed: the root crumb is
  clicked through the breadcrumb trail, fit to screen is a button, and the
  map renders lineage-map-canvas again, on a wrapper because React Flow
  overwrites its own root's data-testid. Zoom-in wheels over the
  benchmark's own service, because the zoom buttons never drill while
  several services are in view.

* chore(playwright): auto-refresh impact-map.generated.json

* Keep ExportData.viewport for exports framed up front

Collate's ER diagram export still passes a viewport fitted with
getViewportForLineageExport(nodes, selector), so both keep their
signatures from main. The lineage export fits its frame with the new
getExportViewportForNodes through getViewport, which takes precedence
over a preset viewport.

* Use the core download icon on the lineage export button

A new import from assets/svg fails the UI deprecation guard; take Download01 from @openmetadata/ui-core-components/icons instead.

* Do not offer saving lineage settings that failed to load

The settings PUT replaces the whole value, so saving a form whose load
failed would wipe what it does not edit, graphPerformanceConfig included.
Both lineage settings forms show the error state with Reload until it loads.

* Export the lineage map from the store so the AI-mode header button works

#36093 moved the Lineage page's export button into the AI-mode page
header, which renders outside <Lineage>, where the lineage handlers
context only has its no-op default. LineageExportButton now builds the
PNG export itself from the graph the map publishes to the lineage store,
and takes the header's button size.

The PNG options (frame, edge overlay, capture hooks) move into
getLineagePngExportOptions, shared with the asset Lineage tab. Nothing on
the Lineage page calls onExportClick any more, so it drops its platform
branch.

* Describe the map's settled 35% zoom drill in the benchmark docs

#36370 drills in once a card fills 35% of the viewport and the zoom has
settled for 250ms, and lets button zoom drill the drillable node nearest
the canvas centre. LineageMapPage still wheels over its own node, which
targets it either way; its Javadoc and the scale doc now say so.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lineage UI follow-up: zoom drill threshold, dark-mode node text, drag re-renders

3 participants