Skip to content

Conversation

max-nextcloud
Copy link
Collaborator

Based on #7313.

Move sync service and sync service provider into the setup function
so we can also initialize the editor there right away.

Copy link

codecov bot commented Jun 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 59.65%. Comparing base (64280d9) to head (4a49f73).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7371      +/-   ##
==========================================
- Coverage   59.65%   59.65%   -0.01%     
==========================================
  Files         486      486              
  Lines       37288    37286       -2     
  Branches     1097     1097              
==========================================
- Hits        22245    22243       -2     
  Misses      14937    14937              
  Partials      106      106              

☔ 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.

@max-nextcloud max-nextcloud force-pushed the migrate/editor-to-setup-function branch 3 times, most recently from 55ce342 to 2b7dc03 Compare June 29, 2025 18:48
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Move its definition into the setup function.

One problem that becomes apparent here - but that we probably already have:
On a reconnect the provider will change.
But it remains the same in the collaboration cursor extension
effectively disconnecting the two.

Signed-off-by: Max <max@nextcloud.com>
Keep the same awareness state - even when a new provider instance is created
 - for example on reconnect.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
@max-nextcloud max-nextcloud force-pushed the migrate/editor-to-setup-function branch from 2b7dc03 to 4a49f73 Compare June 30, 2025 08:23
@max-nextcloud max-nextcloud changed the title WIP: migrate editor.vue to setup function Migrate editor instantiation to setup function Jun 30, 2025
@max-nextcloud max-nextcloud marked this pull request as ready for review June 30, 2025 09:33
@max-nextcloud max-nextcloud requested a review from mejo- as a code owner June 30, 2025 09:33
Copy link
Member

@mejo- mejo- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great to see the issue with syncService in CollaborationCursor after reconnect being resolved and editor creation being moved to the setup function ❤️

What is missing to remove all the editor === null handling (i.e. this.editor?.something)? In any case, ready to get merged from my side 🎉

@mejo- mejo- merged commit d1d6920 into main Jun 30, 2025
68 checks passed
@mejo- mejo- deleted the migrate/editor-to-setup-function branch June 30, 2025 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants