Repository navigation
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughList, column, and grid background right-click handlers now map scene positions to content coordinates before checking for a row. A new UI test checks menu state for row and empty-space clicks at multiple window heights and runs by default. ChangesScrolled background menus
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The changed handlers and UI test support the intended item-versus-background menu behavior. No issue identified here needs to be fixed before merging. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (3 skipped: 3 unsupported.)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Fixed in |
Right-clicking the final files in a shortened, scrolled window can replace their item menu with the directory background menu (#195).
The background TapHandlers in List, GridArea and ColumnPane live under the view's contentItem. Their local event positions already include the scroll displacement; adding contentX/contentY again makes indexAt miss the clicked delegate. Both item and background handlers receive the tap, so the background menu replaces the item menu.
Map eventPoint.scenePosition into contentItem before indexAt in those three handlers. This preserves the existing delegate lookup, model virtualization, selection handling and menu placement. The new
scrolledmenunative case is registered in the default UI runner.Reproduction: use 20 disposable files, compact density and 14px text; start at 900×900, shrink to 900×400, scroll to the end, and right-click the final file. Repeat in list, columns and grid. On ffa7566 the final click opens the background menu; with this change it opens the item menu. Real empty space continues to open the background menu.
Validation on Omarchy 4.0.4 / Hyprland 0.56.2 / Qt 6.11.2 / Quickshell 0.3.1:
tests/run-all.sh: 22 of 29 suites passed. The other seven fail on the unmodified base too: missing expect (gio-auth), missing media fixtures (protocol,thumbs,thumbs-exec,media), trash/undo assertions (ops), and kill-window timing assertions (uistate). These failures remain unresolved.The machine lacks omarchy-drive. The regression case body was executed against actual Flea windows using a temporary evdev/wtype adapter and existing read-only IPC; the complete official
tests/ui.shharness was not run. No other Qt versions or compositors were tested.Related: #195
Summary by CodeRabbit