Repository navigation
Observability empty placeholders (Data Quality + Alerts) using EmptyPlaceholder - #30050
Conversation
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.
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
🟡 Playwright Results — all passed (32 flaky)✅ 4537 passed · ❌ 0 failed · 🟡 32 flaky · ⏭️ 95 skipped
🟡 32 flaky test(s) (passed on retry)
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]>
…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]>
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]>
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]>
…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]>
…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
…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
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]>
|
Code Review ✅ Approved 1 resolved / 1 findingsReplaces legacy empty-state placeholders with the ✅ 1 resolved✅ Quality: useEffect omits setCreateActions from dependency array
OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |



Fixes #30077
Describe your changes:
Replaces the legacy empty-state placeholders on the Observability 2.0 Data Quality and Alerts screens with the new
EmptyPlaceholdercore component (@openmetadata/ui-core-components), matching the 2.0 Release mocks.Screens updated (OSS-shared components, so this also covers Collate + AI mode):
DataQualityTab):blankvariant. New optionalhasActiveFiltersprop so the copy switches between "No test cases yet" (empty) and "No matching test cases" (filtered). Wired from both callers (TestCases,QualityTab).TestSuitesTable):blankvariant, branching onhasActiveFilters+subTab(Table Suites / Bundle Suites / filtered).ObservabilityAlertsTable):featuresvariant (3-column onboarding — Pick a trigger / Choose the destination / Stay ahead) with a+ New AlertCTA gated on create permission.New
label.*/message.*locale keys added toen-us.jsonand synced across all locales viayarn i18n.Type of change:
Tests:
Unit tests updated/added for each empty state (both no-data and filtered branches) asserting the
empty-placeholderrender 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
EmptyPlaceholdercomponent. The main changes are:Confidence Score: 5/5
This looks safe to merge.
Important Files Changed
Reviews (23): Last reviewed commit: "fix(i18n): restore main's upload-documen..." | Re-trigger Greptile
Context used (3)