Skip to content

Fixes 36242: Use the shared AI page layout on Platform Lineage - #36253

Merged
chirag-madlani merged 2 commits into
mainfrom
chirag-madlani/ai-lineage-page-layout
Oct 26, 2026
Merged

chirag-madlani merged 2 commits into
mainfrom
chirag-madlani/ai-lineage-page-layout

Conversation

@chirag-madlani

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

Copy link
Copy Markdown
Collaborator

Describe your changes:

Fixes #36242

In AI mode, /lineage rendered through the classic PageLayoutV1, so its page frame didn't match the other AI pages (Metrics, Alerts, Data Quality, AI Automations):

  • Header gutter: 16px horizontal and none on top, where other AI pages have a uniform 8px.
  • Content: no 16px offset under the header and no 8px side inset.
  • Canvas height: a fixed calc(100vh - @om-navbar-height - 98px) based on the classic navbar and header, so in AI mode it overflowed the page by 16px and the bottom edge scrolled.

In AI mode the page now renders the standard AI structure: core PageLayout → PageLayout.PageHeader (gradient) → PageLayout.Content className="tw:pt-4", the same as MetricListPage. The canvas fills the content region through a .platform-lineage-container-fill modifier (height: 100%). Classic mode is unchanged: PageLayoutV1 + header card + the fixed-height canvas.

The page title and LineageConfigModal are hoisted so both branches share them. The AI branch sets the title with the app's store-based DocumentTitle, the same as the ContextCenter pages and TaskDetailsPage.

Type of change:

  • Bug fix

High-level design:

N/A — small change (3 files, one page).

Tests:

Use cases covered

  • AI mode: /lineage header, the gap under the header and the canvas insets match the other AI pages, and the canvas fills the page with no overflow.
  • AI mode: search, export and settings stay in the gradient header, the canvas renders inside PageLayout.Content, and the browser tab title is set.
  • Classic mode: header card, canvas toolbar and fixed-height canvas are unchanged.

Unit tests

  • Updated src/pages/PlatformLineage/PlatformLineage.test.tsx:
    • The core-components mock now includes PageLayout and PageLayout.Content.
    • The AI-mode test asserts the canvas renders inside the content region, the classic PageLayoutV1 isn't used, and the document title is label.entity-lineage.
  • npx jest src/pages/PlatformLineage: 40 passed, 0 failed.
  • Coverage on PlatformLineage.tsx: 96.9% lines, 96.77% branches.

Backend integration tests

  • Not applicable (UI-only change).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • No new spec: this is a layout change, and the existing lineage specs cover the page. Ran the impact-mapped and smoke specs locally against a production build of this branch, served on 127.0.0.1:3021 with /api proxied to a local :8585 server.

Local Playwright run: FAILED

  • Commit: 90572d3e4cfd (base origin/main)
  • Started: 2026-10-26T11:55:43.927Z · Playwright 1.57.0 · 54.3 min
  • Totals: 294 passed, 1 failed, 0 flaky, 0 skipped across 18 selected specs
Spec Reason Passed Failed Flaky Skipped
playwright/e2e/Features/ClassificationImportExport.spec.ts impact-mapped 4 0 0 0
playwright/e2e/Features/Dashboards.spec.ts smoke 4 0 0 0
playwright/e2e/Features/ImpactAnalysis.spec.ts impact-mapped 24 0 0 0
playwright/e2e/Features/LineageExportPNGSnapshot.spec.ts impact-mapped 1 0 0 0
playwright/e2e/Features/SampleDataTableOperations.spec.ts impact-mapped 11 0 0 0
playwright/e2e/Flow/LineageSettings.spec.ts impact-mapped 3 0 0 0
playwright/e2e/Flow/Navbar.spec.ts smoke 22 0 0 0
playwright/e2e/Pages/DataMarketplace.spec.ts smoke 5 0 0 0
playwright/e2e/Pages/Lineage/DataAssetLineage.spec.ts impact-mapped 101 0 0 0
playwright/e2e/Pages/Lineage/LineageControls.spec.ts smoke 8 0 0 0
playwright/e2e/Pages/Lineage/LineageFilters.spec.ts impact-mapped 14 1 0 0
playwright/e2e/Pages/Lineage/LineageInteraction.spec.ts impact-mapped 23 0 0 0
playwright/e2e/Pages/Lineage/LineageLargeResponse.spec.ts impact-mapped 1 0 0 0
playwright/e2e/Pages/Lineage/LineageNodePagination.spec.ts impact-mapped 5 0 0 0
playwright/e2e/Pages/Lineage/LineageRightPanel.spec.ts impact-mapped 11 0 0 0
playwright/e2e/Pages/Lineage/PlatformLineage.spec.ts impact-mapped 8 0 0 0
playwright/e2e/Pages/Policies.spec.ts smoke 3 0 0 0
playwright/e2e/Pages/Users.spec.ts impact-mapped 43 0 0 0
playwright/e2e/auth.setup.ts setup 1 0 0 0
playwright/e2e/entity-data.setup.ts setup 1 0 0 0
playwright/e2e/entity-data.teardown.ts setup 1 0 0 0
Command
cd openmetadata-ui/src/main/resources/ui
npx playwright test playwright/e2e/Features/ClassificationImportExport.spec.ts playwright/e2e/Features/Dashboards.spec.ts playwright/e2e/Features/ImpactAnalysis.spec.ts playwright/e2e/Features/LineageExportPNGSnapshot.spec.ts playwright/e2e/Features/SampleDataTableOperations.spec.ts playwright/e2e/Flow/LineageSettings.spec.ts playwright/e2e/Flow/Navbar.spec.ts playwright/e2e/Pages/DataMarketplace.spec.ts playwright/e2e/Pages/Lineage/DataAssetLineage.spec.ts playwright/e2e/Pages/Lineage/LineageControls.spec.ts playwright/e2e/Pages/Lineage/LineageFilters.spec.ts playwright/e2e/Pages/Lineage/LineageInteraction.spec.ts playwright/e2e/Pages/Lineage/LineageLargeResponse.spec.ts playwright/e2e/Pages/Lineage/LineageNodePagination.spec.ts playwright/e2e/Pages/Lineage/LineageRightPanel.spec.ts playwright/e2e/Pages/Lineage/PlatformLineage.spec.ts playwright/e2e/Pages/Policies.spec.ts playwright/e2e/Pages/Users.spec.ts --workers=4

