Skip to content

Fixes #35212: Migrate the Data Contract tab from Ant Design to core components - #35217

Merged
anuj-kumary merged 24 commits into
mainfrom
feat/data-contract-core-components
Oct 13, 2026
Merged

anuj-kumary merged 24 commits into
mainfrom
feat/data-contract-core-components

Conversation

@anuj-kumary

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

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #35212

Moves the Data Contract tab (on data assets and on Data Products) off Ant Design and onto @openmetadata/ui-core-components. After this PR no file under components/DataContract imports antd, and the tab's .ant-* LESS overrides are gone.

  • Forms → core react-hook-form stack.
    • Contract Details, SLA, Security and Semantics replace antd Form / Form.List with core fields.
    • Their antd inputs are replaced too: InputNumber, tag-mode Select, TimePicker, Input, TextArea.
    • Each form still reports the same partial-contract payload to AddDataContract.
  • Shell, buttons and view switch → core components.
    • Each tab's grey panel and Previous/Next footer now come from one new ContractFormStep component.
    • The add/edit header uses core Card and Button.
    • The UI/YAML switch is a core ButtonGroup.
    • The cards' antd Icon wrappers are replaced by plain SVGs.
  • Cleanup.
    • Removed about 100 dead .ant-* / .anticon LESS rules and two LESS files.
    • Pruned the 15 matching no-antd-import suppressions and two no-positional-locator suppressions.
    • Dropped the antd RuleObject type from DataContractUtils.

Type of change:

  • Improvement

High-level design:

Approach. Each tab keeps its public props (initialValues, onChange, onNext, onPrev, buttonProps), so AddDataContract's orchestration and save logic are unchanged. Inside, each tab owns a useForm and maps between form values and the contract shape with small pure functions.

Rules the forms keep:

  • Only user edits are reported. A watch subscription forwards changes with type === 'change' only. Seeding or resetting a form from initialValues reports nothing, which preserves the fix covered by DisplayNameOverwriteBug.test.tsx: antd's setFieldsValue never fired onValuesChange.
  • Semantics re-validates after a failed Save. Save runs through form.handleSubmit, so each later change clears or re-shows its error, as the antd form did.
  • SLA numbers are held as strings. The core Input trims its value on blur, so numbers are converted when the SLA object is built.
  • Owners use the same useUserTeamOptions search and owner-rule check as the Glossary form.
  • Test ids and ids the e2e suites target are kept, including #semantics_<n>_name, #timezone and #columnName-select.

User-visible differences (intentional):

  • Owner field: now the core search autocomplete used by the Glossary and Domain forms, instead of the old Users/Teams popover.
  • Single-select autocompletes (timezone, SLA column, row-filter column): remove the current chip before picking a new value.
  • Next button: every tab now hides it on its last step. Security and Terms used to always show it.
  • Add buttons: use the core plus icon. They used to rely on an × rotated 45° through .anticon CSS that no longer applies.

Kept as is:

  • YAML branch in AddDataContract: nothing renders a mode switch there, so it is unreachable. It is kept and only its card migrated.
  • Shared antd outside this tab: the Schema table's expand icon (TableUtils.getTableExpandableConfig) and the shared QueryBuilder styles stay; both are used app-wide.

Visual parity. The old (antd, main) and new forms were measured side by side in the same browser:

  • Matching exactly: title and step-title fonts (18px / 600) and button sizes (40px / 600).
  • Step panel padding now follows core Card: ContractFormStep is built on Card + Card.Header + Card.Content, so the old tw:p-5 tw:gap-5 (20px all round, 20px between header and body) becomes the md size tw:px-6 tw:py-3 (24px sides, 12px top/bottom, 24px between). This is deliberate and not overridden at the call site, per ADR:2026-10-11-migrated-antd-components-adopt-core-styling. The two gaps the core API could not express are fixed in the core component instead: Card gains a secondary colour and Card.Header a hasDivider prop.
  • Within 1–4px: fields and labels.
  • Remaining differences come from core components and are left alone: core Autocomplete is fixed at 36px (antd used 40px), and the core label-to-input gap is 6px (antd used 8px).

