- 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).
20 lines
427 B
Dart
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;
|
|
}
|