fix(shift): fix shift select blue ring fading#2863
Merged
waleedlatif1 merged 1 commit intostagingfrom Jan 17, 2026
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryFixed a bug where the blue ring wasn't appearing on shift-drag/box-select operations, though copy/paste selection worked correctly. The fix threads the
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant RF as ReactFlow
participant WB as WorkflowBlock/NoteBlock/SubflowNode
participant UBV as useBlockVisual Hook
participant GBRS as getBlockRingStyles
participant DOM as DOM (Ring Visual)
Note over RF,DOM: User performs shift-drag or box-select
RF->>WB: Render with selected=true
WB->>UBV: useBlockVisual({ blockId, data, isSelected: selected })
Note over UBV: Disable isSelected if isPreview=true
UBV->>GBRS: getBlockRingStyles({ isSelected, isEditorOpen, ... })
Note over GBRS: Priority cascade:<br/>1. isExecuting → green pulsing<br/>2. isEditorOpen/isSelected → blue ring<br/>3. isPending → warning<br/>4. isDeletedBlock → error<br/>5. diffStatus → green/orange<br/>6. runPathStatus → success/error
GBRS->>UBV: { hasRing: true, ringClassName: 'ring-[1.75px] ring-[var(--brand-secondary)]' }
UBV->>WB: { ringStyles }
WB->>DOM: Apply blue ring className
DOM->>DOM: Display blue ring on selected block
|
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.
Summary
Type of Change
Testing
Tested manually
Checklist