Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mobile): new mobile UI #12582

Merged
merged 65 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
a1df387
add collection page
alextran1502 Sep 5, 2024
14a5e98
Added people collections
alextran1502 Sep 6, 2024
c886fca
Added share partner button
alextran1502 Sep 6, 2024
9d6a177
Added collection pages
alextran1502 Sep 6, 2024
746354b
Added rounting mechanism
alextran1502 Sep 6, 2024
27d5b13
Update on rounting
alextran1502 Sep 6, 2024
34ea42c
wip: album collesction page
alextran1502 Sep 6, 2024
30a3f82
wip: album collections page
alextran1502 Sep 6, 2024
424de03
wip: album collections page
alextran1502 Sep 6, 2024
31f2b94
better anchor menu
alextran1502 Sep 7, 2024
77bfa5d
search album
alextran1502 Sep 7, 2024
2320e7a
smooth transition
alextran1502 Sep 7, 2024
2dc73c2
quick filter for album
alextran1502 Sep 7, 2024
3417330
better album tile
alextran1502 Sep 7, 2024
9266197
wip
alextran1502 Sep 7, 2024
27d390a
wip
alextran1502 Sep 8, 2024
c26baea
album on collections page does not change
alextran1502 Sep 8, 2024
f73deae
Merge branch 'main' of github.com:immich-app/immich into mobile/colle…
alextran1502 Sep 8, 2024
bb50ccb
local albums
alextran1502 Sep 8, 2024
ad84a6e
Merge branch 'main' of github.com:immich-app/immich into mobile/colle…
alextran1502 Sep 9, 2024
0a9d8ac
swipe to go back from album view
alextran1502 Sep 9, 2024
c2e4d91
Merge branch 'main' of github.com:immich-app/immich into mobile/colle…
alextran1502 Sep 10, 2024
8475cfb
people collection page
alextran1502 Sep 10, 2024
701b2be
place collections
alextran1502 Sep 10, 2024
4d45e36
wip
alextran1502 Sep 11, 2024
bee7cd9
add albums to dedicated item menu
alextran1502 Sep 11, 2024
e69bcf3
add albums to dedicated item menu
alextran1502 Sep 11, 2024
4c9a7a7
wip
alextran1502 Sep 11, 2024
8e90913
merge main
alextran1502 Sep 30, 2024
3901792
fixed build
alextran1502 Sep 30, 2024
a14fadc
Merge branch 'main' into mobile/collections
alextran1502 Oct 2, 2024
bae02c3
Merge branch 'main' into mobile/collections
alextran1502 Oct 3, 2024
86e577a
Change back to Library and previous location
alextran1502 Oct 3, 2024
d3d71d6
provider
alextran1502 Oct 3, 2024
f8b28c0
smaller fontsize for bottom app bar
alextran1502 Oct 3, 2024
45fa65a
simplify album sync
alextran1502 Oct 4, 2024
b3d2cac
partners list and quick access item
alextran1502 Oct 4, 2024
707902b
simplify search page
alextran1502 Oct 4, 2024
8b1b275
recently added route
alextran1502 Oct 4, 2024
faeb6cd
WIP
alextran1502 Oct 4, 2024
e43dc88
UI WIP
alextran1502 Oct 4, 2024
2cd4283
wip
alextran1502 Oct 5, 2024
f4952fe
merge main
alextran1502 Oct 5, 2024
7011450
improve minor styling
alextran1502 Oct 5, 2024
0986da9
improved search box ui
alextran1502 Oct 5, 2024
f47618c
Merge branch 'main' of github.com:immich-app/immich into mobile/colle…
alextran1502 Oct 7, 2024
568a09b
better search
alextran1502 Oct 7, 2024
fa4606d
pull to refresh
alextran1502 Oct 7, 2024
2d86c30
refactor with repository pattern
alextran1502 Oct 7, 2024
3afcc13
refactor
alextran1502 Oct 7, 2024
8fc58c1
put back logo with name
alextran1502 Oct 7, 2024
64c7cad
refactor: remove reference to shared_album provider
alextran1502 Oct 7, 2024
24aadd4
refactor: add and remove users from album
alextran1502 Oct 8, 2024
5e8616b
refactor: activity, title change action
alextran1502 Oct 8, 2024
2d98d80
pr feedback
alextran1502 Oct 8, 2024
f15efd8
pr feedback
alextran1502 Oct 8, 2024
b01e1a7
improve ui
alextran1502 Oct 8, 2024
e162a4e
feedback and update test
alextran1502 Oct 9, 2024
813ee4f
dropdown menu feedback
alextran1502 Oct 9, 2024
b014cc5
clean up
alextran1502 Oct 9, 2024
cd0e757
add refresh remote album status
alextran1502 Oct 9, 2024
c59b697
search bar alighment fix
alextran1502 Oct 9, 2024
4c94ddc
use custom hashset for album
alextran1502 Oct 10, 2024
fbfc9c2
fix test
alextran1502 Oct 10, 2024
d70ac13
linting
alextran1502 Oct 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions mobile/assets/i18n/en-US.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
{
"all": "All",
"shared_with_me": "Shared with me",
"my_albums": "My albums",
"create_new": "CREATE NEW",
"create_album": "Create album",
"videos": "Videos",
"recently_added": "Recently added",
"partners": "Partners",
"partner_page_title": "Partners",
"library": "Library",
"on_this_device": "On this device",
"add_a_name": "Add a name",
"places": "Places",
"albums": "Albums",
"people": "People",
"shared_links": "Shared links",
"trash": "Trash",
"archived": "Archived",
"favorites": "Favorites",
"search_albums": "Search albums",
"action_common_back": "Back",
"action_common_cancel": "Cancel",
"action_common_clear": "Clear",
Expand Down Expand Up @@ -351,7 +371,6 @@
"notification_permission_list_tile_enable_button": "Enable Notifications",
"notification_permission_list_tile_title": "Notification Permission",
"partner_list_user_photos": "{user}'s photos",
"partner_list_view_all": "View all",
"partner_page_add_partner": "Add partner",
"partner_page_empty_message": "Your photos are not yet shared with any partner.",
"partner_page_no_more_users": "No more users to add",
Expand All @@ -360,7 +379,6 @@
"partner_page_shared_to_title": "Shared to",
"partner_page_stop_sharing_content": "{} will no longer be able to access your photos.",
"partner_page_stop_sharing_title": "Stop sharing your photos?",
"partner_page_title": "Partner",
"permission_onboarding_back": "Back",
"permission_onboarding_continue_anyway": "Continue anyway",
"permission_onboarding_get_started": "Get started",
Expand Down
13 changes: 5 additions & 8 deletions mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ PODS:
- Flutter
- connectivity_plus (0.0.1):
- Flutter
- ReachabilitySwift
- FlutterMacOS
- device_info_plus (0.0.1):
- Flutter
- DKImagePickerController/Core (4.3.9):
Expand Down Expand Up @@ -77,7 +77,6 @@ PODS:
- photo_manager (2.0.0):
- Flutter
- FlutterMacOS
- ReachabilitySwift (5.0.0)
- SAMKeychain (1.5.3)
- SDWebImage (5.19.4):
- SDWebImage/Core (= 5.19.4)
Expand All @@ -102,7 +101,7 @@ PODS:

DEPENDENCIES:
- background_downloader (from `.symlinks/plugins/background_downloader/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/ios`)
- connectivity_plus (from `.symlinks/plugins/connectivity_plus/darwin`)
- device_info_plus (from `.symlinks/plugins/device_info_plus/ios`)
- file_picker (from `.symlinks/plugins/file_picker/ios`)
- Flutter (from `Flutter`)
Expand Down Expand Up @@ -133,7 +132,6 @@ SPEC REPOS:
- DKImagePickerController
- DKPhotoGallery
- MapLibre
- ReachabilitySwift
- SAMKeychain
- SDWebImage
- SwiftyGif
Expand All @@ -143,7 +141,7 @@ EXTERNAL SOURCES:
background_downloader:
:path: ".symlinks/plugins/background_downloader/ios"
connectivity_plus:
:path: ".symlinks/plugins/connectivity_plus/ios"
:path: ".symlinks/plugins/connectivity_plus/darwin"
device_info_plus:
:path: ".symlinks/plugins/device_info_plus/ios"
file_picker:
Expand Down Expand Up @@ -195,8 +193,8 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
background_downloader: 9f788ffc5de45acf87d6380e91ca0841066c18cf
connectivity_plus: bf0076dd84a130856aa636df1c71ccaff908fa1d
device_info_plus: c6fb39579d0f423935b0c9ce7ee2f44b71b9fce6
connectivity_plus: ddd7f30999e1faaef5967c23d5b6d503d10434db
device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
DKImagePickerController: 946cec48c7873164274ecc4624d19e3da4c1ef3c
DKPhotoGallery: b3834fecb755ee09a593d7c9e389d8b5d6deed60
file_picker: 09aa5ec1ab24135ccd7a1621c46c84134bfd6655
Expand All @@ -217,7 +215,6 @@ SPEC CHECKSUMS:
path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
permission_handler_apple: 9878588469a2b0d0fc1e048d9f43605f92e6cec2
photo_manager: ff695c7a1dd5bc379974953a2b5c0a293f7c4c8a
ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
SAMKeychain: 483e1c9f32984d50ca961e26818a534283b4cd5c
SDWebImage: 066c47b573f408f18caa467d71deace7c0f8280d
share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
Expand Down
5 changes: 4 additions & 1 deletion mobile/lib/constants/immich_colors.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ final Map<ImmichColorPreset, ImmichTheme> _themePresetsMap = {
ImmichColorPreset.indigo: ImmichTheme(
light: ColorScheme.fromSeed(
seedColor: immichBrandColorLight,
).copyWith(primary: immichBrandColorLight),
).copyWith(
primary: immichBrandColorLight,
onSurface: const Color.fromARGB(255, 34, 31, 32),
),
dark: ColorScheme.fromSeed(
seedColor: immichBrandColorDark,
brightness: Brightness.dark,
Expand Down
141 changes: 98 additions & 43 deletions mobile/lib/entities/asset.entity.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions mobile/lib/interfaces/album.interface.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'package:immich_mobile/entities/album.entity.dart';
import 'package:immich_mobile/entities/asset.entity.dart';
import 'package:immich_mobile/entities/user.entity.dart';
import 'package:immich_mobile/interfaces/database.interface.dart';
import 'package:immich_mobile/models/albums/album_search.model.dart';

abstract interface class IAlbumRepository implements IDatabaseRepository {
Future<Album> create(Album album);
Expand Down Expand Up @@ -38,6 +39,8 @@ abstract interface class IAlbumRepository implements IDatabaseRepository {
Future<void> removeAssets(Album album, List<Asset> assets);

Future<Album> recalculateMetadata(Album album);

Future<List<Album>> search(String searchTerm, QuickFilterMode filterMode);
}

enum AlbumSort { remoteId, localId }
Loading
Loading