Skip to content

Conversation

@brunopagno
Copy link
Contributor

@brunopagno brunopagno commented Nov 25, 2025

Ticket

https://community.openproject.org/projects/communicator-stream/work_packages/69240/activity

counterpart of opf/op-blocknote-hocuspocus#14

What are you trying to accomplish?

Use a better key for communicating between OpenProject and Hocuspocus. Also fix issues where changing the document name, or having multiple documents with the same name would cause misalignment with Hocuspocus.

Additionally this simplifies the Hocuspocus setup, we don't need as many parameters, just a resource link.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@brunopagno brunopagno self-assigned this Nov 25, 2025
@brunopagno brunopagno force-pushed the impl/69240-use-resourceid-instead-of-docname branch from bb89038 to f1c0ea1 Compare November 25, 2025 14:50
@brunopagno brunopagno requested a review from a team November 25, 2025 15:12
Copy link
Contributor

@judithroth judithroth left a comment

Choose a reason for hiding this comment

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

🥳 Nice how most of this PR is removing stuff that is no longer necessary 😄

connect():void {
const url = new URL(this.hocuspocusUrlValue);
url.searchParams.set('document_id', this.documentIdValue);
url.searchParams.set('openproject_base_path', this.openProjectUrlValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's so nice how this turned out 🤩

@brunopagno brunopagno force-pushed the impl/69240-use-resourceid-instead-of-docname branch from f1c0ea1 to 7681259 Compare November 25, 2025 18:21
@brunopagno brunopagno marked this pull request as ready for review November 25, 2025 18:44
@brunopagno brunopagno merged commit 1729511 into dev Nov 25, 2025
20 of 21 checks passed
@brunopagno brunopagno deleted the impl/69240-use-resourceid-instead-of-docname branch November 25, 2025 18:45
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants