Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collaborative editing history #545

Merged
merged 10 commits into from Sep 13, 2023
Merged

Collaborative editing history #545

merged 10 commits into from Sep 13, 2023

Conversation

nonumpa
Copy link
Member

@nonumpa nonumpa commented Aug 9, 2023

Changes

  • Add CollabHistory component to display history in modalview
  • Refactor CollabEditor: use use-prosemirror to create ProseMirror editor view
    • HocuspocusProvider connects server onTranscribe and destroys(disconnects) when Editor unmount
    • Make sure Editor and CollabHistory are created after provider synced, or ProseMirror editor may create with a wrong state
    • Update ydoc user mapping with a json string contains id and name
    • Note: there's another ProseMirror reactjs plugin react-prosemirror, but it require reactjs>=17
    • Implement GetYdoc query and Ydoc model rumors-api#316

Snapshot

螢幕擷取畫面 2023-08-09 210930

@coveralls
Copy link

coveralls commented Aug 9, 2023

Coverage Status

coverage: 76.218%. remained the same when pulling a09b2e9 on feature/collab-version into 802dc59 on master.

@nonumpa nonumpa force-pushed the feature/collab-version branch 2 times, most recently from 407819e to f234c17 Compare August 9, 2023 17:20
@nonumpa nonumpa changed the title Collaborative editing version Collaborative editing history Aug 9, 2023
@nonumpa nonumpa requested review from MrOrz and bil4444 August 9, 2023 17:34
@nonumpa nonumpa marked this pull request as ready for review August 9, 2023 17:35
…tor view

- HocuspocusProvider connects server onTranscribe and destroys(disconnects) when `Editor` unmount
- Make sure `Editor` and `CollabHistory` create after provider synced, or ProseMirror editor may create with a wrong state
- Update user mapping with a json string contains id and name
components/Collaborate/CollabEditor.js Outdated Show resolved Hide resolved
components/Collaborate/CollabHistory.js Outdated Show resolved Hide resolved
… opened

- Fix when no snapshots user can edit document in CollabHistory
- Add no histories translation
@MrOrz MrOrz merged commit 63c03a7 into master Sep 13, 2023
8 checks passed
@MrOrz MrOrz deleted the feature/collab-version branch September 13, 2023 12:23
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.

None yet

4 participants