Skip to content

[2.0] Fix block editor suggestion crash and table page main-thread blocking (backport #36103 #36950) - #37130

Merged
Rohit0301 merged 2 commits into
2.0from
backport/2.0/pr-36103-36950
Nov 5, 2026
Merged

Rohit0301 merged 2 commits into
2.0from
backport/2.0/pr-36103-36950

Conversation

@Rohit0301

Copy link
Copy Markdown
Contributor

Backport of the following main PRs to 2.0, cherry-picked with -x as two commits:

Backport notes

Testing

  • Jest: hashtagSuggestion, mentionSuggestions, renderItems, DynamicHeightWidget, CustomizePageUtils, SchemaTable, TableDescription, TableDetailsPageV1. 14/14 suites and 121/121 tests pass.
  • ESLint + Prettier on changed files: clean
  • tsc: no new errors in the changed hunks. The errors that remain in these files are already on 2.0.

🤖 Generated with Claude Code

Rohit0301 and others added 2 commits November 5, 2026 15:04
* 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)
@Rohit0301
Rohit0301 requested a review from a team as a code owner November 5, 2026 09:36
@Rohit0301
Rohit0301 requested review from sweta1308 and removed request for a team November 5, 2026 09:36
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Nov 5, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@Rohit0301 Rohit0301 added the safe to test Add this label to run secure Github workflows on PRs label Nov 5, 2026
@gitar-bot

gitar-bot Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 68%
68.67% (83707/121886) 53.71% (52085/96970) 54.36% (15449/28416)

@sonarqubecloud

sonarqubecloud Bot commented Nov 5, 2026

Copy link
Copy Markdown

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants