Skip to content

Observability empty placeholders (Data Quality + Alerts) using EmptyPlaceholder - #30050

Merged
ShaileshParmar11 merged 37 commits into
mainfrom
feat/observability-empty-placeholders
Jul 17, 2026
Merged

ShaileshParmar11 merged 37 commits into
mainfrom
feat/observability-empty-placeholders

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #30077

Describe your changes:

Replaces the legacy empty-state placeholders on the Observability 2.0 Data Quality and Alerts screens with the new EmptyPlaceholder core component (@openmetadata/ui-core-components), matching the 2.0 Release mocks.

Screens updated (OSS-shared components, so this also covers Collate + AI mode):

  • Data Quality → Test Cases (DataQualityTab): blank variant. New optional hasActiveFilters prop so the copy switches between "No test cases yet" (empty) and "No matching test cases" (filtered). Wired from both callers (TestCases, QualityTab).
  • Data Quality → Test Suites (TestSuitesTable): blank variant, branching on hasActiveFilters + subTab (Table Suites / Bundle Suites / filtered).
  • Alerts (ObservabilityAlertsTable): features variant (3-column onboarding — Pick a trigger / Choose the destination / Stay ahead) with a + New Alert CTA gated on create permission.

New label.* / message.* locale keys added to en-us.json and synced across all locales via yarn i18n.

Type of change:

  • Improvement

Tests:

Unit tests updated/added for each empty state (both no-data and filtered branches) asserting the empty-placeholder render and copy:

  • DataQualityTab.test.tsx, TestSuitesTable.test.tsx, ObservabilityAlertsTable.test.tsx (new), ObservabilityAlertsPage.test.tsx.

UI screenshots:

Empty states now render the shared EmptyPlaceholder (icon + title + description, plus onboarding features/CTA for Alerts) per the 2.0 mocks. Screen recording to be attached.

Greptile Summary

This PR updates Observability empty states to use the shared EmptyPlaceholder component. The main changes are:

  • Replaced legacy placeholders on Data Quality test cases and test suites.
  • Added filtered versus unfiltered empty-state copy.
  • Updated Alerts onboarding with feature cards, create actions, and permission-aware error handling.
  • Added locale strings and updated related unit and Playwright tests.

Confidence Score: 5/5

This looks safe to merge.

  • No blocking issues found in the changed code.

Important Files Changed

Filename Overview
openmetadata-ui/src/main/resources/ui/src/pages/ObservabilityAlertsPage/components/ObservabilityAlertsTable.tsx Updates the Alerts empty state with onboarding features, explicit create-permission gating, and a retryable permission-error placeholder.
openmetadata-ui/src/main/resources/ui/src/pages/ObservabilityAlertsPage/hooks/useObservabilityAlerts.ts Tracks resource-permission failures and exposes a retry path for the Alerts empty-state error view.
openmetadata-ui/src/main/resources/ui/src/pages/ObservabilityAlertsPage/ObservabilityAlertsPage.tsx Passes resource-permission state and retry handling from the Alerts hook into the table.

Reviews (23): Last reviewed commit: "fix(i18n): restore main's upload-documen..." | Re-trigger Greptile

Context used (3)

  • Context used - CLAUDE.md (source)
  • Context used - openmetadata-ui-core-components/CLAUDE.md (source)
  • Context used - AGENTS.md (source)

ShaileshParmar11 and others added 4 commits July 14, 2026 17:17
Replaces the FilterTablePlaceHolder/Transi18next empty state in the shared
DataQualityTab component (used by OSS, Collate classic, and AI mode) with
the core EmptyPlaceholder component, adding distinct copy for the
no-data-yet vs filtered-to-nothing cases via a new hasActiveFilters prop.
Replaces the ErrorPlaceHolder/FilterTablePlaceHolder empty states in the
shared TestSuitesTable component (used by OSS, Collate, and AI mode) with
the core EmptyPlaceholder, adding distinct copy for table suites, bundle
suites, and the filtered-to-nothing case.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…y state

Replaces the ErrorPlaceHolder-based empty state in ObservabilityAlertsTable
(OSS classic Alerts list) with the core EmptyPlaceholder features variant,
matching the shared 3-column onboarding pattern (pick a trigger / choose a
destination / stay ahead) with a create-permission-gated "+ New Alert" CTA.

