Skip to content

fix(ui-core): tighten card tab label-to-underline gap - #34009

Merged
karanh37 merged 1 commit into
mainfrom
reduce-tab-label-padding
Sep 25, 2026
Merged

karanh37 merged 1 commit into
mainfrom
reduce-tab-label-padding

Conversation

@karanh37

Copy link
Copy Markdown
Contributor

Describe your changes:

The card-variant underline tab (Tabs.List variant="card" type="underline") gave its label tw:pt-2.5 tw:pb-2, which left an 8px gap between the label and the selected underline. This PR reduces the bottom padding to tw:pb-1 (4px).

The change is in core Tabs.Item (openmetadata-ui-core-components/.../application/tabs/tabs.tsx), not in individual pages. About 55 card tab bars use this variant and none of them override the tab padding locally, so all of them get the change. That covers glossary, glossary term, every entity details and version page, data quality, test suites, incident manager, services, teams, users, roles, policies, alerts, tags and custom properties.

Measured in the running app after the change (glossary, data quality, teams): the tab has padding-bottom: 4px, and the gap from the label bottom to the underline is 4px (before: 8px).

Type of change:

  • Improvement

High-level design:

N/A: one class changed in core.

Tests:

Use cases covered

  • On every page with a card tab bar, the selected tab has a 4px gap between the label and the underline.

Unit tests

  • Existing tabs.test.tsx passes (6/6). I did not add a test, because the change is a single padding token.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

I ran the visual-regression suite locally in the pinned mcr.microsoft.com/playwright:v1.57.0-jammy container. It ran against a Docker stack freshly built from this branch (./docker/run_local_docker.sh -m ui -d mysql) with sample data seeded.

Manual testing performed

  1. Built the full stack from this branch and seeded sample data.
  2. Checked the gap under the selected tab on /glossary, /data-quality and /settings/members/teams: 4px on all three.

UI screen recording / screenshots:

The refreshed glossary.png and data-quality.png baselines in this PR show the smaller gap.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.

🤖 Generated with Claude Code

The card variant of the underline Tabs.Item padded the label with
pt-2.5 pb-2, leaving an 8px gap between the label and the selected
underline. Reduce it to pb-1 (4px) in core so every card tab bar
(glossary, entity details, data quality, settings, ...) picks it up.

Refresh the glossary, data-quality and delete-modal visual baselines.
They were already stale against main (captured before the core Tabs
and glossary migrations, and delete-modal still showed a stuck manage
dropdown) and now also carry the tighter tab gap.
Copilot AI lite review requested due to automatic review settings September 25, 2026 07:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@github-actions github-actions Bot added safe to test Add this label to run secure Github workflows on PRs UI UI specific issues labels Sep 25, 2026
@gitar-bot

gitar-bot Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 1 closed / 1 findings

🟡 Medium risk · Core card-tab bottom padding shrinks across roughly 55 UI surfaces.

Reduces the bottom padding of card tab labels from tw:pb-2 to tw:pb-1, tightening the gap between label and underline from 8px to 4px across ~55 card tab bars throughout the app. The change applies globally in core Tabs.Item and has been verified on glossary, data quality, and teams pages. No issues found.

✅ 1 closed
Closed: Quality: Card tab label no longer vertically centered with actions slot

📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/application/tabs/tabs.tsx:234-235 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/application/tabs/tabs.tsx:328
The card bar (tw:min-h-12 tw:items-center) centers the tab. Before this change the tab was balanced: pt-2.5 (10px) on top against pb-2 plus the 2px border-b-2 (8+2=10px) on the bottom, so the label sat exactly on the bar's center line, level with the actions slot. The comment "Balances the underline tab…" refers to that. With pb-1 the bottom is 4+2=6px against 10px on top, so the label now sits about 2px below center and below the centered action buttons on all ~55 card tab bars. The comment is now wrong too. To shrink the gap and keep the label centered, reduce the top padding by the same amount (e.g. tw:pt-1.5 tw:pb-1, which is 6px against 4+2px). If the offset is intended, update the comment to say so.

Review coverage

📋 Rules No rules evaluated

🧪 Functional validation Not enabled · Set up

🤖 Auto-approval Not enabled · Set up

Options

Display: compact → Counting what did not apply, without listing it.

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

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 73%
73.08% (106225/145341) 58.4% (64930/111180) 59.58% (21418/35947)

@sonarqubecloud

Copy link
Copy Markdown

@karanh37 karanh37 changed the title fix(ui-core): tighten card tab label-to-underline gap to pb-1 fix(ui-core): tighten card tab label-to-underline gap Sep 25, 2026
@karanh37
karanh37 enabled auto-merge September 25, 2026 07:47
@github-actions

Copy link
Copy Markdown
Contributor

✅ Playwright Results — workflow succeeded

Validated commit 201ef74a335e3f85de6a7f5c507d1addc839d04e in Playwright run 36106042860, attempt 1.

✅ 4584 passed · ❌ 0 failed · 🟡 2 flaky · ⏭️ 1 skipped · 🧰 0 lifecycle flaky

✅ All tests passed. The ⚠️ CI time-budget signals below are pipeline capacity telemetry, not test failures — nothing to fix on this PR.

Performance

Blocking targets: ✅ met · Optimization targets: 🟡 in progress

Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting.

🕒 Full workflow signal wall (to summary) 58m 50s

⏱️ Max setup 4m 44s · max shard execution 25m 10s · max shard-job elapsed before upload 28m 35s · reporting 22s

🌐 127.25 requests/attempt · 2.24 app boots/UI scenario · 46.16% common-shard skew

⚠️ CI time-budget signals — pipeline capacity telemetry, not test failures, and not caused by this PR:

  • Budget target `Maximum shard execution` breached (target ≤ 1500 s) — exceeded on 1 shard(s): chromium-14 1510 s.

Optimization targets still in progress:

  • Common shard skew was 46.16% (convergence target: at most 15%).
  • Application boot ratio was 2.24 per UI scenario (10905 boots / 4870 scenarios; convergence target: at most 1).
Shard Passed Failed Flaky Skipped Lifecycle failed Lifecycle flaky
✅ Shard advanced-search-01 130 0 0 0 0 0
✅ Shard chromium-01 151 0 0 0 0 0
✅ Shard chromium-02 159 0 0 0 0 0
✅ Shard chromium-03 202 0 0 0 0 0
✅ Shard chromium-04 206 0 0 0 0 0
✅ Shard chromium-05 164 0 0 0 0 0
✅ Shard chromium-06 159 0 0 0 0 0
🟡 Shard chromium-07 164 0 1 0 0 0
✅ Shard chromium-08 175 0 0 0 0 0
✅ Shard chromium-09 190 0 0 0 0 0
✅ Shard chromium-10 195 0 0 0 0 0
✅ Shard chromium-11 157 0 0 0 0 0
✅ Shard chromium-12 161 0 0 0 0 0
✅ Shard chromium-13 190 0 0 0 0 0
🟡 Shard chromium-14 147 0 1 0 0 0
✅ Shard chromium-15 163 0 0 0 0 0
✅ Shard chromium-16 203 0 0 0 0 0
✅ Shard chromium-17 185 0 0 0 0 0
✅ Shard chromium-18 181 0 0 0 0 0
✅ Shard chromium-19 138 0 0 0 0 0
✅ Shard chromium-20 153 0 0 0 0 0
✅ Shard chromium-21 170 0 0 0 0 0
✅ Shard chromium-22 177 0 0 0 0 0
✅ Shard chromium-23 216 0 0 1 0 0
✅ Shard data-asset-rules-01 65 0 0 0 0 0
✅ Shard domain-isolation-01 16 0 0 0 0 0
✅ Shard global-state-01 34 0 0 0 0 0
✅ Shard import-export-01 51 0 0 0 0 0
✅ Shard import-export-02 99 0 0 0 0 0
✅ Shard ingestion-01 46 0 0 0 0 0
✅ Shard ingestion-02 55 0 0 0 0 0
✅ Shard reindex-01 41 0 0 0 0 0
✅ Shard search-01 12 0 0 0 0 0
✅ Shard search-rbac-01 29 0 0 0 0 0
🟡 2 flaky test(s) (passed on retry)
  • Pages/ExplorePageRightPanel.spec.ts › Should verify deleted user not visible in owner selection for database (shard chromium-07, 1 retry)
  • Pages/DataContracts.spec.ts › Create Data Contract and validate for Dashboard (shard chromium-14, 1 retry)

📦 Download artifacts

How to debug locally
# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip    # view trace

@karanh37
karanh37 added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit 3f5e763 Sep 25, 2026
135 of 137 checks passed
@karanh37
karanh37 deleted the reduce-tab-label-padding branch September 25, 2026 09:36

This branch was previously deployed

1 inactive deployment
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants