mirror of
https://github.com/immich-app/immich.git
synced 2026-02-11 03:17:59 +03:00
* feat: enhance album sorting functionality with effective order handling * mobile: formatting * test: align album sorting order in unit tests with defaultSortOrder * test(mobile): add reverse order validation for album sorting * chore(PR): remove OppositeSortOrder Extension and move it directly into SortOrder enum * refactor: return sorted list directly in album sorting function * refactor: remove sort_order_extensions.dart
21 lines
419 B
Dart
21 lines
419 B
Dart
enum SortOrder {
|
|
asc,
|
|
desc;
|
|
|
|
SortOrder reverse() {
|
|
return this == SortOrder.asc ? SortOrder.desc : SortOrder.asc;
|
|
}
|
|
}
|
|
|
|
enum TextSearchType { context, filename, description, ocr }
|
|
|
|
enum AssetVisibilityEnum { timeline, hidden, archive, locked }
|
|
|
|
enum SortUserBy { id }
|
|
|
|
enum ActionSource { timeline, viewer }
|
|
|
|
enum CleanupStep { selectDate, scan, delete }
|
|
|
|
enum AssetKeepType { none, photosOnly, videosOnly }
|