The one failure is local seed data, not this change. LineageFilters › verify downstream count expects Downstream 15 and sees Downstream 19. The error-context snapshot lists 5 playwright-metric-* downstream nodes where one seed creates 1. Re-running entity-data-setup locally without the teardown leaves the previous seeds' metric edges on the shared lineage root. The test runs on an entity's Impact Analysis tab, not on /lineage, which this PR changes.

An earlier run on the same commit lost its local static server partway through (45 ECONNREFUSED), so its results are discarded. This block is the clean rerun.

Manual testing performed

  1. Ran this branch's UI against a local :8585 server and logged in as admin.
  2. Switched to AI mode and opened /lineage. The header and canvas match the Metrics page frame (measured in the DOM): header 8px from the layout edge, content 16px below the header, canvas inset 8px on the sides and bottom, scrollHeight - clientHeight = 0 on the content region (was 16px before).
  3. Opened /metrics in AI mode as the reference and compared the same measurements.
  4. Classic mode: the unit test covers that the header card and canvas toolbar still render.

UI screen recording:

Not applicable — standalone styling/layout fix, not a feature.

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: I updated the migration scripts or explained why it is not needed. — N/A, no schema changes.
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable). — N/A, styling fix.
  • 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 2a89b399e42: no 🔴. Fixed both 🟡 in 90572d3e4cf: the test now covers the AI-mode document title, and a comment that restated the code is gone.
  • Decision check: no durable decision. This follows the existing AI layout standard (core PageLayout + tw:pt-4 content offset).
image

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; no actionable defects were found.

Summary

Platform Lineage now uses the shared PageLayout in AI mode.

  • AI lineage now uses the shared page frame and fills its content area.

No actionable defects were found. Browser layout and tests were not run during this review.

Acknowledgment: chirag-madlani intentionally omitted a new Playwright spec because this is a styling fix, citing existing lineage coverage and manual measurements.

Reviews (1) · Last reviewed commit: "Platform lineage: cover the AI-mode page..." · Reviewed by Greptile

In AI mode the lineage page rendered through the classic PageLayoutV1,
so its header gutter, the gap under the header and the canvas inset
differed from the other AI pages, and the canvas's fixed height overflowed
the page by 16px. Render it through core PageLayout with the standard
16px content offset, and let the canvas fill the content region.
@chirag-madlani chirag-madlani added the UI UI specific issues label Oct 26, 2026
@chirag-madlani
chirag-madlani requested a review from a team as a code owner October 26, 2026 12:50
@chirag-madlani
chirag-madlani requested review from karthicksharan and a balanced review from Copilot October 26, 2026 12:50

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 26, 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 the safe to test Add this label to run secure Github workflows on PRs label Oct 26, 2026
@gitar-bot

gitar-bot Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Moving AI-mode lineage into the shared page layout changes canvas sizing, which could mis-size the canvas or cause clipping and overflow.

Switches the /lineage page in AI mode to the shared core PageLayout with gradient PageLayout.PageHeader and a tw:pt-4 content offset, matching the Metrics page frame. The canvas fills the content region via a .platform-lineage-container-fill modifier, and the AI-mode document title is set with the store-based DocumentTitle. Classic mode is unchanged. No issues found.

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

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 79%
79.66% (130542/163867) 66.2% (45989/69466) 69.09% (26083/37750)

@sonarqubecloud

Copy link
Copy Markdown

@chirag-madlani
chirag-madlani added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit 3ea12ae Oct 26, 2026
126 of 129 checks passed
@chirag-madlani
chirag-madlani deleted the chirag-madlani/ai-lineage-page-layout branch October 26, 2026 16:11
mohityadav766 added a commit that referenced this pull request Oct 29, 2026
…age-release-fixes

#36253 moved the Lineage page onto the shared AI page layout. The tab
title this branch fixes is now its pageTitle, which the AI layout's
DocumentTitle reads too, so the AI-mode test expects the entity's name.
The Playwright impact map is regenerated.
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI mode: Platform Lineage page does not follow the shared AI page layout

3 participants