refactor(mobile): render list ()

* refactor(mobile): render list 2

* wip

* wip: asset selection page

* remove render_list provider

* remove dead code

* yaml format

* remove unused file

* woop woop more clean up

* woop woop more clean up 2

* fix: album selection doesn't load instantly
This commit is contained in:
Alex 2025-02-25 11:33:48 -06:00 committed by GitHub
commit d0381fddec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 134 additions and 140 deletions

View file

@ -65,6 +65,9 @@ abstract interface class IAssetRepository implements IDatabaseRepository {
Stream<Asset?> watchAsset(int id, {bool fireImmediately = false});
Future<List<Asset>> getTrashAssets(int userId);
Future<List<Asset>> getRecentlyAddedAssets(int userId);
Future<List<Asset>> getMotionAssets(int userId);
}
enum AssetSort { checksum, ownerIdChecksum }

View file

@ -1,4 +1,5 @@
import 'package:immich_mobile/entities/album.entity.dart';
import 'package:immich_mobile/entities/asset.entity.dart';
import 'package:immich_mobile/widgets/asset_grid/asset_grid_data_structure.dart';
abstract class ITimelineRepository {
@ -16,4 +17,11 @@ abstract class ITimelineRepository {
List<int> userIds,
GroupAssetsBy groupAssetsBy,
);
Future<RenderList> getTimelineFromAssets(
List<Asset> assets,
GroupAssetsBy getGroupByOption,
);
Stream<RenderList> watchAssetSelectionTimeline(int userId);
}