Repository navigation
[2.0] Fix block editor suggestion crash and table page main-thread blocking (backport #36103 #36950) - #37130
Conversation
* fix(ui): guard suggestion onUpdate when onStart has not rendered @tiptap/suggestion awaits the async items() search before calling onStart or onUpdate, so a later, faster mention/hashtag search can deliver onUpdate before onStart creates the ReactRenderer. Hashtag also skips onStart on read-only editors. Both crashed with "Cannot read properties of undefined (reading 'updateProps')" (Sentry 7791931166). * fix(ui): render the newest suggestion props when onUpdate beats onStart Keep the props from an onUpdate that arrives before onStart and render with them, so the popup does not show the older query's items and range. * minor ui fix * lint fix * fix(ui): use Typography color prop on AI context persona row * chore(playwright): auto-refresh impact-map.generated.json --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 0601b9a)
…rs and stop height re-render loop (#36950) * Fix main-thread blocking on table column pages Column tables built a TipTap editor for every description cell up front (~50 per page), and each editor's staggered fill-in grew the table, re-reporting fractional widget heights that re-rendered the whole tab. - Defer description-cell editors until near the viewport (DeferredWidget), with a plain-text placeholder - Round reported widget heights to whole pixels; skip layout updates when the height is unchanged - Stabilize onTableUpdate / handleTagSelection and TableDescription memo deps * Add missing t dependency to TableDescription memo * Fix Sonar issues in SchemaTable: mark fire-and-forget promises with void, replace deprecated Select props (cherry picked from commit 2b245c9)
❌ 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! |
Code Review ✅ Approved🟡 Medium risk · Deferring table-cell editors and buffering asynchronous suggestion updates changes UI rendering; timing or viewport issues could hide descriptions or show stale suggestions. Backports two fixes to the 2.0 branch: block editor mention, hashtag, and slash popups no longer crash when a newer query's update arrives before start, and table pages defer description-cell editors and stop the DynamicHeightWidget height re-render loop to remove main-thread blocking. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Backport of the following
mainPRs to2.0, cherry-picked with-xas two commits:updateProps(a newer query'sonUpdatecan arrive beforeonStart)DynamicHeightWidgetheight re-render loopBackport notes
ContextCenterAIContextPage.tsxhunk. That file doesn't exist on2.0, and the change was unrelated Typography styling.SchemaTable.component.tsxhad two conflicts, both in code that isn't on2.0(thecanViewCustomFieldscolumn-type fetch effect and the react-aria constraintSelect). I kept the2.0side for both. The rest of the PR'sSchemaTablechanges (useCallbackonhandleTagSelection,voidon promise calls) applied cleanly. The other files auto-merged.Testing
tsc: no new errors in the changed hunks. The errors that remain in these files are already on2.0.🤖 Generated with Claude Code