1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-08 23:07:06 +02:00

refactor(mobile): render list (#16303)

* 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
parent 7c851893b4
commit d0381fddec
26 changed files with 134 additions and 140 deletions

View File

@ -233,6 +233,25 @@ class AssetRepository extends DatabaseRepository implements IAssetRepository {
.isTrashedEqualTo(true)
.findAll();
}
@override
Future<List<Asset>> getRecentlyAddedAssets(int userId) {
return db.assets
.where()
.ownerIdEqualToAnyChecksum(userId)
.sortByFileCreatedAtDesc()
.findAll();
}
@override
Future<List<Asset>> getMotionAssets(int userId) {
return db.assets
.where()
.ownerIdEqualToAnyChecksum(userId)
.filter()
.livePhotoVideoIdIsNotNull()
.findAll();
}
}
Future<List<Asset>> _getMatchesImpl(