-
Notifications
You must be signed in to change notification settings - Fork 427
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
feat(sanity): add always present document action to copy url to clipboard #7416
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Aug 26, 2024 6:55 PM (UTC) ✅ All Tests Passed -- expand for details
|
04cbf84
to
24e3fc2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good from my side.
I'll defer to @runeb about UI location, etc. Just a note: this is copying a link to the document within the navigation structure that the user took to get to it, and might not always be what the user expect. As an alternative to consider (if you didn't already), you could copy the intent link for editing the document (this is what you navigate to when clicking the presence menu, for reference)
@drewlyton Support this, and suggest we use the intent link here rather than the actual URL |
…oard (#7416) * feat: add always present document action to copy url to clipboard * chore: add comment to menuitems * feat: add check for navigator presence * feat: add tracking for copy document URL * fix: update to use intent URL instead of just current URL * feat: resolve intent link on demand * revert: go back to just copying current URL * chore: add comment explanation
…oard (#7416) * feat: add always present document action to copy url to clipboard * chore: add comment to menuitems * feat: add check for navigator presence * feat: add tracking for copy document URL * fix: update to use intent URL instead of just current URL * feat: resolve intent link on demand * revert: go back to just copying current URL * chore: add comment explanation
Description
This PR adds a document pane menu item that enables user's to easily copy the current
document's URL to their clipboard and share it with colleagues and collaborators.
Linear issue
Screen.Recording.2024-08-23.at.12.11.58.PM.mov
What to review
The code add for this feature is relatively straightforward. However, I'm unsure if the logic's location and the placement of the internalization strings is acceptable. Feedback on this would be greatly appreciated.
Testing
To test, navigate to a document and click on the added menu item. The current URL should be successfully copied to the clipboard.