Migrated ContractDetails and ODCSModal#29013
Conversation
🔴 Playwright Results — 1 failure(s), 12 flaky✅ 4291 passed · ❌ 1 failed · 🟡 12 flaky · ⏭️ 88 skipped
Genuine Failures (failed on all attempts)❌
|
|
| <DeleteModal | ||
| entityTitle={contract?.name ?? ''} | ||
| message={t('message.are-you-sure-you-want-to-delete-this-entity', { | ||
| entity: t('label.contract'), | ||
| })} | ||
| open={isDeleteModalVisible} | ||
| onCancel={() => setIsDeleteModalVisible(false)} | ||
| onDelete={handleContractDeleteConfirm} | ||
| /> |
There was a problem hiding this comment.
💡 Edge Case: DeleteModal not passed isDeleting; confirm allows double-click
ContractTab now uses the generic DeleteModal, which exposes an optional isDeleting prop to disable/show loading on the confirm button. handleContractDeleteConfirm is async (it awaits deleteContractById) but no loading state is tracked and isDeleting is not passed to the modal. During the in-flight delete the confirm button stays enabled, so a user can click it multiple times and fire several deleteContractById calls. The previous DeleteWidgetModal managed its own in-flight state, so this is a behavioral regression introduced by the migration. Consider adding an isDeleting state, setting it around the await, and passing isDeleting={isDeleting} to DeleteModal.
Was this helpful? React with 👍 / 👎
Code Review 👍 Approved with suggestions 1 resolved / 2 findingsMigrates ContractDetails and ODCSModal components to use OpenMetadata core components and Tailwind styling. Consider passing the 💡 Edge Case: DeleteModal not passed isDeleting; confirm allows double-click📄 openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractTab/ContractTab.tsx:121-135 📄 openmetadata-ui/src/main/resources/ui/src/components/DataContract/ContractTab/ContractTab.tsx:201-209
✅ 1 resolved✅ Edge Case: JSON contract uploads no longer accepted after migration
🤖 Prompt for agentsOptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |
❌ UI Checkstyle Failed❌ Playwright — ESLint + Prettier + Organise ImportsOne or more Playwright test files have linting or formatting issues. Affected files
Fix locally (fast — only checks files changed in this branch): make ui-checkstyle-changed |



Describe your changes:
Fixes #
I worked on ... because ...
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
UI screen recording / screenshots:
Not applicable.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.Summary by Gitar
ContractDetailandODCSImportModalcomponents from@mui/materialandantdto@openmetadata/ui-core-components.ODCSImportModalfile upload handling by replacing custom drag-and-drop logic withFileUploadDropZone.ContractDetail.test.tsxandODCSImportModal.test.tsxto accommodate the library migration.This will update automatically on new commits.