Repository navigation
Render observability pages with core PageLayout and remove ObservabilityPageShell - #37832
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 |
🔴 Playwright Results — workflow failedValidated commit ✅ 2287 passed · ❌ 5 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky ❌ Action needed: test(s) failed on every attempt against this PR’s validated commit — see Genuine Failures below. These are test failures, not CI budget or infrastructure issues. PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 48m 42s ⏱️ Max setup 13m 0s · max shard execution 15m 35s · max shard-job elapsed before upload 27m 51s · reporting 5s 🌐 2.80 requests/attempt · 1.31 app boots/UI scenario · 0.00% common-shard skew
Optimization targets still in progress:
Genuine Failures (failed on all attempts)❌
|
…bservabilityPageShell The shell was plain divs around core PageLayout.PageHeader. Pages now use PageLayout, PageLayout.Header/PageHeader and PageLayout.Content directly and accept core's 8px content inset. The app DocumentTitle stays (its priority store), and each page keeps an isolated stacking context so the tabs stay under a modal scrim.
fa70cf1 to
3ecfab6
Compare
…rent main Refreshes 54 baselines from the first attempt of visual run 43841028833: the observability pages, incident states and quality views that move with the PageLayout inset, plus screens that changed on main (connector forms, MCP app settings, glossary, explore). Adds visual mocks for the ontology summary and the visual_admin user, which the ontology explorer and the context-center document rows now read.
…elines quality-add-menu opened the menu before the dashboard charts had drawn, so its dark baseline caught an empty chart and the next run differed by 2%. Wait for the entity-health chart first, as page-data-quality does, and keep the drawn-chart capture. The Data360 connector forms now reach their expanded-section screenshots, which had no baselines yet.
Code Review ✅ Approved 🟡 Medium riskReplacing the shell across seven observability pages changes content insets and layout composition, which could cause visual or tab/modal regressions. Replaces VerificationRules 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 |
…rvabilityPageShell (backport 2.1 #37832) (#37842) * refactor(observability): render pages with core PageLayout and drop ObservabilityPageShell The shell was plain divs around core PageLayout.PageHeader. Pages now use PageLayout, PageLayout.Header/PageHeader and PageLayout.Content directly and accept core's 8px content inset. The app DocumentTitle stays (its priority store), and each page keeps an isolated stacking context so the tabs stay under a modal scrim. (cherry picked from commit 029a86b) * chore(observability): sort imports and regenerate the Playwright impact map (cherry picked from commit fa70cf1) * test(visual): refresh 2.1 baselines for the core PageLayout pages Refreshes 40 baselines from the first attempt of visual run 43841168892 (observability pages, incident states and quality views that move with the PageLayout inset). Adds a visual mock for the visual_admin user, which the context-center document rows now read. * test(ontology): give the tasks drawer paging test CI headroom The cursor-history test loads ~90 pages in sequence. It takes ~3 s locally, but the CI coverage run is ~4x slower and overran the 20 s timeout. The timed-out loop kept clicking Next/Previous inside the following tests, which then failed too (12 failures from one timeout). Raise the timeout to 60 s.
Describe your changes:
No linked issue (cleanup agreed while de-duplicating Collate's observability copies).
Removes
ObservabilityPageShell. It was plaindivs around corePageLayout.PageHeader, contrary to the "no wrappers around core components" rule. The 7 AI-mode observability pages (Data Quality, Incidents, Test Library, Alerts, Alert details, Test case, Test suite) now render corePageLayout→PageLayout.PageHeader/PageLayout.Header→PageLayout.Contentdirectly.PageLayout.Content's 8px inset on all sides, instead of the shell's 16px vertical inset. No caller-side padding overrides. Content sits 8px closer to the header (screenshots).isolation: isolateis not cosmetic — it keeps the page tabs'z-10below a modal scrim (guarded byObservabilityLayout.spec.ts). Kept asOBSERVABILITY_PAGE_LAYOUT_CLASS(tw:isolate) on eachPageLayout; it's a stacking context, not a styling override.DocumentTitle(title-priority store, Fixes #34092: resolve the browser tab title by precedence, not mount order #34093). CorePageLayout'spageTitlewould set the title directly and bypass that precedence.ADR:2026-11-16-observability-pages-use-core-page-layout.Type of change:
High-level design:
Mechanical swap at 8 call sites (Alert details has two branches): shell props map to
PageLayout(className,data-testid), theheaderprop becomes the first grid child (PageLayout.PageHeaderas-is, custom headers wrapped inPageLayout.Header),contentClassNamemoves toPageLayout.Content, andpageTitlebecomes a<DocumentTitle>child (rendersnull). Alternative considered: keep the shell and only delete Collate's copy — rejected in favour of using core directly and accepting its spacing.Tests:
Use cases covered
PageLayoutwith the correct document title.tw:isolate).Unit tests
AlertsPage.test.tsx,AlertDetailsPage.test.tsx,TestCaseDetail.test.tsx,TestSuiteDetail.test.tsx,DataQualityPage.test.tsx(mocks now providePageLayoutroot/Header/Content; assertions moved from the shell test id to the page's own id /page-layout, assertingtw:isolate). DeletedObservabilityPageShell.test.tsxwith the component.npx jest src/components/observability→ 706 tests passed.Backend integration tests
Ingestion integration tests
Playwright (UI) tests
AIMode/ObservabilityLayout.spec.ts(isolation check now ontest-suite-detail-page) andAIMode/AiAlertPermissions.spec.ts(page-layout).yarn lint:playwrightclean (no new warnings). Not run locally; pending for the merge queue.Visual regression baselines
users/name/visual_adminandglossaryTerms/ontology/summary. Pending: baselines for the context-documents screens andpage-ontology, which render only now that their mocks exist — from run https://github.com/open-metadata/OpenMetadata/actions/runs/43855903832.Manual testing performed
mainand on this branch, light and dark.Before/after screenshots (light + dark) to be attached.
UI screen recording:
Not applicable — refactor with a spacing change. Screenshots above.
Checklist:
Fixes <issue-number>: <short explanation>— no issue.029a86b9e65againstREVIEW.md. Found the shell'sisolatewas load-bearing (modal scrim vs tabs) and kept it; checked all importers and test ids of the shell insrcandplaywright.docs/decisions/2026-11-16-observability-pages-use-core-page-layout.md.🤖 Generated with Claude Code


Confidence Score: 5/5
The changes since the previous review appear safe to merge.Summary
Replaces
ObservabilityPageShellwith corePageLayoutacross seven observability pages.PageLayoutfor headers and content.Reviews (8) · Last reviewed commit: "test(visual): stabilize quality-add-menu..." · Reviewed by Greptile