Skip to content

Render observability pages with core PageLayout and remove ObservabilityPageShell - #37832

Merged
shah-harshit merged 4 commits into
mainfrom
shah-harshit/remove-observability-page-shell
Nov 16, 2026
Merged

shah-harshit merged 4 commits into
mainfrom
shah-harshit/remove-observability-page-shell

Conversation

@shah-harshit

@shah-harshit shah-harshit commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Describe your changes:

No linked issue (cleanup agreed while de-duplicating Collate's observability copies).

Removes ObservabilityPageShell. It was plain divs around core PageLayout.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 core PageLayout → PageLayout.PageHeader / PageLayout.Header → PageLayout.Content directly.

  • Spacing: core's default is accepted — 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).
  • Kept behaviour: the shell's isolation: isolate is not cosmetic — it keeps the page tabs' z-10 below a modal scrim (guarded by ObservabilityLayout.spec.ts). Kept as OBSERVABILITY_PAGE_LAYOUT_CLASS (tw:isolate) on each PageLayout; it's a stacking context, not a styling override.
  • Document title: pages keep the app DocumentTitle (title-priority store, Fixes #34092: resolve the browser tab title by precedence, not mount order #34093). Core PageLayout's pageTitle would set the title directly and bypass that precedence.
  • Decision record: ADR:2026-11-16-observability-pages-use-core-page-layout.
  • Collate's copy of the shell is removed in open-metadata/openmetadata-collate#8577.

Type of change:

  • Improvement

High-level design:

Mechanical swap at 8 call sites (Alert details has two branches): shell props map to PageLayout (className, data-testid), the header prop becomes the first grid child (PageLayout.PageHeader as-is, custom headers wrapped in PageLayout.Header), contentClassName moves to PageLayout.Content, and pageTitle becomes a <DocumentTitle> child (renders null). 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

  • Each observability page renders header + content inside core PageLayout with the correct document title.
  • The page keeps its stacking context (tw:isolate).

Unit tests

  • Updated AlertsPage.test.tsx, AlertDetailsPage.test.tsx, TestCaseDetail.test.tsx, TestSuiteDetail.test.tsx, DataQualityPage.test.tsx (mocks now provide PageLayout root/Header/Content; assertions moved from the shell test id to the page's own id / page-layout, asserting tw:isolate). Deleted ObservabilityPageShell.test.tsx with the component.
  • Ran npx jest src/components/observability → 706 tests passed.

Backend integration tests

  • Not applicable.

Ingestion integration tests

  • Not applicable.

Playwright (UI) tests

  • Updated AIMode/ObservabilityLayout.spec.ts (isolation check now on test-suite-detail-page) and AIMode/AiAlertPermissions.spec.ts (page-layout). yarn lint:playwright clean (no new warnings). Not run locally; pending for the merge queue.

Visual regression baselines

Manual testing performed

  1. Local stack, AI mode, admin. Opened Incidents, Test Library and Alerts on main and on this branch, light and dark.
  2. Header, content and sidebar render the same; content starts 8px higher. Horizontal spacing unchanged.

Before/after screenshots (light + dark) to be attached.

UI screen recording:

Not applicable — refactor with a spacing change. Screenshots above.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation> — no issue.
  • My PR is linked to a GitHub issue — no issue.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: not applicable.
  • For a UI feature or feature task: not applicable.
  • I have added tests and listed them above.
  • Self-review: reviewed 029a86b9e65 against REVIEW.md. Found the shell's isolate was load-bearing (modal scrim vs tabs) and kept it; checked all importers and test ids of the shell in src and playwright.
  • Decision check: adds docs/decisions/2026-11-16-observability-pages-use-core-page-layout.md.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The changes since the previous review appear safe to merge.

Summary

Replaces ObservabilityPageShell with core PageLayout across seven observability pages.

  • Observability pages now use core PageLayout for headers and content.
  • Visual checks now use refreshed screenshots and fixture responses.

Reviews (8) · Last reviewed commit: "test(visual): stabilize quality-add-menu..." · Reviewed by Greptile

@shah-harshit
shah-harshit requested a review from a team as a code owner November 16, 2026 04:27
@shah-harshit shah-harshit added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 16, 2026
@shah-harshit shah-harshit self-assigned this Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🔴 Playwright Results — workflow failed

Validated commit 1a53cbc2b42f729f1f55bd997e52274593f40e32 in Playwright run 43855903832, attempt 1.

✅ 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.

Performance

Blocking 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

⚠️ CI time-budget signals — pipeline capacity telemetry, not test failures, and not caused by this PR:

  • Budget target `Environment setup` breached (target ≤ 480 s) — exceeded on 8 shard(s): rdf-01 780 s, visual-02 778 s, visual-04 704 s, visual-01 671 s, visual-06 658 s (+3 more).

Optimization targets still in progress:

  • Application boot ratio was 1.31 per UI scenario (55 boots / 42 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard chromium-01 42 0 0 0 0 0
✅ Shard rdf-01 13 0 0 0 0 0
✅ Shard visual-01 321 0 0 0 0 0
🔴 Shard visual-02 308 2 0 0 0 0
🔴 Shard visual-03 292 2 0 0 0 0
✅ Shard visual-04 308 0 0 0 0 0
✅ Shard visual-05 325 0 0 0 0 0
🔴 Shard visual-06 377 1 0 0 0 0
✅ Shard visual-07 301 0 0 0 0 0

Genuine Failures (failed on all attempts)

❌ VisualRegression/connectorForms.spec.ts › databaseServices Data360 configuration form (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/connectorForms.spec.ts-snapshots/connection-databaseServices-Data360-expanded.png, writing actual.
❌ VisualRegression/connectorForms.spec.ts › pipelineServices Data360Pipeline configuration form (shard visual-02)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/connectorForms.spec.ts-snapshots/connection-pipelineServices-Data360Pipeline-expanded.png, writing actual.
❌ VisualRegression/connectorForms.spec.ts › databaseServices Data360 configuration form (shard visual-03)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/connectorForms.spec.ts-snapshots/connection-databaseServices-Data360-expanded-dark.png, writing actual.
❌ VisualRegression/connectorForms.spec.ts › pipelineServices Data360Pipeline configuration form (shard visual-03)
Error: A snapshot doesn't exist at /home/runner/work/OpenMetadata/OpenMetadata/openmetadata-ui/src/main/resources/ui/playwright/e2e/VisualRegression/__snapshots__/connectorForms.spec.ts-snapshots/connection-pipelineServices-Data360Pipeline-expanded-dark.png, writing actual.
❌ ../utils/visualScenarios.ts › quality-add-menu (shard visual-06)
Error: �[2mexpect(�[22m�[31mpage�[39m�[2m).�[22mtoHaveScreenshot�[2m(�[22m�[32mexpected�[39m�[2m)�[22m failed    15954 pixels (ratio 0.02 of all image pixels) are different.    Snapshot: quality-add-menu-dark.png  Call log: �[2m  - Expect "toHaveScreenshot(quality-add-menu-dark.png)" with timeout 15000ms�[22m �[2m    - verifying given screenshot expectation�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m �[2m  - waiting 100ms before taking screenshot�[22m �[2m  - taking page screenshot�[22m �[2m    - disabled all CSS animations�[22m �[2m  - waiting for fonts to load...�[22m �[2m  - fonts loaded�[22m �[2m  - captured a stable screenshot�[22m �[2m  - 15954 pixels (ratio 0.02 of all image pixels) are different.�[22m 

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

…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.
…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.
@gitar-bot

gitar-bot Bot commented Nov 16, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Replacing the shell across seven observability pages changes content insets and layout composition, which could cause visual or tab/modal regressions.

Replaces ObservabilityPageShell with core PageLayout across the seven AI-mode observability pages, keeping the tw:isolate stacking context and app DocumentTitle handling. 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

@shah-harshit
shah-harshit merged commit 4383499 into main Nov 16, 2026
64 checks passed
@shah-harshit
shah-harshit deleted the shah-harshit/remove-observability-page-shell branch November 16, 2026 14:50
shah-harshit added a commit that referenced this pull request Nov 16, 2026
…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.
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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants