Skip to content

Fixes #36302: Align intake form field table headers with their columns - #36304

Merged
anuj-kumary merged 1 commit into
2.0from
anuj-kumary/fix-intake-form-header-align-2.0
Oct 27, 2026
Merged

anuj-kumary merged 1 commit into
2.0from
anuj-kumary/fix-intake-form-header-align-2.0

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #36302

In the intake form designer on 2.0, the field table header (Include / Required / Field / Custom Error Message) was squeezed to the left instead of lining up with the columns below it.

Root cause: on the 2.0 branch, core Typography always wraps its content in a <div class="prose"> and applies className to the inner element. The header cells put their column widths (tw:w-20 / tw:flex-1) on <Typography>, so the widths landed on the inner <span>. The wrapper div, which is the actual flex item, got no width and shrank to fit its text. The body rows put the same widths on plain <div>s, so they lined up and the header didn't.

Fix: put the column widths on plain divs in the header, mirroring the rows. Only this file changes. I didn't backport #32068 because it changes how every Typography renders, which is too broad for a release branch.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Use cases covered

  • Admin opens Settings → Governance → Intake Forms → Add → Data Product: the header columns line up with the row columns.

Unit tests

  • Not added. This is a CSS layout fix, and jsdom does no layout, so a unit test can't catch it.

Backend integration tests

  • Not applicable (no backend API changes).

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Not added. This is a pure layout fix, checked visually below.

Manual testing performed

  1. Built openmetadata-ui-core-components and ran the UI from this 2.0-based branch (Vite) against a local 2.0.0-SNAPSHOT server.
  2. Logged in as admin and opened Settings → Governance → Intake Forms → Add → Data Product.
  3. Took a screenshot without the fix (headers squeezed left), then with the fix (headers aligned with the Required checkbox, Field label and error-message input columns).
  4. ESLint and Prettier pass on the changed file.

UI screen recording / screenshots:

Before (2.0)
before

After
after-table

after

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • For UI changes: I attached a screen recording and/or screenshots above.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

This change appears safe to merge.

Summary

Moves header column widths onto plain div wrappers so they apply to the actual flex items.

  • Intake form table headings line up with their columns.

Reviews (1) · Last reviewed commit: "Fixes #36302: align intake form field ta..." · Reviewed by Greptile

Typography on 2.0 always wraps its content in a div.prose and applies
className to the inner element, so the header's tw:w-20/tw:flex-1 never
reached the flex item. Put the widths on plain divs, as the rows do.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner October 27, 2026 06:04
@anuj-kumary
anuj-kumary requested review from shah-harshit and removed request for a team October 27, 2026 06:04
@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.

@anuj-kumary anuj-kumary self-assigned this Oct 27, 2026
@github-actions github-actions Bot added the UI UI specific issues label Oct 27, 2026
@anuj-kumary anuj-kumary removed the UI UI specific issues label Oct 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Oct 27, 2026
@gitar-bot

gitar-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Wrapping header labels in width-bearing divs changes intake-form table layout; a flex sizing mistake could leave headers misaligned with their fields.

Aligns the intake form field table headers with their columns by moving the column widths from Typography onto plain divs in the header, mirroring the body rows. 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

@github-actions

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.33% (83017/121483) 53.23% (51424/96592) 53.98% (15300/28340)

@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary merged commit 55bf558 into 2.0 Oct 27, 2026
122 of 133 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/fix-intake-form-header-align-2.0 branch October 27, 2026 06:17
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants