Skip to content

v1.3.7

Choose a tag to compare

@github-actions github-actions released this 04 Jan 18:22

feat: Add system gesture configuration to prevent conflicts (#47)

  • feat: Add system gesture configuration to prevent conflicts
  • Add SystemGestureHelper utility to detect and configure macOS trackpad settings
  • Replace non-functional 'Block System Gestures' toggle with 'Configure System Gestures...' action
  • Add dialogs to explain conflicts and offer automatic configuration
  • Automatically switch 3-finger gestures to 4-finger for Mission Control/Spaces
  • Apply changes via 'defaults write' and restart Dock

The previous blockSystemGestures setting was a placeholder that did nothing.
This implementation actually helps users configure their system to avoid
conflicts with MiddleDrag's 3-finger gestures.

  • refactor(SystemGestureHelper): add dependency injection for testability
  • Add TrackpadSettingsProvider and ProcessRunner protocols
  • Create default implementations using UserDefaults and Process
  • Update methods to use injectable dependencies
  • Add 36 comprehensive tests with mock providers
  • refactor(AlertHelper): add dependency injection for testability
  • Add AlertPresenter protocol for modal and URL handling
  • Create DefaultAlertPresenter using NSAlert and NSWorkspace
  • Split show* methods into createAlert (testable) + show (presents)
  • Add URL constants for GitHub and trackpad settings
  • Expand AlertHelperTests with 34 mock-based tests
  • test(MenuBarController): add missing toggle action tests
  • Add testToggleAllowReliftDuringDragViaSelector
  • Add testToggleAllowReliftDuringDragPostsNotification
  • Add testBuildMenuWithAllowReliftEnabled
  • Add testConfigureSystemGesturesMethodExists
  • Add testAllPreferenceTogglesInSequence for comprehensive coverage
  • chore: add SystemGestureHelperTests to project exceptions

Exclude new test file from main target compilation

  • fix: address Copilot review feedback
  • Update 'Block System Gestures' references to 'Configure System Gestures...'
  • Add describeConflictingSettings() for 3-finger gestures only
  • Use describeConflictingSettings in configuration prompt alert
  • Add 6 new tests for describeConflictingSettings

SHA256: bfce74f9072162db1c9ac44cfe924ed7d7067e3a6b8ec300f98e24aaddf34901

feat: Add system gesture configuration to prevent conflicts (#47)

  • feat: Add system gesture configuration to prevent conflicts
  • Add SystemGestureHelper utility to detect and configure macOS trackpad settings
  • Replace non-functional 'Block System Gestures' toggle with 'Configure System Gestures...' action
  • Add dialogs to explain conflicts and offer automatic configuration
  • Automatically switch 3-finger gestures to 4-finger for Mission Control/Spaces
  • Apply changes via 'defaults write' and restart Dock

The previous blockSystemGestures setting was a placeholder that did nothing.
This implementation actually helps users configure their system to avoid
conflicts with MiddleDrag's 3-finger gestures.

  • refactor(SystemGestureHelper): add dependency injection for testability
  • Add TrackpadSettingsProvider and ProcessRunner protocols
  • Create default implementations using UserDefaults and Process
  • Update methods to use injectable dependencies
  • Add 36 comprehensive tests with mock providers
  • refactor(AlertHelper): add dependency injection for testability
  • Add AlertPresenter protocol for modal and URL handling
  • Create DefaultAlertPresenter using NSAlert and NSWorkspace
  • Split show* methods into createAlert (testable) + show (presents)
  • Add URL constants for GitHub and trackpad settings
  • Expand AlertHelperTests with 34 mock-based tests
  • test(MenuBarController): add missing toggle action tests
  • Add testToggleAllowReliftDuringDragViaSelector
  • Add testToggleAllowReliftDuringDragPostsNotification
  • Add testBuildMenuWithAllowReliftEnabled
  • Add testConfigureSystemGesturesMethodExists
  • Add testAllPreferenceTogglesInSequence for comprehensive coverage
  • chore: add SystemGestureHelperTests to project exceptions

Exclude new test file from main target compilation

  • fix: address Copilot review feedback
  • Update 'Block System Gestures' references to 'Configure System Gestures...'
  • Add describeConflictingSettings() for 3-finger gestures only
  • Use describeConflictingSettings in configuration prompt alert
  • Add 6 new tests for describeConflictingSettings

SHA256: dea085a41c7c4767a77801a258f43f9d017a121b4b2862811785fbfc164f608b