Repository navigation
Fixes #36302: Align intake form field table headers with their columns - #36304
Conversation
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.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



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.0branch, coreTypographyalways wraps its content in a<div class="prose">and appliesclassNameto 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 wrapperdiv, 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.ea438e03b6e). The Include column, added in Fixes 30612: render every custom-property type correctly in intake forms #30614, copied the same pattern.main: fix(ui-core): drop Typography's block wrapper for span and div #32068 stoppedTypographyadding the wrapper forspan/div, soclassNamelands on the flex item there. fix(ui-core): drop Typography's block wrapper for span and div #32068 was never backported to2.0.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 everyTypographyrenders, which is too broad for a release branch.Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
Backend integration tests
Ingestion integration tests
Playwright (UI) tests
Manual testing performed
openmetadata-ui-core-componentsand ran the UI from this2.0-based branch (Vite) against a local 2.0.0-SNAPSHOT server.UI screen recording / screenshots:
Before (2.0)

After

Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code


Confidence Score: 5/5
This change appears safe to merge.Summary
Moves header column widths onto plain
divwrappers so they apply to the actual flex items.Reviews (1) · Last reviewed commit: "Fixes #36302: align intake form field ta..." · Reviewed by Greptile