Skip to content

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

Closed
gh-bot-collate[bot] wants to merge 1 commit into
2.0from
backport/2.0/pr-38144
Closed

gh-bot-collate[bot] wants to merge 1 commit into
2.0from
backport/2.0/pr-38144

Conversation

@gh-bot-collate

@gh-bot-collate gh-bot-collate Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Automated backport of #38144 to 2.0.

Source PR #38144
Author @shah-harshit
Merge commit f559d76cc21baf3130214043ed48bcc759e2f0fd
Method Conflicts resolved by Claude — worth a read of the diff.

Resolution notes

Backport notes for #38144 → 2.0

Source change: adds a paddedEmptyState escape hatch to TableV2's empty-state
cell (so a caller-supplied placeholder can own its own vertical spacing) and an
actionsClassName escape hatch to SuccessScreen's action-button row.

Conflicts and resolutions

  • SuccessScreen.tsx — conflict was only in the import block. On main
    this file has already been migrated from AntD to
    @openmetadata/ui-core-components; 2.0 has not. Kept 2.0's AntD imports
    (Button, Card, Space, Typography from antd) and added the new
    classNames import needed for actionsClassName. The actionsClassName
    prop and its use on the action-row <div> applied cleanly.

  • TableV2.interface.ts — on main this PR's paddedEmptyState field
    lives on a TableV2ExtensionProps<T> interface that doesn't exist on 2.0
    (that whole extension-props abstraction, along with renderToolbar,
    fullWidthRowRender, and the aria-label default, is unrelated main-only
    work from later PRs). Left this file unchanged on 2.0.

  • Table.interface.ts (not in the original conflict list, but the
    natural home for the new flag on 2.0) — added paddedEmptyState?: boolean
    directly to TableComponentProps<T>, which is where 2.0's TableV2Props
    already pulls all its optional props from.

  • TableV2.tsx — two hunks:

    • Prop destructuring: added only paddedEmptyState = true. Did not pull
      in renderToolbar, fullWidthRowRender, or the aria-label default —
      those are main-only features not present on 2.0.
    • Empty-state render: 2.0's empty-state branch is the older, simpler
      version (plain text div, no NoDataPlaceholder/icon, no loading-skeleton
      div, no relative/min-h-40). Applied the same transform the PR made —
      tw:py-8 becomes conditional on paddedEmptyState via classNames —
      without introducing any of the newer main-only markup.
  • MetricListPage.tsx — the entire conflicted hunk was main-only code:
    2.0's MetricListPage has no table/card view switcher, no TableV2
    integration, no isEmptyList/isPlaceholderState/renderTable etc. That
    whole feature set doesn't exist on 2.0 yet, so the PR's one-line addition
    (paddedEmptyState={!isEmptyList} on a TableV2 call inside renderTable)
    has nothing to attach to. Resolved by keeping 2.0's file exactly as it
    was — this file ends up with no diff against 2.0 HEAD.

What a reviewer should check

  • SuccessScreen.tsx and TableV2.tsx diffs should look like small,
    surgical additions (new optional prop + classNames wrapper), not a
    component rewrite.
  • MetricListPage.tsx should show no changes at all in the final patch.
  • TableV2.interface.ts should also show no changes.
  • The new paddedEmptyState flag on Table.interface.ts is unused for now
    on 2.0 (no call site sets it to false there, since MetricListPage's
    TableV2 usage wasn't backported) — that's expected; it's forward-compat
    plumbing for whenever the MetricListPage card/table refactor itself gets
    backported.

Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #38144 is asked to look.

resolver run

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Adds optional layout controls to SuccessScreen and TableV2 while keeping their default appearance unchanged.

  • Success screens let callers adjust the action row without taking over its buttons.
  • Empty tables let callers remove the placeholder's built-in vertical padding.

No actionable issues found.

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)
@gh-bot-collate
gh-bot-collate Bot requested a review from a team as a code owner November 18, 2026 15:54
@gh-bot-collate
gh-bot-collate Bot requested review from karanh37 and removed request for a team November 18, 2026 15:54
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Nov 18, 2026
@gh-bot-collate

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.0 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

@shah-harshit

Copy link
Copy Markdown
Contributor

not required in 2.0

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant