Fixes 28921: Improved QuickLinkFormModal to utilize react-hook-form for better form handling and validation.#28920
Conversation
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
|
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! |
3985805 to
89236b7
Compare
🟡 Playwright Results — all passed (12 flaky)✅ 4272 passed · ❌ 0 failed · 🟡 12 flaky · ⏭️ 88 skipped
🟡 12 flaky test(s) (passed on retry)
How to debug locally# Download playwright-test-results-<shard> artifact and unzip
npx playwright show-trace path/to/trace.zip # view trace |
…m handling and validation.
|
Code Review ✅ Approved 10 resolved / 10 findingsRefactors QuickLinkFormModal to use react-hook-form for improved validation and handling, while updating UI components and sanitization utilities. All previous findings regarding form inputs, import paths, and test mocks have been addressed. ✅ 10 resolved✅ Bug: All file rows share one copy-link URL (preview file's URL)
✅ Bug: Description field downgraded from rich editor to plain textarea
✅ Bug: URL field lost type="url" input validation
✅ Quality: Inconsistent absolute import path for CopyLinkButton
✅ Edge Case: Asset search interpolates raw text into wildcard query
...and 5 more resolved from earlier reviews OptionsDisplay: compact → Showing less information. Comment with these commands to change:
Was this helpful? React with 👍 / 👎 | Gitar |



Describe your changes:
Fixes 28921
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
QuickLinkFormModaltoreact-hook-formwith asynchronous search and debouncing for tags, glossary terms, and related entities.react-hook-formimplementation.Sharefunctionality withCopyLinkButtoninDocumentsView,MemoriesView, andDocumentPreviewPanel.stripMarkdownutility usingDOMPurifyfor safer HTML sanitization.QuickLinkFormModal.test.tsxto reflect the new form structure and mocked dependencies.createQuickLink,updateQuickLink) to target updated input selectors.This will update automatically on new commits.