Skip to content

Point collaboration provider at self-hosted docs-collab-server#409

Draft
jhodapp wants to merge 2 commits into
mainfrom
feat/docs-collab-server
Draft

Point collaboration provider at self-hosted docs-collab-server#409
jhodapp wants to merge 2 commits into
mainfrom
feat/docs-collab-server

Conversation

@jhodapp

@jhodapp jhodapp commented Jun 3, 2026

Copy link
Copy Markdown
Member

Description

Repoints the collaborative coaching-notes provider from TipTap Cloud to the self-hosted docs-collab-server. This is a config-only change: TiptapCollabProvider now connects via baseUrl (the new NEXT_PUBLIC_DOCS_COLLAB_URL) instead of appId. Editor behavior, awareness/presence, the Y.Doc, and the JWT/token flow are unchanged.

Coordinated with the backend PR refactor-group/refactor-platform-rs#342 (the new server). tiptapAppId is left in place so reverting to TipTap Cloud stays a one-line change.

GitHub Issue: link if applicable

Changes

  • editor-cache-context.tsx: provider construction uses baseUrl: siteConfig.env.docsCollabUrl instead of appId, and the connect guard keys on docsCollabUrl.
  • site.config.ts: surface docsCollabUrl from NEXT_PUBLIC_DOCS_COLLAB_URL.

Screenshots / Videos Showing UI Changes (if applicable)

No visual change; the editor is identical. The useful verification artifact is a short screen recording of two browser windows on the same coaching session syncing text and presence/cursors in real time against a running docs-collab-server.

Testing Strategy

  • npm run lint, npx tsc --noEmit, and npm run build are clean. No type changes were needed (the base-class baseUrl override type-checks).
  • Validated manually end-to-end against a local docs-collab-server (see the backend PR's docs/test-plans/docs-collab-server-local-e2e.md): real-time two-window text sync, presence, persistence across a server restart, and CRDT offline merge.

Concerns

@jhodapp jhodapp self-assigned this Jun 3, 2026
@jhodapp jhodapp changed the title feat: point collaboration provider at self-hosted docs-collab-server Point collaboration provider at self-hosted docs-collab-server Jun 3, 2026
@jhodapp jhodapp added the enhancement Improves existing functionality or feature label Jun 3, 2026
@jhodapp jhodapp moved this to 🏗 In progress in Refactor Coaching Platform Jun 3, 2026
@jhodapp jhodapp added this to the 1.0.0-beta3 milestone Jun 3, 2026
Provider init now gates on siteConfig.env.docsCollabUrl instead of
tiptapAppId, but the editor-cache-context and connection-status test
mocks still only defined tiptapAppId. With docsCollabUrl undefined,
initializeProvider early-returned, no TiptapCollabProvider was created,
and the test helpers threw on the missing provider instance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Improves existing functionality or feature

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

1 participant