Repository navigation
fix(ui): stop invalid-URL crash in the description embed-link form - #30943
Conversation
Entering an invalid URL in the BlockEditor embed-link popover crashed the whole editor: "Invalid slot 'errorMessage'. Valid slot names are 'description'". EmbedLinkElement rendered the react-hook-form validation error as a standalone <HintText isInvalid>, which resolves to react-aria slot="errorMessage". Placed as a sibling of <Input>, it landed in a TextField slot context that only registers the "description" slot, so react-aria threw and the error boundary replaced the editor. Pass the message through the Input's own `hint` prop instead. Input renders its HintText inside its own AriaTextField, where the errorMessage slot is valid, so the "Invalid URL" text shows inline and the editor keeps working. Removed the now unused HintText import. Regression from #29964 (introduced EmbedLinkElement in this form); reproduces on main, not yet in a released build. Verification: eslint 0 errors, tsc 0 errors, 6 EmbedLinkElement tests pass (including the invalid-URL validation case). Fixes #30942
❌ 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 |
✅ Playwright Results — workflow succeededValidated commit ✅ 551 passed · ❌ 0 failed · 🟡 0 flaky · ⏭️ 0 skipped · 🧰 0 lifecycle flaky PerformanceBlocking targets: ✅ met · Optimization targets: 🟡 in progress Shard-job maxima below are not the full workflow wall time; the linked run includes build, fixture, planning, and reporting. 🕒 Full workflow signal wall (to summary) 57m 59s ⏱️ Max setup 3m 8s · max shard execution 19m 37s · max shard-job elapsed before upload 23m 42s · reporting 4s 🌐 203.21 requests/attempt · 2.83 app boots/UI scenario · 19.80% common-shard skew Optimization targets still in progress:
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…crash (#30942) Adds BlockEditorEmbedLink.spec.ts — opens the description editor on a table entity page, inserts an Image block via slash command, submits an invalid URL, and asserts the "Invalid URL" validation message is visible and the editor is still alive (not replaced by an error boundary). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Required by the Playwright handbook so tag-filtered CI runs include this spec. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…er to open embed form Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
|
Code Review ✅ Approved 1 resolved / 1 findingsFixes an editor crash caused by invalid URLs in the description embed-link form by passing validation error messages through the Input component's hint prop. Includes a new Playwright regression test. ✅ 1 resolved✅ Quality: Missing domain tag on test.describe block
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 |
…30943) * fix(ui): stop invalid-URL crash in the description embed-link form Entering an invalid URL in the BlockEditor embed-link popover crashed the whole editor: "Invalid slot 'errorMessage'. Valid slot names are 'description'". EmbedLinkElement rendered the react-hook-form validation error as a standalone <HintText isInvalid>, which resolves to react-aria slot="errorMessage". Placed as a sibling of <Input>, it landed in a TextField slot context that only registers the "description" slot, so react-aria threw and the error boundary replaced the editor. Pass the message through the Input's own `hint` prop instead. Input renders its HintText inside its own AriaTextField, where the errorMessage slot is valid, so the "Invalid URL" text shows inline and the editor keeps working. Removed the now unused HintText import. Regression from #29964 (introduced EmbedLinkElement in this form); reproduces on main, not yet in a released build. Verification: eslint 0 errors, tsc 0 errors, 6 EmbedLinkElement tests pass (including the invalid-URL validation case). Fixes #30942 * test(e2e): add Playwright regression test for embed-link invalid-URL crash (#30942) Adds BlockEditorEmbedLink.spec.ts — opens the description editor on a table entity page, inserts an Image block via slash command, submits an invalid URL, and asserts the "Invalid URL" validation message is visible and the editor is still alive (not replaced by an error boundary). Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * lint fix * test(e2e): add @discovery tag to BlockEditorEmbedLink describe block Required by the Playwright handbook so tag-filtered CI runs include this spec. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * test(e2e): move BlockEditorEmbedLink spec from Pages/ to Features/ Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * test(e2e): refine BlockEditorEmbedLink spec — click add-image-container to open embed form Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * lint fix --------- Co-authored-by: Rohit0301 <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]>
…pen-metadata#30943) * fix(ui): stop invalid-URL crash in the description embed-link form Entering an invalid URL in the BlockEditor embed-link popover crashed the whole editor: "Invalid slot 'errorMessage'. Valid slot names are 'description'". EmbedLinkElement rendered the react-hook-form validation error as a standalone <HintText isInvalid>, which resolves to react-aria slot="errorMessage". Placed as a sibling of <Input>, it landed in a TextField slot context that only registers the "description" slot, so react-aria threw and the error boundary replaced the editor. Pass the message through the Input's own `hint` prop instead. Input renders its HintText inside its own AriaTextField, where the errorMessage slot is valid, so the "Invalid URL" text shows inline and the editor keeps working. Removed the now unused HintText import. Regression from open-metadata#29964 (introduced EmbedLinkElement in this form); reproduces on main, not yet in a released build. Verification: eslint 0 errors, tsc 0 errors, 6 EmbedLinkElement tests pass (including the invalid-URL validation case). Fixes open-metadata#30942 * test(e2e): add Playwright regression test for embed-link invalid-URL crash (open-metadata#30942) Adds BlockEditorEmbedLink.spec.ts — opens the description editor on a table entity page, inserts an Image block via slash command, submits an invalid URL, and asserts the "Invalid URL" validation message is visible and the editor is still alive (not replaced by an error boundary). Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * lint fix * test(e2e): add @discovery tag to BlockEditorEmbedLink describe block Required by the Playwright handbook so tag-filtered CI runs include this spec. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * test(e2e): move BlockEditorEmbedLink spec from Pages/ to Features/ Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * test(e2e): refine BlockEditorEmbedLink spec — click add-image-container to open embed form Co-Authored-By: Claude Sonnet 4.6 <[email protected]> * lint fix --------- Co-authored-by: Rohit0301 <[email protected]> Co-authored-by: Claude Sonnet 4.6 <[email protected]>



Describe your changes:
Fixes #30942
Entering an invalid URL in the BlockEditor embed-link popover crashed the whole editor: "Invalid slot 'errorMessage'. Valid slot names are 'description'".
EmbedLinkElement rendered the react-hook-form validation error as a standalone , which resolves to react-aria slot="errorMessage". Placed as a sibling of , it landed in a TextField slot context that only registers the "description" slot, so react-aria threw and the error boundary replaced the editor.
Pass the message through the Input's own
hintprop instead. Input renders its HintText inside its own AriaTextField, where the errorMessage slot is valid, so the "Invalid URL" text shows inline and the editor keeps working. Removed the now unused HintText import.Regression from #29842 (introduced EmbedLinkElement in this form); reproduces on main, not yet in a released build.
Verification: eslint 0 errors, tsc 0 errors, 6 EmbedLinkElement tests pass (including the invalid-URL validation case).
Screen.Recording.2026-08-04.at.5.33.16.PM.mov
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.