Repository navigation
fix(ui): align Metrics placeholder and expose caller-owned success action layout - #38144
Conversation
Code Review ✅ Approved 🟡 Medium riskThe Metrics empty-state padding toggle changes visible list layout, while an optional shared action-container prop enables localized styling; impact is UI-only. Removes the extra 32px gray band above the Metrics empty state in list view so it aligns with grid view, by adding an opt-out 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 |
|
🤖 Backport to |
|
🤖 Backport to |
Describe your changes:
Remove the extra gray band above the Metrics empty state in list view so it starts directly below the toolbar, matching grid view.
TableV2adds 32px of vertical padding around its empty-state slot; Metrics already supplies a fully spaced placeholder. AddpaddedEmptyState(defaulttrue) to the table adapter and disable it only for the settled Metrics empty state. Other table placeholders and loading/error states retain their existing spacing.No linked issue, per the author's instruction not to create one.
The broad shared action-spacing change has been reverted.
SuccessScreenpreserves its original action layout by default and exposes an optionalactionsClassNamefor caller-owned layout. Only the Collate automation page opts into an 8px gap via https://github.com/open-metadata/openmetadata-collate/pull/8692. Core button styling is unchanged. Merge this OSS API addition before the Collate caller change.Type of change:
High-level design:
N/A — small layout fix. The option belongs to the shared table adapter; Metrics selects it without reaching through descendant selectors into table internals. No core component styling is overridden.
Tests:
Use cases covered
isEmptyListis true; populated, pending and error states retain existing behavior.Unit tests / focused browser check
Success action-row Chromium check with the final OSS component and Collate caller: passed in light and dark themes. Extracted the actual action JSX and caller classes, and rendered real core Button and Typography. Automation opt-in has an 8px gap in both themes; unconfigured SuccessScreen keeps the original 0px gap. Checked two-action, three-action, single-action layouts and no horizontal overflow at 240px viewport.
Isolated Chromium spacing regression: passed. The local check extracts the actual
TableV2empty renderer and Metrics option expression from the TSX AST, renders the wrapper and compiles its Tailwind classes. Before: list content starts 32px below the toolbar while grid content starts at 0px. After: both start at 0px. Default table still renders its original padded wrapper.This is isolated layout evidence, not a running Metrics page or full table integration. The preview content and toolbar are fixture elements. No Jest coverage percentage measured and no new committed unit test; full UI dependencies are not installed in this worktree.
Prettier checks of all four changed TS/TSX files: passed.
git diff --check: passed.node scripts/tw-audit.js: passed with 0 errors; 1,594 existing warnings across the UI.node scripts/tw-deprecation-guard.js: passed.node scripts/token-audit.js: failed with 84 errors and 65 warnings in existing CSS/LESS. No CSS/LESS files change in this PR; these errors are outside the diff.Backend integration tests
N/A — no backend changes.
make java_affected ARGS="--scope focused"selects no Java tests; the Java impact-map branch check passes.Ingestion integration tests
N/A — no ingestion changes.
Playwright (UI) tests
Full app workflow tests not run locally: no running local server or complete UI dependency setup. The isolated Chromium check above passes; full page verification remains pending.
Visual regression baselines
Pending Linux visual validation of the Metrics empty list. Existing baselines were not regenerated on macOS and no additional workflow was dispatched.
Manual testing performed
Rendered before/after table empty-state wrappers in Chromium and compared the placeholder's top edge with the toolbar's bottom edge. Verified 32px extra space before and 0px after, matching the grid fixture. This does not claim a full application run.
UI screen recording:
N/A — standalone spacing bug fix. Isolated layout previews below illustrate the specific spacing difference; they are not full-app screenshots.
Before (
origin/main):After (
add862324d22927940a5fad3da2b86a8ed4c5665):Checklist:
REVIEW.md: reviewed commite0691081c9e. Checked the default, empty, loading/error paths and prop forwarding, plus shared success action callers and conditional-button layouts. No outstanding logic findings. Test map:TableV2.interface.tsdefines the typed option;TableV2.tsxandMetricListPage.tsxare exercised by the focused browser check described above.SuccessScreen.tsxis exercised by the real-core action-row browser check. Full-page validation remains pending.This fix is owned by OSS. Collate input/send-button PR https://github.com/open-metadata/openmetadata-collate/pull/8692 remains separate; no submodule pointer changes are included.
Automation action spacing (caller opt-in)
Isolated rendering of the actual shared action JSX with real core components, in both themes. These previews show the automation caller opt-in only; other SuccessScreen callers retain their original layout. These are component previews, not a full application run.


Confidence Score: 5/5
The code appears safe to merge once the author’s acknowledged checks are complete.Summary
This PR removes the extra spacing above the empty Metrics list and lets callers choose the success screen’s action layout without changing existing defaults.
No actionable issues found.
shah-harshitexplicitly preserves the default success-action layout and acknowledges that committed regression tests, full-app checks, and Linux visual checks remain pending. The PR stays draft until those checks finish. No runtime tests were run during this review.Reviews (1) · Last reviewed commit: "fix(ui): keep shared success action spac..." · Reviewed by Greptile