Repository navigation
feat: add six collaborative examples - #8
Merged
Merged
Conversation
Interpolate remote positions between presence packets and retain cursor, selection, and participant elements instead of rebuilding them on every update.
Remove placeholder hints from inline layout so they do not push remote carets past document position zero. Cover empty fields, narrow layouts, and restored placeholders with browser regression tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds six collaborative examples so developers can try shared application state beyond the existing plain-text editor. Each example uses the same account, room, access, connection, and save controls, with navigation that keeps the current room.
All examples keep their data separate within a room, enforce viewer permissions, merge offline changes after reconnecting, and recover saved state after a server restart. The plain-text editor remains available. The canvas examples use participant-colored cursors with white name labels, and empty CodeMirror fields place remote carets at the start of their placeholders.
The production build and Phoenix routes include every example. README instructions describe their behavior, data models, and limitations. These are examples: the flowchart does not execute workflows, the form does not submit to an external service, and the table uses text cells without formulas.
Validation:
npm test: 22 SDK and model tests passed.mix test: 58 tests passed, including routes for all packaged example pages.npm run test:package: package contents, ESM imports, shared Yjs, TypeScript declarations, and a consumer Vite build passed.mix format --check-formatted,npm run build, andgit diff --checkpassed.