Skip to content

[ML 0.1/UI.04.9] - Wire swipe actions to legacy swipe handlers #10782

@rafaeltonholo

Description

@rafaeltonholo

Blocked by

Description

The Compose UI detects swipe gestures and dispatches MessageItemEvent.OnSwipeMessage(message, swipeAction), but the state machine has no handler for this event. The legacy MessageListFragment.onSwipeAction() method contains all the business logic (archive, delete, spam, move, toggle read, toggle star, toggle selection) but is never invoked.

Connect MessageItemEvent.OnSwipeMessage to the legacy swipe action handlers so that swiping a message executes the corresponding action, matching legacy behaviour.

Acceptance Criteria

  • MessageItemEvent.OnSwipeMessage is handled in the state machine.
  • A MessageListEffect is emitted that triggers the appropriate legacy action.
  • The side effect or bridge invokes MessageListFragment's existing swipe handler.
  • All swipe action types are supported: Archive, Delete, Spam, Move, Toggle Read, Toggle Star, Toggle Selection.
  • No swipe action business logic is migrated - only wiring.
  • Behaviour matches the legacy swipe actions.

Out of Scope:

  • Changing swipe gesture detection or thresholds.
  • Modifying the legacy swipe action implementations.

Metadata

Metadata

Assignees

Labels

tb-teamTasks and features handled by project maintainerstype: enhancementNew features or improvements to existing features.

Projects

Status

Planning

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions