-
Notifications
You must be signed in to change notification settings - Fork 6
ENG-1373: Drag pages onto the canvas to create node shapes #1083
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
Open
sid597
wants to merge
15
commits into
main
Choose a base branch
from
eng-1373-drag-and-drop-pages-to-canvas
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+264
−22
Open
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
014d57e
ENG-1373: Drag pages onto the canvas to create node shapes
sid597 c6e8e91
ENG-1373: Unregister page-ref draggable handler on unload
sid597 247a42d
ENG-1373: Drag query-result page links and resolve block refs to nodes
sid597 cbee62a
Scope page ref canvas dragging
sid597 4cef969
Format canvas drag changes
sid597 459fba1
Fix canvas block drag fallback
472b588
Enable page reference drags to canvas
sid597 467b925
Clarify canvas text content analytics
sid597 2cdac41
Handle page link drags without navigation
sid597 66900fe
Mark hovered page refs draggable on pointerover
sid597 41f04c5
Improve page reference drag performance
sid597 b0fa2e4
ENG-1373 Show canvas drag handles on link-view page refs
sid597 4904964
Address pre-PR review: keep existing analytics event name, drop dead …
sid597 e092076
Address review: overlay drag handle without reflow, gray icon, disarm…
sid597 516d39e
Give drag handle an opaque background so it reads cleanly over adjace…
sid597 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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.
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.
When a query link/alias view has already rendered before this canvas effect runs, its
a.rm-page-refelements are never passed toobservePageRef:createHTMLObserveronly covers subsequently added nodes, while the shared span path explicitly applies its handler to existing refs viaonPageRefObserverChange. Consequently, opening or mounting a canvas alongside an already-rendered query leaves those page links without a drag handle until the query rerenders. Query the existinga.rm-page-refelements here as well before relying on the observer.Useful? React with 👍 / 👎.