-
Notifications
You must be signed in to change notification settings - Fork 7
feat(ui): Keep cursors in their respective workflows and Hook Refactor [FLOW-FE-267] #1418
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
Conversation
🚀 Cloud Run Preview Deployed |
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.
Pull Request Overview
This PR implements workflow-specific cursor visibility, ensuring that user cursors are only displayed to collaborators who are working within the same workflow. The changes track which workflow each user is currently viewing and their open workflows through the awareness system.
- Added workflow tracking fields to user awareness state
- Implemented cursor filtering based on current workflow context
- Added spotlight user workflow synchronization functionality
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
ui/src/types/user.ts | Extended AwarenessUser type with workflow tracking fields |
ui/src/lib/yjs/useWorkflowTabs.ts | Exposed openWorkflowIds for awareness updates |
ui/src/features/Editor/index.tsx | Passed currentWorkflowId to Canvas component |
ui/src/features/Editor/hooks.ts | Added workflow state synchronization and spotlight user workflow handling |
ui/src/features/Canvas/index.tsx | Added currentWorkflowId prop and conditional MultiCursor rendering |
ui/src/features/Canvas/components/MultiCursor/index.tsx | Implemented workflow-based cursor filtering |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Pull Request Overview
Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…arth-flow into ui/awareness-subworkflow-fix
…r [FLOW-FE-267] (#1418) * feat(ui): Keep cursors in their respective workflows * fix(ui): prettier check ran * feat(ui): add openWorkflowIds to user state and update workflow handling logic * feat(ui): implement useSpotlightUser hook for managing spotlight user workflows * feat(ui): refactor spotlight user handling and add awareness cursor hook * fix(ui): removed unnecessary conditional * fix(ui): type issue for handlePaneMouseMove * fix(ui): only update awareness when multiple users * fix(ui): remove console logs * fix(ui): cursor z-index from 1000 to 2000 to fix batch node collision issue
Overview
This PR implements workflow-specific cursor visibility, ensuring that user cursors are only displayed to collaborators who are working within the same workflow. The changes track which workflow each user is currently viewing and their open workflows through the awareness system.
What I've done
What I haven't done
How I tested
Screenshot
Which point I want you to review particularly
Memo