Files
sharedinbox/lib/core/models/undo_action.dart
T
Thomas Güttler 43e1744614 feat: implement optimized Undo for delete and move actions
- Added UndoService with 10-action history stack.
- Integrated Undo Snackbar into EmailListScreen and EmailDetailScreen.
- Added EmailRepository.cancelPendingChange to optimize undo by removing
  unsynced local mutations.
- Fixed sorting bug in compareMailboxes for unknown roles.
- Increased unit coverage to 83% with new model and utility tests.
- Verified with full test suite (task check).
2026-05-08 11:14:54 +02:00

20 lines
427 B
Dart

enum UndoType { move, delete }
class UndoAction {
const UndoAction({
required this.id,
required this.accountId,
required this.type,
required this.emailIds,
required this.sourceMailboxPath,
this.destinationMailboxPath,
});
final String id;
final String accountId;
final UndoType type;
final List<String> emailIds;
final String sourceMailboxPath;
final String? destinationMailboxPath;
}