Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote cursors pvh #25

Open
wants to merge 8 commits into
base: presence-color
Choose a base branch
from
Open

Remote cursors pvh #25

wants to merge 8 commits into from

Conversation

pvh
Copy link
Member

@pvh pvh commented Feb 2, 2024

@paulsonnentag here's ... most of a patch to implement remote cursors & selection sharing (I was annoyed yesterday that I didn't have it). It's still a bit rough but it's close. I seem to be sharing the selection data and creating decorations but something goes wrong in rendering and I go into an infinite loop on both peers. LMK if you see something obviously wrong or just wait and I'll fix it.

Copy link

netlify bot commented Feb 2, 2024

Deploy Preview for tee-production ready!

Name Link
🔨 Latest commit 5c47b9c
🔍 Latest deploy log https://app.netlify.com/sites/tee-production/deploys/65d4fc3c0c822300082be337
😎 Deploy Preview https://deploy-preview-25--tee-production.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@pvh pvh changed the base branch from main to presence-color February 2, 2024 09:02
Copy link

netlify bot commented Feb 2, 2024

Deploy Preview for tangerine-dolphin-eefe36 failed.

Name Link
🔨 Latest commit bdc82f9
🔍 Latest deploy log https://app.netlify.com/sites/tangerine-dolphin-eefe36/deploys/65bcaf8d74c6fe000859e48b

@@ -69,13 +72,37 @@ export function MarkdownEditor({

const handleReady = handle.isReady();

const account = useCurrentAccount();
Copy link
Member Author

Choose a reason for hiding this comment

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

PS: this hook is driving me crazy

Copy link
Member Author

Choose a reason for hiding this comment

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

specifically, it's annoying that i have to check several levels of hierarchy (account, currentaccount, doc) and then i still have the type / anonymous stuff where if the type is anonymous i have to reinvent the name & a color every time...

my suggestion is that we set the name to anonymous (at least in the hook but i think in the doc too) and pick a random presence color and leave it on the contact doc.

@paulsonnentag
Copy link
Collaborator

Is this ready to review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants