Skip to content

[2.1] fix(ui): align Metrics placeholder and expose caller-owned success action layout - #38149

Merged
shah-harshit merged 1 commit into
2.1from
backport/2.1/38144-metrics-success-layout
Nov 18, 2026
Merged

shah-harshit merged 1 commit into
2.1from
backport/2.1/38144-metrics-success-layout

Conversation

@shah-harshit

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

Copy link
Copy Markdown
Contributor

Describe your changes:

Backport of #38144 to 2.1 (cherry-picked merged commit f559d76cc21baf3130214043ed48bcc759e2f0fd).

Align the Metrics list empty placeholder with grid view by omitting the table wrapper's duplicate 32px padding only for that empty state. Expose optional SuccessScreen.actionsClassName for the automation caller; shared default layout and core button styling stay unchanged.

Applied without conflicts. Stable patch ID matches the merged source exactly: 591da81cf60f0eb0d5d15c35eb38ff2c161ad35b. No release-specific behavior changes or submodule changes.

Type of change:

  • Bug fix

High-level design:

N/A — direct backport. Merge this PR before the paired Collate 2.1 backport https://github.com/open-metadata/openmetadata-collate/pull/8695, whose automation page consumes actionsClassName.

Tests:

  • Self-review against REVIEW.md: reviewed backport commit 4f79f382045 against origin/2.1, including unchanged table padding defaults, Metrics pending/error states, optional action classes and the paired caller. No outstanding logic findings.
  • Reran isolated Chromium checks using the 2.1 source files and core components. Metrics list/grid top offsets both equal 0px; existing table defaults retain padding. Automation caller has an 8px gap in light/dark, unconfigured shared screen retains a 0px gap, and the automation action row wraps at 240px without horizontal overflow. All focused checks passed.
  • These checks extract actual JSX and caller options into an isolated renderer with installed dependencies borrowed from another local checkout. They do not establish a full 2.1 application build or page integration. Test map: TableV2.tsx / MetricListPage.tsx → spacing browser check; TableV2.interface.ts → typed option consumed by the renderer; SuccessScreen.tsx → real-core action-row browser check. No Jest coverage percentage measured.
  • Prettier check of all four changed TS/TSX files: passed.
  • git diff origin/2.1...HEAD --check: passed.
  • make java_affected ARGS="--base origin/2.1 --scope focused": no Java tests impacted.
  • Backend and ingestion tests: N/A; no changes in either layer.
  • Full app/Jest checks and Linux visual baseline validation remain pending. Local workflow Playwright was not run for this OSS backport. No extra workflow dispatch or CI monitoring was performed.
  • No new decision record: this preserves the source fix and defaults.

UI screen recording:

N/A — standalone layout-fix backport. Source PR previews below are retained as visual references; the focused checks were rerun against the 2.1 files, and these images are not full-app screenshots.

Before:

Metrics list: extra 32px spacing

After:

Metrics list and grid: aligned placeholders

Automation-only gap and unchanged shared default, both themes

Checklist:

  • Source PR linked; no new issue created for the backport.
  • Exact source patch preserved; no conflict resolution required.
  • Focused checks and outstanding coverage reported accurately.
  • Self-review completed on the backport commit.
  • Existing explanatory comments preserved; no new durable decision.
  • Full application/Jest checks and affected Linux visual baseline validation remain pending.

RetriggerView in GreptileConfidence Score: 5/5

The reviewed changes appear safe to merge.

Summary

This backport removes extra spacing around the Metrics empty placeholder and lets callers set the success screen’s action layout without changing shared defaults.

  • The Metrics list placeholder now lines up with the card view.
  • Success screens let callers add classes to the action row.

Reviews (1) · Last reviewed commit: "fix(ui): align Metrics placeholder and e..." · Reviewed by Greptile

…tion layout (#38144)

* 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)
@shah-harshit
shah-harshit requested a review from a team as a code owner November 18, 2026 15:51
@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 requested review from karanh37 and removed request for a team November 18, 2026 15:51
@shah-harshit shah-harshit self-assigned this Nov 18, 2026
@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
@gitar-bot

gitar-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

The Metrics empty-state padding and optional success-action layout change are localized UI behavior changes that could alter spacing on affected screens.

Aligns the Metrics list empty placeholder with grid view by removing the duplicate 32px table wrapper padding for that empty state, and exposes an optional SuccessScreen.actionsClassName for the automation caller. 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 02b70fd into 2.1 Nov 18, 2026
47 checks passed
@shah-harshit
shah-harshit deleted the backport/2.1/38144-metrics-success-layout branch November 18, 2026 16:16
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.

1 participant