Repository navigation
Fix swipe recording after a provisional long press - #1413
Conversation
Allow swipe reclassification only while all participating buttons remain held. Co-authored-by: lamhoangtung <[email protected]>
|
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 configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe recorder now accepts movement during a provisional long press while participating buttons remain pressed. Tests cover swipe recognition, button releases, combined inputs, and delayed swipe actions. The project file also reorders the HIDPP package dependency. ChangesButton mapping swipe recording
Package dependency ordering
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Bug fix · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No merge-blocking issue is identified for the recorder change or dependency reorder; the PR is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Out of Scope Changes checkExplanation
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 12 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
Comment |
Allow swipes to replace the recorder’s provisional long press while all participating buttons remain held. Releasing any participating button prevents further swipe reclassification. Runtime recognition is unchanged.
Supersedes #1392 by @lamhoangtung and addresses its review feedback on partially released button combinations.
Closes #1391.
Validation: all 972 tests pass, including coverage for ordered and simultaneous combinations in both release orders. SwiftFormat and SwiftLint pass.
Co-authored-by: lamhoangtung [email protected]
Summary by CodeRabbit