[PR #2270] [MERGED] refactor(mobile): add AssetState and proper asset updating #9470

Closed
opened 2026-02-05 14:05:22 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/2270
Author: @fyfrey
Created: 4/17/2023
Status: Merged
Merged: 4/18/2023
Merged by: @alextran1502

Base: mainHead: dev/asset-storage-updating


📝 Commits (2)

  • 5a5d6c7 refactor(mobile): add AssetState and proper asset updating
  • aa12206 generate files

📊 Changes

14 files changed (+255 additions, -97 deletions)

View changed files

📝 mobile/lib/modules/album/ui/album_viewer_thumbnail.dart (+2 -5)
📝 mobile/lib/modules/archive/providers/archive_asset_provider.dart (+1 -1)
📝 mobile/lib/modules/archive/views/archive_page.dart (+36 -34)
📝 mobile/lib/modules/favorite/providers/favorite_provider.dart (+2 -2)
📝 mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart (+2 -5)
📝 mobile/lib/shared/models/asset.dart (+126 -27)
📝 mobile/lib/shared/models/asset.g.dart (+1 -1)
📝 mobile/lib/shared/models/exif_info.dart (+36 -0)
📝 mobile/lib/shared/models/exif_info.g.dart (+1 -1)
📝 mobile/lib/shared/providers/asset.provider.dart (+9 -10)
📝 mobile/lib/shared/services/asset.service.dart (+2 -2)
📝 mobile/lib/shared/services/sync.service.dart (+7 -9)
mobile/lib/utils/storage_indicator.dart (+14 -0)
📝 mobile/test/favorite_provider_test.mocks.dart (+16 -0)

📄 Description

adds AssetState to make !isLocal and !isRemote less confusing, add proper asset updating

fixes the issue that archived assets have their isArchived ignored after logout+login


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/2270 **Author:** [@fyfrey](https://github.com/fyfrey) **Created:** 4/17/2023 **Status:** ✅ Merged **Merged:** 4/18/2023 **Merged by:** [@alextran1502](https://github.com/alextran1502) **Base:** `main` ← **Head:** `dev/asset-storage-updating` --- ### 📝 Commits (2) - [`5a5d6c7`](https://github.com/immich-app/immich/commit/5a5d6c7573afdc9ee5ebd01a420539b5e50ced40) refactor(mobile): add AssetState and proper asset updating - [`aa12206`](https://github.com/immich-app/immich/commit/aa122065f5893d2a0ff0a5076a41f210ca27c9ea) generate files ### 📊 Changes **14 files changed** (+255 additions, -97 deletions) <details> <summary>View changed files</summary> 📝 `mobile/lib/modules/album/ui/album_viewer_thumbnail.dart` (+2 -5) 📝 `mobile/lib/modules/archive/providers/archive_asset_provider.dart` (+1 -1) 📝 `mobile/lib/modules/archive/views/archive_page.dart` (+36 -34) 📝 `mobile/lib/modules/favorite/providers/favorite_provider.dart` (+2 -2) 📝 `mobile/lib/modules/home/ui/asset_grid/thumbnail_image.dart` (+2 -5) 📝 `mobile/lib/shared/models/asset.dart` (+126 -27) 📝 `mobile/lib/shared/models/asset.g.dart` (+1 -1) 📝 `mobile/lib/shared/models/exif_info.dart` (+36 -0) 📝 `mobile/lib/shared/models/exif_info.g.dart` (+1 -1) 📝 `mobile/lib/shared/providers/asset.provider.dart` (+9 -10) 📝 `mobile/lib/shared/services/asset.service.dart` (+2 -2) 📝 `mobile/lib/shared/services/sync.service.dart` (+7 -9) ➕ `mobile/lib/utils/storage_indicator.dart` (+14 -0) 📝 `mobile/test/favorite_provider_test.mocks.dart` (+16 -0) </details> ### 📄 Description adds `AssetState` to make `!isLocal` and `!isRemote` less confusing, add proper asset updating fixes the issue that archived assets have their `isArchived` ignored after logout+login --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:05:22 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#9470