Conversation
Add useRestoreNotification composable that watches Y.js awareness states
for other users' 'restoring' field transitions. When another user starts
a restore, shows an info toast: "{name} restored a previous version".
Wired into Canvas.vue where awareness is provided.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✅ Deploy Preview for rsm-studio-frontend canceled.
|
✅ Deploy Preview for rsm-studio-site canceled.
|
Needs human reviewWhat changed: Added a toast notification that appears when another connected user restores a previous version of a document ("Alice restored a previous version — Your editor has been updated"). Review checklist:
What to look for:
|
Preview DeployFrontend: https://pr-369--rsm-studio-frontend.netlify.app Test user: This preview will be destroyed when the PR is closed. |
Needs human reviewWhat changed: When another connected user restores a previous version, a toast notification now appears: "{name} restored a previous version — Your editor has been updated." Review checklist:
What to look for:
|
Needs human reviewWhat changed: New toast notification appears to collaborators when another user restores a previous version of a document. Review checklist:
What to look for:
🤖 Generated with Claude Code |
Summary
useRestoreNotificationcomposable that watches Y.js awareness states for other users'restoringfieldCanvas.vuewhere the shared awareness ref is providedTest plan
useRestoreNotification(all pass)useVersionRestoretests still pass🤖 Generated with Claude Code