Repository navigation
fix(intake-forms): port #30614 UI changes to 1.13 — custom-property type rendering in create forms - #30726
Conversation
Conflict-resolved UI portion of the #30614 cherry-pick: - AddDomainForm, AddGlossaryTermForm, PropertyValue, useGridEditController, CSVUtilsClassBase - IntakeForm Playwright spec - All 19 locale JSON files (keys merged from both 1.13 and main) Backend + new files landed directly on 1.13 in the preceding commit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…m stack - AddDomainFormExtensionFields: renders all custom-property types using antd Form/Form.Item instead of react-hook-form and @openmetadata/ui-core-components - GlossaryTermIntakeFields: antd-Form-based imperative ref component - CustomPropertyTypeBadge: use antd Tag instead of ui-core-components Badge - AddDomainForm: switch from extensionRequiredFields/FieldProp[] to formFields-based AddDomainFormExtensionFields component - IntakeFormUtils: getIntakeFormFields, getRequiredIntakeFormFields, toLegacyRequiredFields - IntakeFormDesignerModal: updated for new formFields schema with include/required flags - Generated types: added IntakeFormField and formFields to intakeForm.ts and createIntakeForm.ts - CustomProperty.utils: added getCustomPropertyTypeDisplayName Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…erage for 1.13 - Fix getCustomPropertyTypeDisplayName to return UPPERCASE names (HYPERLINK, ENTITYREFERENCE, STRING, etc.) matching Playwright test expectations; PR #30614 used the same convention - Fix getExtensionFieldKind: add hyperlink-cp → hyperlink case (HYPERLINK_TYPE_CUSTOM_PROPERTY constant) - Rewrite AddDomainFormExtensionFields: add custom-properties-section wrapper + CustomPropertyTypeBadge per field; fix hyperlink sub-field testids (url/displayText); add ExtensionEntityRefSelect combobox that calls /api/v1/search/query for non-user entity reference types; add multiple-select support for entityReferenceList; use message.url-must-use-http-or-https for URL validation error - Port IntakeForm.spec.ts new test blocks from main: add ensureCustomProperty, removeCustomProperty, IntakeRequiredField, createIntakeForm, extensionInput, selectExtensionReference helpers; add GLOSSARY_TERM_INTAKE_NAME constant; add 'IntakeForm — custom-property type regressions' describe block covering date/dateTime/time/timestamp/integer/number/hyperlink/entityReference/entityReferenceList fields; add 'IntakeForm — Glossary Term create and edit' describe block
❌ 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! |
✅ TypeScript Types Auto-UpdatedThe generated TypeScript types have been automatically updated based on JSON schema changes in this PR. |
…etadata/OpenMetadata into ui-cherry-pick-30614-1.13 # Conflicts: # openmetadata-ui/src/main/resources/ui/src/components/Domain/AddDomainForm/AddDomainForm.component.tsx # openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx
…etadata/OpenMetadata into ui-cherry-pick-30614-1.13
…y datetime utils - Add parseCustomPropertyDateTime and formatCustomPropertyDateTime to CustomProperty.utils.ts so PropertyValue.tsx can import them (fixes the Rollup "not exported" build error) - Revert AddDomainForm.interface.ts to its pre-bad-commit form; the Collate-specific types (DomainFormSelectItem, DomainFormValues) it imported from CoverImageUploadUtils were not exported and broke the build - Revert CSVUtilsClassBase.tsx: the bad commit added 1862 lines that imported isSystemClassificationTagFqn, getCustomPropertyReferenceSearchIndex and EntityBulkEditConfigClassBase — none of which exist in 1.13 OSS - Restore locale JSONs, AddDomainForm.test.tsx and useGridEditController.ts to their upstream 1.13 state (bad commit overwrote them with Collate-only code) - Drop unused getCustomPropertyTypeDisplayName import from AddDomainFormExtensionFields.tsx (CustomPropertyTypeBadge handles it)
…ix badge/separator styling
- Replace antd Input/InputNumber with MUITextField for text, email, number,
timestamp, hyperlink, timeInterval, and fallback fields so they visually match
the rounded MUI inputs used for Experts/Reviewers
- Fix CustomPropertyTypeBadge: remove antd 5.x-only `bordered` prop (TS2322),
use inline `border: none` style instead; remove unused React import (TS6133)
- Fix GlossaryTermIntakeFields: add component={false} to inner antd Form so it
renders no <form> HTML element — eliminates the horizontal line separator that
appeared between Reviewers and custom-property fields; remove unused React import
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…InputBase for text fields - Switch all text/email/number/timestamp/hyperlink/timeInterval/fallback fields from MUITextField to a thin CoreTextInput adapter around InputBase (@openmetadata/ui-core-components). InputBase renders a clean rounded border via Tailwind ring — no MUI fieldset/legend that caused a visible line at the top of the outlined box - Fix label+badge gap: use inline-flex span with gap:6 so the type badge has consistent spacing from the label text across all field types Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…re required asterisk Replaced gap:6 inline-flex span with a plain text space so the label, badge, and antd-injected asterisk all flow as inline content with no extra container gap. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- marginLeft: 4 on Tag gives small gap between label text and badge - marginRight: 0 overrides antd Tag's default 8px right margin that was creating the large gap between the badge and the required asterisk Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
antd's .ant-form-vertical CSS relies on a class that antd injects at runtime. The project's own form-item-vertical class in form.less uses a higher-specificity selector (.form-item-vertical .ant-form-item-row) that overrides the default flex-direction:row regardless of antd's CSS load order, guaranteeing labels stack above inputs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…in form Align glossary-term intake form with how domain/data-product do it: - Move AddDomainFormExtensionFields directly inside the outer antd Form (layout="vertical"), so the extension Form.Items inherit its context and its vertical layout without a separate inner form or a forwardRef - Drop GlossaryTermIntakeFields (separate inner Form + imperative ref) — no longer needed since antd validates extension fields automatically on form.submit() and values arrive directly in handleSave via formObj.extension - Add buildExtension to serialize extension values (mirrors domain's impl) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… helper - CoreEntityRefSelect: use SearchIndex.ALL when multiple entity types are configured so results from every allowed type appear, not just the first - IntakeFormDesignerModal: replace inline requiredFields derivation with toLegacyRequiredFields() from IntakeFormUtils to remove the duplication - IntakeFormUtils: drop unused getRequiredIntakeFormFields export Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add translations for the 4 keys introduced in #30614 that were only present in en-us.json: - custom-property-definition-unavailable - custom-property-empty-description - enter-a-valid-link-example - enter-text-to-display-for-link Also fix intake-form-custom-properties-help in all non-English locales: the previous value was English fallback text in every locale file. Languages: ar-sa, de-de, es-es, fr-fr, gl-es, he-he, ja-jp, ko-kr, mr-in, nl-nl, pr-pr, pt-br, pt-pt, ru-ru, th-th, tr-tr, zh-cn, zh-tw Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…arch
When an entityReference custom property allows multiple types (e.g.
user, team, glossaryTerm), pass them as a comma-separated index string
("user,team,glossaryTerm") instead of the catch-all "all" index.
getSearchIndexParam in searchAPI.ts already passes string values through
as-is, so Elasticsearch receives a targeted multi-index query. This
mirrors main's getCustomPropertyReferenceSearchIndex(definition) which
does config.join(',').
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ilures PropertyValue.test: add parseCustomPropertyDateTime to the CustomProperty.utils mock — our commit 28a5b29 added the function to the utils file but the test mock only listed getCustomPropertyLuxonFormat, making the date-cp/dateTime-cp render path throw at runtime. GlossaryTermRelationSettings.test: replace jest.requireActual('@openmetadata/ ui-core-components') with explicit inline mocks so that react-aria-components' ModalOverlay (bundled inside the real SlideoutMenu) no longer triggers an "Invalid hook call" outside a component context. Add compound sub-component mocks (Table.*, SlideoutMenu.*, TableCard.Root, Select.Item), handle the Table.Body render-prop (items + function-as-children), handle SlideoutMenu's function-as-children pattern, and expose the Input label/hint props that the duplicate-error assertion depends on. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…card search
When the Autocomplete fires onSearchChange('') on focus/open our handler
returned early and left the dropdown empty. Use '**' (Elasticsearch
wildcard-all) for empty queries so the dropdown shows initial suggestions
across all configured types (e.g. user,team,glossaryTerm) when the field
first opens — matching how the entity-reference picker behaves elsewhere.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…on type
The Autocomplete uses menuTrigger="input" so it only calls onSearchChange
when the user types — clicking the field opens the dropdown but leaves it
empty. Fix: hook onOpenChange and fire a wildcard ('**') search on first
open so the dropdown is pre-populated immediately. A ref guards against
re-fetching on subsequent opens when items are already loaded.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| .catch((error: AxiosError) => { | ||
| if (!cancelled) { | ||
| setIntakeForm(null); | ||
| showErrorToast(error); | ||
| } | ||
| }); |
There was a problem hiding this comment.
Configuration failures bypass intake enforcement
When either intake-configuration request fails, these handlers replace the unavailable configuration with empty state while leaving submission enabled. The form then omits configured requirements or submits custom-property values without type-aware serialization, causing glossary-term creation to fail backend validation without field-level remediation.
Knowledge Base Used: IntakeForm: Configurable Required Fields for Governance Entities
…ect scenarios Covers 6 entity-reference custom property scenarios: - initial dropdown load fires wildcard search on first open (validates onOpenChange fix) - search-as-you-type narrows results via scoped API call - single selection stores correct entityReference shape in the API payload - list mode (entityReferenceList) stores an array of two entity references - multi-type allowedTypes sends a comma-joined search index (e.g. glossaryTerm,table) - clearing a selected reference removes the selection chip Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ting fixtures Backend enforces intake-form required fields on API creates too, so a leftover domain or glossaryTerm form with required custom properties made Domain.create()/GlossaryTerm.create() in beforeAll fail with 400. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e2e spec Component: replace the once-per-mount initialFetchRef guard with a lastQueryRef check — if the first wildcard fetch fails or races search indexing, reopening the dropdown now re-fires it instead of leaving the list empty until the user types. Typed queries are never clobbered. Spec (review feedback): - scenario 4 registered waitForResponse after the fill that triggers the request; all searches now go through a shared searchEntityRefOption helper that retries the full search, which also rides out async ES indexing of the beforeAll fixtures - scenario 1 reopens the dropdown until options appear instead of asserting on the first (possibly pre-index) response - scenario 6 asserts the selected chip is gone in both clear paths Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
❌ UI Checkstyle Failed❌ ESLint + Prettier + Organise Imports (src)One or more source files have linting or formatting issues. ❌ Playwright - ESLint + Prettier + Organise ImportsOne or more Playwright test files have linting or formatting issues. Affected files
❌ Tailwind AuditHardcoded Tailwind values found. Use a design-system utility (run ❌ Antd + Less Deprecation GuardA new Affected filesat Function._resolveFilename (node:internal/modules/cjs/loader:1401:15) Fix locally (fast - only checks files changed in this branch): make ui-checkstyle-changed |
|
Code Review ✅ Approved 13 resolved / 13 findingsPorts the 1.13 intake-form custom-property rendering and serialization changes from main, addressing missing glossary-term intake fields, raw dayjs serialization, and multi-type entity reference queries. No issues found. ✅ 13 resolved✅ Bug: Glossary Term intake fields never rendered or submitted
✅ Bug: PropertyValue.tsx imports non-existent date helpers
✅ Bug: Glossary Term intake fields never wired into modal or submission
✅ Bug: Duplicate module-scope declarations break IntakeForm.spec.ts
✅ Bug: date/dateTime/time custom properties serialized as raw dayjs
...and 8 more resolved from earlier reviews OptionsDisplay: compact → Showing less information. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar | Powered by Gitar — free for open source |



Summary
Cherry-picks the UI-only portion of #30614 ("fix intake-forms: render every custom-property type correctly in create forms") onto the 1.13 release branch, adapted for 1.13's antd Form stack (no react-hook-form or
@openmetadata/ui-core-componentsimports).What changed
New files:
AddDomainFormExtensionFields.tsx— antd-based renderer for custom-property intake fields (date, dateTime, time, timestamp, integer, number, enum, hyperlink, entityReference, entityReferenceList, markdown, timeInterval); renders inside adata-testid="custom-properties-section"wrapper with aCustomPropertyTypeBadgeper fieldAddDomainFormExtensionFields.utils.ts—getExtensionFieldKindmaps API property-type names to local render kinds; includeshyperlink-cpfixGlossaryTermIntakeFields.component.tsx— imperative-ref child that owns its own antd Form for the glossary term create modal; exposesvalidate()andgetExtension()to parentCustomPropertyTypeBadge/CustomPropertyTypeBadge.component.tsx— antd Tag showing property type nameIntakeFormUtils.ts—getIntakeFormFieldsbridge between legacyrequiredFieldsand newformFieldsModified files:
intakeForm.ts— addedIntakeFormFieldinterface +formFields?: IntakeFormField[]toIntakeFormcreateIntakeForm.ts— sameformFieldsaddition on the create request typeCustomProperty.utils.ts— addedserializeExtensionValue,hasPopulatedTableRows; fixedgetCustomPropertyTypeDisplayNameto return UPPERCASE names (HYPERLINK, ENTITYREFERENCE, STRING, etc.) matching the Playwright badge assertionsAddDomainForm.component.tsx— replaced the old 145-lineextensionFieldsuseMemo with<AddDomainFormExtensionFields>;buildExtensionserializes every custom-property type correctly on submitAddGlossaryTermForm.component.tsx/.interface.ts— acceptintakeFormFields,intakeCustomProperties,intakeFieldsRefand renderGlossaryTermIntakeFieldswhen fields are presentIntakeFormDesignerModal.tsx— reads/writes newformFields+ legacyrequiredFieldswith per-fieldrequiredcheckboxesIntakeForm.spec.ts— ported new test blocks from main:IntakeForm — custom-property type regressions(covers all custom-property types in a data product form + hyperlink URL validation) andIntakeForm — Glossary Term create and editTest plan
yarn playwright test IntakeForm --project=chromiumon a running 1.13 serverIntakeForm — custom-property type regressions→ Data Product serializes all types correctly (entity reference, hyperlink{url,displayText}, integer, number, date, dateTime, time, timestamp, entityReferenceList)IntakeForm — custom-property type regressions→ URL validation rejectsftp://and acceptshttps://IntakeForm — Glossary Term create and edit→ required intake fields submitted on create, absent on edit🤖 Generated with Claude Code
Greptile Summary
This PR ports custom-property-aware intake form rendering to the 1.13 UI.
Confidence Score: 4/5
The PR is not yet safe to merge because glossary-term creation can still submit without loaded intake requirements when configuration requests are pending or fail.
The glossary form initializes intake configuration as absent, performs both configuration requests asynchronously, and leaves the modal submit action enabled; failures also reset configuration to empty state. A fast submission or request failure can therefore omit configured fields and defer the error to backend validation.
Files Needing Attention: openmetadata-ui/src/main/resources/ui/src/components/Glossary/AddGlossaryTermForm/AddGlossaryTermForm.component.tsx; openmetadata-ui/src/main/resources/ui/src/components/Glossary/GlossaryTermModal/GlossaryTermModal.component.tsx
Important Files Changed
Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart LR Designer[Intake form designer] --> Config[Intake form configuration] Config --> Domain[Domain and data-product create form] Config --> Glossary[Glossary-term create form] Domain --> Serializer[Type-aware extension serialization] Glossary --> Serializer Serializer --> API[Entity create API] API --> Validator[Backend intake validator]Reviews (24): Last reviewed commit: "removed unwated scenerio" | Re-trigger Greptile