Conversation
…ction + read-only lock) Replace stub composables (useEditor, useAwareness, useYText, useCurrentUser) with inject-based implementations that defer to View.vue-provided refs. Wire VersionPreviewModal to use useVersionRestore composable instead of raw window.__cmView.dispatch, enabling concurrent editor detection, read-only lock during restore, awareness broadcasting, and atomic Y.js transactions with origin tagging. Lift awareness/cmView/readOnlyCompartment provides from Canvas.vue to View.vue so both Canvas and Sidebar subtrees can inject them. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for rsm-studio-frontend ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for rsm-studio-site canceled.
|
…w fetch
In Docker/CI, raw fetch('/api/...') hits Vite's SPA fallback and returns
index.html HTML instead of version content. This caused the Y.js editor
to be populated with the HTML page, breaking the 2 E2E restore tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Needs human reviewWhat changed: Version restore now goes through a Review checklist:
What to look for:
|
Preview DeployFrontend: https://pr-372--rsm-studio-frontend.netlify.app Test user: This preview will be destroyed when the PR is closed. |
Now that useAwareness and useEditor composables are fully implemented (no longer stubs), these e2e tests can exercise the real restore flow: concurrent editor warning via awareness states and editor read-only lock during restore. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Needs human reviewWhat changed: Version restore now uses Y.js transactions via Review checklist:
What to look for:
|
Needs human reviewWhat changed: Version restore now uses Review checklist:
What to look for:
|
Summary
useEditor,useAwareness,useYText,useCurrentUser) with inject-based implementations using lazy proxy patterns for deferred accessVersionPreviewModalto useuseVersionRestorecomposable instead of rawwindow.__cmView.dispatch, enabling concurrent editor detection, read-only lock, awareness broadcasting, and atomic Y.js transactionsawareness/cmView/readOnlyCompartmentprovides fromCanvas.vuetoView.vueso both Canvas and Sidebar subtrees can inject themTest plan
🤖 Generated with Claude Code