fix(sidebar): cmd+click opens in new tab, shift+click for range select#3846
fix(sidebar): cmd+click opens in new tab, shift+click for range select#3846waleedlatif1 merged 3 commits intostagingfrom
Conversation
PR SummaryLow Risk Overview Selection handlers for tasks and workflows are simplified to shift-click range/toggle only (removing Written by Cursor Bugbot for commit 4cf1933. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR fixes a long-standing UX bug where
Confidence Score: 5/5Safe to merge — the fix is minimal, correctly scoped, and all prior review feedback has been addressed. No P0 or P1 issues found. The browser-default-open-in-new-tab path works correctly because the handlers return early without calling preventDefault on the Link's anchor element. Shift-click range selection is unaffected. Dead code (metaKey branches, noop) has been cleanly removed. No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[User clicks sidebar item] --> B{modifier key pressed?}
B -- cmd or ctrl --> C[Return early, browser opens new tab]
B -- shift --> E[preventDefault, trigger range selection]
B -- none --> G[Normal navigation, clear store selection]
Reviews (2): Last reviewed commit: "fix(sidebar): drop stale metaKey param f..." | Re-trigger Greptile |
...Id]/w/components/sidebar/components/workflow-list/components/workflow-item/workflow-item.tsx
Show resolved
Hide resolved
|
@greptile |
|
@cursor review |
Summary
e.preventDefault()for all modifier clicks)noopcallbackType of Change
Testing
Tested manually
Checklist