Skip to content

fix(ui): align Metrics placeholder and expose caller-owned success action layout - #38144

Merged
shah-harshit merged 3 commits into
mainfrom
fix/metric-list-empty-state-spacing
Nov 18, 2026
Merged

shah-harshit merged 3 commits into
mainfrom
fix/metric-list-empty-state-spacing

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

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. TableV2 adds 32px of vertical padding around its empty-state slot; Metrics already supplies a fully spaced placeholder. Add paddedEmptyState (default true) 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. SuccessScreen preserves its original action layout by default and exposes an optional actionsClassName for 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:

  • Bug fix

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

  • Empty Metrics list starts at the same vertical position as grid view.
  • Default table empty-state padding remains enabled for all existing callers.
  • The Metrics option changes only when isEmptyList is 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 TableV2 empty 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):

Before: list has 32px extra top space compared with grid

After (add862324d22927940a5fad3da2b86a8ed4c5665):

After: list and grid content start directly below their toolbars

Checklist:

  • Self-review against REVIEW.md: reviewed commit e0691081c9e. 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.ts defines the typed option; TableV2.tsx and MetricListPage.tsx are exercised by the focused browser check described above. SuccessScreen.tsx is exercised by the real-core action-row browser check. Full-page validation remains pending.
  • Explanatory comments cover why Metrics owns empty-state spacing.
  • Decision check: no new default or durable cross-repository contract; existing spacing is preserved by default.
  • Full app/Jest verification and affected Linux visual baseline validation remain pending. Draft until these checks are completed.

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.

Automation caller: 8px gap; default shared screen: unchanged, no gap; light and dark themes

RetriggerView in GreptileConfidence 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.

  • Metrics empty lists now align with the card view.
  • Success screens let callers set the action-row layout.

No actionable issues found. shah-harshit explicitly 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

@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 18, 2026
@shah-harshit shah-harshit self-assigned this Nov 18, 2026
@shah-harshit shah-harshit changed the title fix(ui): align Metrics empty state in list and grid views fix(ui): correct Metrics placeholder and success action spacing Nov 18, 2026
@shah-harshit shah-harshit changed the title fix(ui): correct Metrics placeholder and success action spacing fix(ui): align Metrics placeholder and expose caller-owned success action layout Nov 18, 2026
@gitar-bot

gitar-bot Bot commented Nov 18, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

The 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 paddedEmptyState option to the table adapter and a caller-owned actionsClassName on SuccessScreen. 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 marked this pull request as ready for review November 18, 2026 15:15
@shah-harshit
shah-harshit requested a review from a team as a code owner November 18, 2026 15:15
@shah-harshit shah-harshit added the To release Will cherry-pick this PR into the release branch label Nov 18, 2026
@shah-harshit
shah-harshit merged commit f559d76 into main Nov 18, 2026
97 checks passed
@shah-harshit
shah-harshit deleted the fix/metric-list-empty-state-spacing branch November 18, 2026 15:48
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Backport to 2.0 is under way. It is built from openmetadata-collate, which holds the credentials needed to open a PR here, and it will comment again with the result — nothing is needed from you unless it reports otherwise.

@gh-bot-collate

Copy link
Copy Markdown

🤖 Backport to 2.0 opened as #38150. Claude resolved a cherry-pick conflict to build it. It merges itself once the checks pass, so read the diff now if this change is a sensitive one.

shah-harshit added a commit that referenced this pull request Nov 18, 2026
…tion layout (#38144) (#38149)

* fix(ui): align Metrics empty state spacing in list and card views

* fix(ui): space shared success screen action buttons

* fix(ui): keep shared success action spacing unchanged by default

(cherry picked from commit f559d76)
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 To release Will cherry-pick this PR into the release branch UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants