Skip to content

Conversation

@ruibaby
Copy link
Member

@ruibaby ruibaby commented Nov 27, 2025

What type of PR is this?

/area ui
/kind cleanup
/milestone 2.22.x

What this PR does / why we need it:

Remove the yjs dependency from the editor package. This dependency comes from @tiptap/extension-drag-handle, which is used to implement block-level dragging. It looks like this package includes some special handling for collaboration features when used together with Tiptap’s collaboration extension (@tiptap/extension-collaboration). Since we don’t use any collaboration features at all, having yjs bundled in our build is unnecessary and adds a lot of extra weight.

It also seems unlikely that the Tiptap team will address this issue anytime soon, so we decided to patch the dependency ourselves. Reference: https://github.com/ueberdosis/tiptap/discussions/5787

Does this PR introduce a user-facing change?

优化 Console 和 UC 的加载速度

@f2c-ci-robot f2c-ci-robot bot added release-note-none Denotes a PR that doesn't merit a release note. area/ui Issues or PRs related to the Halo UI labels Nov 27, 2025
@f2c-ci-robot f2c-ci-robot bot added this to the 2.22.x milestone Nov 27, 2025
@f2c-ci-robot f2c-ci-robot bot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Nov 27, 2025
@f2c-ci-robot
Copy link

f2c-ci-robot bot commented Nov 27, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ruibaby for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@pkg-pr-new
Copy link

pkg-pr-new bot commented Nov 27, 2025

Open in StackBlitz

@halo-dev/api-client

npm i https://pkg.pr.new/@halo-dev/api-client@7971

@halo-dev/components

npm i https://pkg.pr.new/@halo-dev/components@7971

@halo-dev/richtext-editor

npm i https://pkg.pr.new/@halo-dev/richtext-editor@7971

@halo-dev/ui-shared

npm i https://pkg.pr.new/@halo-dev/ui-shared@7971

@halo-dev/ui-plugin-bundler-kit

npm i https://pkg.pr.new/@halo-dev/ui-plugin-bundler-kit@7971

commit: f003ece

@codecov
Copy link

codecov bot commented Nov 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.19%. Comparing base (42c374d) to head (f003ece).
⚠️ Report is 291 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #7971      +/-   ##
============================================
+ Coverage     59.55%   61.19%   +1.63%     
- Complexity     3812     3933     +121     
============================================
  Files           677      689      +12     
  Lines         23248    23507     +259     
  Branches       1500     1522      +22     
============================================
+ Hits          13846    14385     +539     
+ Misses         8764     8395     -369     
- Partials        638      727      +89     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ruibaby ruibaby requested a review from LIlGG November 27, 2025 09:50
@sonarqubecloud
Copy link

@ruibaby ruibaby merged commit 0883082 into halo-dev:main Nov 28, 2025
11 of 12 checks passed
@ruibaby ruibaby deleted the chore/remove-yjs branch November 28, 2025 07:52
@ruibaby ruibaby modified the milestones: 2.22.x, 2.22.0 Dec 1, 2025
@f2c-ci-robot f2c-ci-robot bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Dec 5, 2025
@ruibaby ruibaby added the kind/improvement Categorizes issue or PR as related to a improvement. label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/ui Issues or PRs related to the Halo UI kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/improvement Categorizes issue or PR as related to a improvement. release-note Denotes a PR that will be considered when it comes time to generate release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant