-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
[ML 0.1/UI.04.9] - Wire swipe actions to legacy swipe handlers #10782
Copy link
Copy link
Open
Labels
tb-teamTasks and features handled by project maintainersTasks and features handled by project maintainerstype: enhancementNew features or improvements to existing features.New features or improvements to existing features.
Description
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.OnSwipeMessageis handled in the state machine.- A
MessageListEffectis 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
tb-teamTasks and features handled by project maintainersTasks and features handled by project maintainerstype: enhancementNew features or improvements to existing features.New features or improvements to existing features.
Type
Projects
Status
Planning