Playwright impact map. Adds a hand-authored entry routing components/DataContract/** and utils/DataContract/** to the six contract/ODCS specs. It also maps eslint-suppressions.json to no specs, as is already done for openmetadata-integration-tests/**, so pruning the lint baseline no longer escalates to a full-suite run.

Tests:

Use cases covered

  • Create a contract on a table: details (title, status, owners, description), terms, schema, semantics, security (policies, identities, row filters) and SLA (numbers, units, time, timezone, column), then save.
  • Edit an existing contract. Fields are prefilled, and saving an untouched title does not overwrite displayName.
  • Semantics: required errors after a failed Save clear as fields are fixed. Add, edit, delete and toggle rules.
  • Data Product contracts and asset inheritance.
  • UI/YAML view switch, including the YAML option (enum value 0).
  • ODCS import / export / merge round-trips that edit the contract through the UI.

Unit tests

  • npx jest src/components/DataContract src/utils/DataContract: 22 suites, 442 tests passed.

  • Rewritten suites: tests that asserted antd internals now assert behaviour.

    • ContractDetailFormTab, ContractSLAFormTab, ContractViewSwitchTab.
    • Parts of ContractSecurityFormTab, ContractSemanticFormTab, ContractSemantics and ContractSLA.
  • Regression tests added:

    • No onChange is reported on mount.
    • The YAML option is reported even though its enum value is 0.
    • After a failed save, fixing a field clears its error. This one fails against the previous trigger() implementation.
  • Line coverage on changed components (--coverage): 88.6% overall.

    File Lines
    ContractFormStep 100%
    ContractViewSwitchTab 100%
    ContractSemantics 100%
    ContractQualityCard 100%
    ContractSchemaTable 100%
    ContractSLAFormTab 97.4%
    ContractDetail 97.3%
    ContractSLA 96.8%
    ContractSecurityFormTab 96.3%
    ContractDetailFormTab 92.9%
    ContractQualityFormTab 92.9%
    ContractSemanticFormTab 91.9%
    AddDataContract 91.2%
    ContractTermsOfService 81.8%
    ContractScehmaFormTab 55.2%

    ContractScehmaFormTab only had its panel and buttons swapped; its untested table logic is unchanged and was uncovered before this PR.

Backend integration tests

  • Not applicable (no backend API changes). No Java tests are impacted.

Ingestion integration tests

  • Not applicable (no ingestion changes).

Playwright (UI) tests

  • Updated playwright/utils/dataContracts.ts with helpers for the core fields:
    • fillContractName, selectContractStatus, selectContractOwners.
    • pickContractAutocompleteOption, fillContractAvailabilityTime, expectContractAvailabilityTime.
  • Updated DataContracts.spec.ts, DataContractInheritance.spec.ts and ODCSImportExport.spec.ts. Two data bugs in the Inheritance spec, previously hidden because the antd select ignored them, are fixed:
    • a GMT+00:00 (UTC) timezone that is not a Timezone value;
    • a column picked on a data product, which has no columns.

CI: Postgresql PR Playwright E2E Tests, run 38160895854 passed on e370f77a364.

Local (upstream dev server for this branch, against a local backend):

  • DataContractInheritance.spec.ts: 8/8 passed.
  • ODCSImportExport.spec.ts: 49/49 passed.
  • DataContractSLAValidation.spec.ts: 1/1 passed.
  • DataContracts.spec.ts (selected tests), all passed:
    • Security & SLA add/update
    • semantic add, edit and delete
    • schema pagination
    • ODCS merge / replace
    • persona (Table)
    • create-and-validate for Topic, including YAML view and export
  • Create-and-validate for Table: every form step passed. The test then failed at its @ingestion quality step, which needs a pipeline runner that the local stack does not have.
  • DataContractsSemanticRules.spec.ts plus the semantic tests in DataContracts.spec.ts: 44/47 passed.
    • Data Product "Not In" passed on a serial re-run; it failed only while running in parallel.
    • The two "Contains / Not_Contains" tests time out in assignTier, the entity-page tier picker this PR does not touch, because of leftover tier tags in the local database. Both pass in the CI run above.

Manual testing performed

  1. Ran the UI dev server for this branch (npx vite) against a local backend on :8585 and signed in as admin.
  2. Table → Contract tab → Add Contract → Create Contract. Filled every tab, including Security (policy, identities, row filters) and SLA (numbers, units, time, timezone, column), saved, and checked the contract page.
  3. Edited the same contract. All fields were prefilled, and only the changed field was saved.
  4. Data Marketplace → Data Products → product → Contract tab: added a contract and checked inheritance on an asset.
  5. Toggled the UI/YAML view on a saved contract.
  6. Compared the Contract tab against the previous antd version (main) and a deployed environment, and matched fonts and spacing as described under High-level design.

UI screen recording:

Screen.Recording.2026-10-11.at.6.29.23.PM.mov
Screenshot 2026-10-11 at 6 29 11 PM

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.
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. (No schema changes.)
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable).
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • Decision check: no decision record needed. The PR changes no contract another component depends on, and adds no new default, limit or ordering.

🤖 Generated with Claude Code

Migrate the contract forms (details, SLA, security, semantics) from antd
Form to the react-hook-form + core field stack, and the tab shell, view
switch, buttons and icons to @openmetadata/ui-core-components. Each form
still reports the same partial-contract payload, and only user edits are
reported so seeding a form does not mark untouched fields as changed.

Share the step panel and Previous/Next footer through ContractFormStep,
drop the dead antd LESS overrides, prune the matching antd and positional
ESLint suppressions, and update the Playwright helpers and specs to drive
the core controls.
Saving through form.trigger() left the form unsubmitted, so react-hook-form
never re-validated afterwards and "Rule is required" stayed on screen after
the rule was completed. Save through handleSubmit so later changes clear or
re-show each error, as the antd form did.
…xport spec

The contract title and SLA number fields keep their test id on the field
wrapper, and the SLA units are core Selects, so fill the inner input and
pick units through selectDropdownOption, as the other contract specs do.
…e impact map

Route components/DataContract and utils/DataContract to the contract and
ODCS specs, and map eslint-suppressions.json to no specs, so a change to
either no longer escalates the planner to a full-suite run.
@anuj-kumary anuj-kumary added UI UI specific issues safe to test Add this label to run secure Github workflows on PRs labels Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 913 → 912
- 1 added, 2 removed, 3 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/playwright/utils/destination.ts

Removed source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSLAFormTab/ContractSLAFormTab.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/UserTeamSelectableListSearchInput/UserTeamSelectableListSearchInput.component.tsx

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/playwright/utils/dataContracts.ts
  openmetadata-ui/src/main/resources/ui/src/components/common/SelectableList/SelectableList.component.tsx
  openmetadata-ui/src/main/resources/ui/src/components/common/UserTag/UserTag.component.tsx

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@anuj-kumary anuj-kumary self-assigned this Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ UI Checkstyle passed — lint findings in changed files

🔍 ESLint findings in this PR's files — 0 error(s), 39 warning(s)

Errors block the build. Warnings do not yet — they are rules whose backlog is still
being worked down, listed so this PR does not add to it. See docs/ui-code-quality-gate.md.

0 error(s), 39 warning(s) across 11 changed file(s).

Count Rule
26 react-hooks/exhaustive-deps
13 openmetadata-ui-patterns/no-non-adaptive-palette
All findings
Location Rule Message
🟡 src/components/DataContract/AddDataContract/AddDataContract.tsx:315:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'onSave' and 't'. Either include them or remove the dependency array. If 'onSave' changes too often, find the p
🟡 src/components/DataContract/AddDataContract/AddDataContract.tsx:530:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractDetailFormTab/ContractDetailFormTab.tsx:104:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'form' and 'toFormValues'. Either include them or remove the dependency array.
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:179:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:197:6 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:213:9 react-hooks/exhaustive-deps The 'handleRunNow' function makes the dependencies of useCallback Hook (at line 280) change on every render. To fix this, wrap the definition of 'handleRunNow'
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:392:41 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:442:41 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-error-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-error-600) or a sema
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:446:41 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-error-600" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-error-600) or a sema
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:546:6 react-hooks/exhaustive-deps React Hook useMemo has unnecessary dependencies: 'handleRunNow' and 'validateLoading'. Either exclude them or remove the dependency array.
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:563:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchLatestContractResults'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:598:42 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-gray-500" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-500) or a semant
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:632:33 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:648:33 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:text-gray-700" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:text-utility-gray-700) or a semant
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:669:30 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:686:30 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:705:30 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:724:30 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:804:42 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:858:44 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractDetailTab/ContractDetail.tsx:876:40 openmetadata-ui-patterns/no-non-adaptive-palette Raw palette class "tw:border-gray-200" is static — it does not flip in dark mode. Use the theme-adapting "utility-" variant (tw:border-utility-gray-200) or a se
🟡 src/components/DataContract/ContractQualityCard/ContractQualityCard.component.tsx:117:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'fetchTestCaseSummary' and 'fetchTestCases'. Either include them or remove the dependency array.
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:93:9 react-hooks/exhaustive-deps The 'fetchAllTests' function makes the dependencies of useCallback Hook (at line 127) change on every render. To fix this, wrap the definition of 'fetchAllTests
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:93:9 react-hooks/exhaustive-deps The 'fetchAllTests' function makes the dependencies of useCallback Hook (at line 141) change on every render. To fix this, wrap the definition of 'fetchAllTests
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:166:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx:210:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchAllTests'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSLACard/ContractSLA.component.tsx:186:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSLAFormTab/ContractSLAFormTab.tsx:202:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'form' and 'toFormValues'. Either include them or remove the dependency array.
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:158:6 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 'entityType'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:199:5 react-hooks/exhaustive-deps React Hook useCallback has a missing dependency: 'handlePagingChange'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:241:5 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'oldRemovedColumns' and 'selectedSchema'. Either include them or remove the dependency array. If 'setAllColumns
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:269:6 react-hooks/exhaustive-deps React Hook useCallback has missing dependencies: 'oldRemovedColumns' and 'selectedSchema'. Either include them or remove the dependency array. If 'setAllColumns
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:271:9 react-hooks/exhaustive-deps The 'fetchApiEndPointColumns' function makes the dependencies of useCallback Hook (at line 327) change on every render. Move it inside the useCallback callback.
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:493:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx:533:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'fetchColumnsBasedOnEntity'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSchemaTable/ContractSchemaTable.component.tsx:135:5 react-hooks/exhaustive-deps React Hook useMemo has a missing dependency: 't'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSecurityFormTab/ContractSecurityFormTab.tsx:365:6 react-hooks/exhaustive-deps React Hook useEffect has missing dependencies: 'columnItems' and 'form'. Either include them or remove the dependency array.
🟡 src/components/DataContract/ContractSemanticFormTab/ContractSemanticFormTab.tsx:114:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'form'. Either include it or remove the dependency array.
🟡 src/components/DataContract/ContractSemanticFormTab/ContractSemanticFormTab.tsx:118:6 react-hooks/exhaustive-deps React Hook useEffect has a missing dependency: 'onChange'. Either include it or remove the dependency array. If 'onChange' changes too often, find the parent co

Fix locally (fast - only checks files changed in this branch):

make ui-checkstyle-changed

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 77%
77.34% (124282/160695) 63.58% (77353/121650) 65.01% (25915/39863)

tw-guard rejects new imports of raw SVGs from assets/svg; the step footer's
Previous and Next arrows now come from @openmetadata/ui-core-components/icons.

@chirag-madlani chirag-madlani left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@anuj-kumary drop custom style from core-components

…re-components

# Conflicts:
#	openmetadata-ui/src/main/resources/ui/eslint-rules/openmetadata-antd.test.mjs
#	openmetadata-ui/src/main/resources/ui/eslint-suppressions.json
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/AddDataContract/AddDataContract.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/AddDataContract/add-data-contract.less
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractDetailFormTab/ContractDetailFormTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractQualityFormTab/ContractQualityFormTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSLAFormTab/ContractSLAFormTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSchemaFormTab/ContractScehmaFormTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSecurityFormTab/ContractSecurityFormTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSemanticFormTab/ContractSemanticFormTab.tsx
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractSemanticFormTab/contract-semantic-form-tab.less
#	openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractTermOfService/ContractTermsOfService.component.tsx
Also drops a dead RAQB selector block and names the schema tab's default
import after the component it actually imports.
@anuj-kumary
anuj-kumary enabled auto-merge October 12, 2026 15:51
@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 12, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — merge_conflict (2026-10-12T22:34:41Z)

The entry left the queue before it was built, so no checks ran against it.

@anuj-kumary
anuj-kumary enabled auto-merge October 13, 2026 01:21
Both conflicts were lint-suppression baselines. Resolved to the counts the
merged eslint-suppressions.json actually holds (antd 674, positional
locators 585), not to either side's number.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 13, 2026
@anuj-kumary
anuj-kumary removed this pull request from the merge queue due to a manual request Oct 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — manual (2026-10-13T02:28:05Z)

The entry left the queue before it was built, so no checks ran against it.

@anuj-kumary
anuj-kumary enabled auto-merge October 13, 2026 03:01
main's #35226 migrated antd Button to core components in the same Data
Contract files this branch rewrites, so the DataContract conflicts resolve
to this branch's version, which supersedes it (main's new aria-labels are
already present here).

The lint-suppression baselines were regenerated with --prune-suppressions
from the merge-base copy rather than hand-merged: both sides only removed
entries, so the base is a strict superset and pruning yields the exact
counts for the merged tree (antd 514, positional locators 584).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Oct 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🚦 Removed from the merge queue — merge_conflict (2026-10-13T04:17:37Z)

The entry left the queue before it was built, so no checks ran against it.

Only the antd suppression baseline conflicted. Both sides again only
removed entries, so the merge base is a strict superset: restored it and
regenerated with --prune-suppressions, giving 509 antd symbols for the
merged tree. The playwright counts are unchanged at 584.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gitar-bot

gitar-bot Bot commented Oct 13, 2026

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

🟡 Medium risk · Migrating contract forms to react-hook-form changes how security, SLA, and semantic values are collected and serialized, which could save incomplete or altered contract metadata.

Migrates the Data Contract tab from Ant Design to @openmetadata/ui-core-components, with forms moved onto the react-hook-form stack and the LESS overrides removed. No open issues found. The step panel padding change from the move to core Card is accepted as intentional.

✅ 1 closed
Closed: Quality: Card move changes contract step panel padding from 20px

📄 openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractFormStep/ContractFormStep.tsx:56-70 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/card/card.tsx:25-29 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/card/card.tsx:115 📄 openmetadata-ui-core-components/src/main/resources/ui/src/components/base/card/card.tsx:140
The old panel used tw:p-5 tw:gap-5: 20px on every side and 20px between header and body. Card.Header and Card.Content each get the md size padding tw:px-6 tw:py-3. That gives 24px on the sides, 12px at the top and bottom, and 24px between header and body (12 + 12). Every Data Contract tab's panel therefore shifts, even though the PR says header spacing matches main exactly. If the 20px rhythm should stay, override the padding at the call site.

Verification

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

@anuj-kumary
anuj-kumary enabled auto-merge October 13, 2026 04:25
@sonarqubecloud

Copy link
Copy Markdown

@anuj-kumary
anuj-kumary added this pull request to the merge queue Oct 13, 2026
Merged via the queue into main with commit 9e1682a Oct 13, 2026
71 checks passed
@anuj-kumary
anuj-kumary deleted the feat/data-contract-core-components branch October 13, 2026 05:42
shah-harshit added a commit that referenced this pull request Oct 13, 2026
Resolve conflicts with the Modal/Button freeze (#35226), the Data Contract
(#35217), Add Assets (#35242) and Applications settings (#35179) migrations.
Where main already migrated a file, keep main's version and drop this
branch's duplicate (DataContract SLA/view switch, AssetSelectionContentBody,
TableDataCardV2, AppLogsViewer, ReindexFailures). Elsewhere keep this
branch's migration and port main's core Button changes onto it.
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.

Migrate the Data Contract tab from Ant Design to core components

5 participants