Threads alertResourcePermission from ObservabilityAlertsPage down to the
table (the existing alertPermissions prop is a per-row array without a
Create field, so it can't gate the empty-state CTA) and reuses the same
Create || All check already used by ObservabilityAlertsHeader.

Adds the shared label.new-entity key (first consumer of the CTA action
pattern) plus the alert-specific empty-state copy, synced across all locales
via yarn i18n.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
…ocale key

Wires the second DataQualityTab caller (QualityTab.component.tsx) to pass
hasActiveFilters computed from its search value, status filter, and type
filter, so a zero-result search/filter shows "No matching test cases"
instead of "No test cases yet".

message.no-data-quality-test-case and message.explore-our-guide-here are
unused in openmetadata-ui but are still live dependencies of Collate's
DataQualityDimension component via the shared translation bundle, so they
were left in en-us.json rather than deleted.
@ShaileshParmar11
ShaileshParmar11 requested a review from a team as a code owner July 14, 2026 15:00
Copilot AI review requested due to automatic review settings July 14, 2026 15:00
@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR checks passed

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

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 reached their quota limit.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Jul 14, 2026
Copilot AI review requested due to automatic review settings July 14, 2026 15:23

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 reached their quota limit.

@github-actions

github-actions Bot commented Jul 14, 2026 •

Copy link
Copy Markdown
Contributor

🟡 Playwright Results — all passed (32 flaky)

✅ 4537 passed · ❌ 0 failed · 🟡 32 flaky · ⏭️ 95 skipped

Shard Passed Failed Flaky Skipped
🟡 Shard 1 437 0 3 16
✅ Shard 2 11 0 0 0
🟡 Shard 3 821 0 11 8
🟡 Shard 4 819 0 3 18
🟡 Shard 5 839 0 1 5
🟡 Shard 6 783 0 5 46
🟡 Shard 7 827 0 9 2
🟡 32 flaky test(s) (passed on retry)
  • Flow/TestConnectionModal.spec.ts › Edit Connection click dismisses the modal (shard 1, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab IS visible for supported type: metric (shard 1, 1 retry)
  • Flow/SearchRBAC.spec.ts › the browse tree only shows the asset-type categories a user can access (shard 1, 1 retry)
  • Features/BulkImportWithDotInName.spec.ts › Column with dot in name under service with dot (shard 3, 1 retry)
  • Features/BulkImportWithDotInName.spec.ts › Import at database level with dot in service name (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Article listing search filters, clears, and shows empty state (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Article list cards, recently viewed widget, and pagination work (shard 3, 1 retry)
  • Features/ContextCenterArticles.spec.ts › Text formatting (shard 3, 1 retry)
  • Features/ContextCenterDocument.spec.ts › move document to folder via card menu shows folder name on the card (shard 3, 1 retry)
  • Features/ContextCenterMemories.spec.ts › adding a linked asset in edit mode shows entity badge on the row (shard 3, 1 retry)
  • Features/ContextCenterPermission.spec.ts › a document archived by a different user can be permanently deleted, via the UI, by a user with Delete permission (shard 3, 2 retries)
  • Features/ContextCenterPermission.spec.ts › created-by-me filter on the archive page shows only the current user's archived documents (shard 3, 1 retry)
  • Features/DataQuality/TestCaseImportExportBasic.spec.ts › should show validation errors for invalid CSV (shard 3, 1 retry)
  • Features/Glossary/GlossaryAdvancedOperations.spec.ts › should remove domain from glossary (shard 3, 1 retry)
  • Features/Glossary/GlossaryTermRelationsGraphNested.spec.ts › viewing a child term: parent appears as a 1-hop neighbour via parentOf edge (shard 4, 1 retry)
  • Features/Glossary/GlossaryTermRelationsGraphNested.spec.ts › viewing a child term: parentOf edge is rendered between parent and child (shard 4, 1 retry)
  • Features/RestoreEntityInheritedFields.spec.ts › Validate restore with Inherited domain and data products assigned (shard 4, 1 retry)
  • Pages/AppStopRunModal.spec.ts › should open stop modal when stop button is clicked and call stop API with runId (shard 5, 1 retry)
  • Pages/DomainUIInteractions.spec.ts › Add owner to domain via UI (shard 6, 1 retry)
  • Pages/Entity.spec.ts › Delete Ml Model (shard 6, 1 retry)
  • Pages/Entity.spec.ts › DisplayName Add, Update and Remove for child entities (shard 6, 1 retry)
  • Pages/ExploreBrowse.spec.ts › service type drill-down disables unrelated roots and query-panel Clear resets it (shard 6, 1 retry)
  • Pages/ExplorePageRightPanel_KnowledgeCenter.spec.ts › Should remove user owner for knowledgeCenter (shard 6, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should allow Data Steward to edit tier for pipeline (shard 7, 1 retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should allow Data Steward to view all tabs for dashboardDataModel (shard 7, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Glossary Bulk Import Export (shard 7, 1 retry)
  • Pages/GlossaryImportExport.spec.ts › Import partial success - some terms pass, some fail (shard 7, 1 retry)
  • Pages/InputOutputPorts.spec.ts › Output ports section collapse/expand (shard 7, 1 retry)
  • Pages/Lineage/LineageFilters.spec.ts › Verify Impact Analysis service filter selection (shard 7, 1 retry)
  • Pages/Lineage/LineageRightPanel.spec.ts › Verify custom properties tab is NOT visible for pipelineService in platform lineage (shard 7, 1 retry)
  • ... and 2 more

📦 Download artifacts

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

organize-imports:cli places the ic-filter-off.svg asset import in its sorted
position; the earlier commit ran only eslint+prettier, tripping the UI Checkstyle
(organise-imports) job.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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 reached their quota limit.

…llowing

If getResourcePermission(EVENT_SUBSCRIPTION) throws, the catch was silent, so
the empty Alerts onboarding could render without the New Alert CTA and no signal
to the user. Show an error toast so the failure is visible and the user can
refresh to retry, rather than silently degrading to a create-less state.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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 reached their quota limit.

greptile: a failed getResourcePermission left alertResourcePermission undefined,
which hasCreatePermission read as false, hiding the New Alert CTA from an
authorized user with no in-page retry. Distinguish an explicit denial
({Create:false, All:false}) from an unknown/failed permission: only hide the CTA
on explicit denial; when unknown, show it and let the backend enforce on submit.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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 reached their quota limit.

greptile (security): showing New Alert when alertResourcePermission is undefined
fails open — advertising a privileged action to a user whose create permission
isn't confirmed. Revert to fail-closed: show the CTA only when create is
explicitly allowed. The permission-fetch failure is still surfaced via the error
toast in useObservabilityAlerts, so an authorized user sees the error and can
refresh to retry.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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 reached their quota limit.

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 reached their quota limit.

…fails

greptile (P1): showErrorToast suppresses 401 and GET-403, so a failed
getResourcePermission(EVENT_SUBSCRIPTION) left no error cue and no retry — an
authorized user could sit on a create-less empty Alerts page until refresh.

Track the failure explicitly (hasResourcePermissionError) and expose a retry
(refetchResourcePermission) from useObservabilityAlerts. When the empty state
would render and the permission fetch failed, show an explicit error placeholder
('Something went wrong' + Try Again) that re-runs the permission fetch, instead
of the create-less onboarding. Still fail-closed on a real denial.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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 reached their quota limit.

…pty-placeholders

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ar-sa.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/de-de.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/es-es.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/fr-fr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/gl-es.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/he-he.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ja-jp.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ko-kr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/mr-in.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/nl-nl.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/pr-pr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-br.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-pt.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ru-ru.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/sv-se.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/th-th.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/tr-tr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-cn.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-tw.json

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 reached their quota limit.

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 reached their quota limit.

…pty-placeholders

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ar-sa.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/de-de.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/en-us.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/es-es.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/fr-fr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/gl-es.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/he-he.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ja-jp.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ko-kr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/mr-in.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/nl-nl.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/pr-pr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-br.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/pt-pt.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/ru-ru.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/sv-se.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/th-th.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/tr-tr.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-cn.json
#	openmetadata-ui/src/main/resources/ui/src/locale/languages/zh-tw.json

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 reached their quota limit.

karanh37
karanh37 previously approved these changes Jul 16, 2026

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 reached their quota limit.

The main-merge locale conflict resolution kept our (older) value for
message.upload-document-hint, reverting main's #30053 update. Restore main's
value across all locales ('Supports all file types...') so the ContextCenter
upload-modal e2e assertion passes again. Only this key was affected.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

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 reached their quota limit.

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Jul 17, 2026

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

Replaces legacy empty-state placeholders with the EmptyPlaceholder core component across Data Quality and Alerts screens. All identified dependency issues are resolved, and navigation now properly distinguishes between empty and filtered states.

✅ 1 resolved
✅ Quality: useEffect omits setCreateActions from dependency array

📄 openmetadata-ui/src/main/resources/ui/src/pages/DataQuality/DataQualityPage.tsx:58-70
The effect in RegisterDataQualityCreateActions calls setCreateActions but does not list it in the dependency array. This is functionally safe because setCreateActions is a stable useState setter from the provider, but react-hooks/exhaustive-deps will flag it and the mandated eslint --fix step may fail CI. Add setCreateActions to the dependency array.

Options

Display: compact → Showing less information.

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

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

This branch was previously deployed

1 inactive deployment
test — 4a1a0f38 Deployed Jul 17, 2026 by ShaileshParmar11 via playwright-ci-postgresql (2, 7) #56962
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.

[Observability 2.0] Adopt EmptyPlaceholder for Data Quality & Alerts empty states

3 participants