Commit Graph

2924 Commits

Author SHA1 Message Date
ashilkn
a105195481 [mob][photos] Make matchedUploadedIDs a property of HierarchicalSearchFilter so that it's a property of all filters that extend it 2024-10-02 10:49:23 +05:30
ashilkn
007f7aa5d6 [mob][photos] Create a new widget 'HierarchicalSearchGallery' and use it when the first filter is added instead of handling everything in the 'Gallery' widget
Using a separate gallery for Hierarchical Search makes it easier to plug this in in different galleries
2024-10-02 10:05:26 +05:30
Neeraj Gupta
9898baddbb [mob] Update preview code to use latest api 2024-10-01 22:33:31 +05:30
Neeraj Gupta
520d4e4f26 [mob] Fix file getter 2024-10-01 21:24:12 +05:30
ashilkn
2292146706 [mob][photos] Refactor 2024-10-01 15:58:48 +05:30
ashilkn
60c718c7ed [mob][photos] Move filtering logic outside of gallery to reduce clutter in gallery file 2024-09-30 16:38:54 +05:30
Neeraj Gupta
ba04e20aeb erge branch 'main' into mobile-preview-video 2024-09-30 16:04:38 +05:30
ashilkn
b7f899cd88 [mob][photos] Fix incorrect order of files in _allGalleryFiles compared to file order in gallery 2024-09-30 16:04:12 +05:30
ashilkn
c27451f46b [mob][photos] Update all files in GalleryFilesState when filters are added in hierarchical search in a gallery 2024-09-30 16:02:27 +05:30
ashilkn
79e49d49d4 [mob][photos] Resolve merge conflicts and merge main 2024-09-30 13:01:35 +05:30
Neeraj Gupta
2f2fc43fa6 [mobile] New translations (#3533)
New translations from
[Crowdin](https://crowdin.com/project/ente-photos-app)
2024-09-30 12:08:22 +05:30
Ashil
093d7fd333 [mob][photos] Remove legacy code in detail page (#3496)
## Description

Removed use of `asyncLoader` in `DetailPage` and instead, all files in
gallery is now stored in an inherited widget (`GalleryFilesState`) and
`DetailPage` uses that list of files instead of fetching from DB using
`asyncLoader`. This 'all files' list reflects all changes in gallery (as
observed when testing) so there is no issue of the list being out of
sync with gallery.

Where ever possible, `GalleryFilesState` has been wrapped around the
`Scaffold` of galleries, so that all files are accessible to all
ancestors of a gallery's `Scaffold`, which could come useful in the
future.
2024-09-30 11:57:48 +05:30
Crowdin Bot
9bc3926372 New Crowdin translations by GitHub Action 2024-09-30 01:04:58 +00:00
Neeraj Gupta
00e75c0fb2 [mob] Lint 2024-09-29 09:54:20 +05:30
Neeraj Gupta
026ab8dcc6 [mob] Bump version: v0.9.46 2024-09-29 09:53:15 +05:30
Neeraj Gupta
a5d01a9ffe [mob] Fix avatar faceID 2024-09-29 09:52:41 +05:30
Neeraj Gupta
675b7f6cea [mob] Sync cgroup as part of ML 2024-09-29 09:45:48 +05:30
Neeraj Gupta
772373580a [mob] Stop consuming errors for trash 2024-09-29 09:42:25 +05:30
Neeraj Gupta
f0a19e38aa [mob] Fix hide cluster property 2024-09-29 09:41:35 +05:30
Neeraj Gupta
8629212584 [mob] Allow video upload with empty thumbnail 2024-09-28 14:18:21 +05:30
Neeraj Gupta
08cf14a72b [mob] Minor improvement in magicSearch cache refresh 2024-09-28 14:14:08 +05:30
ashilkn
2d7e58d743 [mob][photos] Stop passing to GalleryFileWidget as it's no longer needed 2024-09-27 18:41:12 +05:30
ashilkn
fa3a9f4f52 [mob][photos] Stop passing sort order to DetailPage since DetailPage uses files in GalleryFilesState which updates when sort order changes in gallery 2024-09-27 18:41:12 +05:30
ashilkn
0dcc840179 [mob][photos] Remove commented out code 2024-09-27 18:41:12 +05:30
ashilkn
58384004b4 [mob][photos] Minor perf improvement when deleting in DetailPage 2024-09-27 18:41:12 +05:30
ashilkn
3361c1f149 [mob][photos] Stop using async loader in details page. Instead use the list of files in gallery from the GalleryState inherited widget 2024-09-27 18:41:12 +05:30
ashilkn
c7a4cbc365 [mob][photos] Create new inheirted widget to store all files in gallery and throw exception/assert to make sure it's never used incorrectly 2024-09-27 18:41:12 +05:30
ashilkn
de9c294977 [mob][photos] Document use of isSelectionMode in Gallery widget 2024-09-27 18:40:21 +05:30
Neeraj Gupta
57a425e14c [mob] Run discovery forcefully when ml is toggled 2024-09-26 17:13:29 +05:30
ashilkn
2523a32e94 Merge branch 'main' into hierarchical_search 2024-09-26 09:50:26 +05:30
Laurens Priem
7b2206161e Clip with preprocessing inside ONNX on mobile (#3467)
## Description

Switched to new clip ONNX model on mobile, where preprocessing is done
inside ORT. This means it's more performant and more advanced image
processing.

## Tests

Tested in debug mode on my Pixel 8.
2024-09-26 05:44:19 +05:30
laurenspriem
fa19254bbc [mob][photos remove old clip preprocessing code 2024-09-25 23:04:29 +05:30
laurenspriem
70476b2011 [mob][photos] Remove todo 2024-09-25 23:00:52 +05:30
laurenspriem
7dd9d8aef3 [mob][photos] new clip works 2024-09-25 22:58:23 +05:30
ashilkn
38ee4cd1da [mob][photos] Safely add filters to recommended list ensuring that the not any already existing filters in recommended or applied is added 2024-09-25 19:23:34 +05:30
ashilkn
8169bbe1fa [mob][photos] Curate new album filters on each new udpate to applied filters 2024-09-25 19:11:50 +05:30
ashilkn
17cf7fe6a4 [mob][photos] On applying the first filter on hierarchical search, add the initial gallery filter to applied filters
If we are on an album named 'Trip to Coorg' and another album filter is added, a functional  filter chip will get added to applied filters automatically
2024-09-25 15:41:07 +05:30
laurenspriem
53c19bc64e [mob][photos] Temp disable custom plugin 2024-09-25 14:40:40 +05:30
laurenspriem
bd232c151a [mob][photos] Test for iOS 2024-09-25 14:34:25 +05:30
ashilkn
bd6fe03710 [mob][photos] Do not show up the initial gallery filter on hierarchical search's filter recommendations
For example, if we search for an album 'Trip to Coorg' and go in the album, 'Trip to Coorg' shouldn't come up in recommended filters
2024-09-25 13:14:54 +05:30
ashilkn
88891bf24e [mob][photos] Go back to search screen if all applied filters are de-selected 2024-09-25 11:55:07 +05:30
ashilkn
798c8f0782 [mob][photos] Enable use of hierarchical search in album page 2024-09-25 11:54:27 +05:30
Neeraj Gupta
bc7704916a [mob] Bump version 2024-09-25 06:34:44 +05:30
Neeraj Gupta
7ed620d817 [mob] Fix dedupe for live photos with different size 2024-09-25 06:34:19 +05:30
ashilkn
1258558be8 [mob][photos] Improve curation of album filter recommendation 2024-09-24 19:19:33 +05:30
ashilkn
468386ede6 [mob][photos] Get just the album filters logic working on gallery 2024-09-24 18:19:55 +05:30
Neeraj Gupta
c036c8c7ba [mob] Bump version 2024-09-23 14:34:35 +05:30
Neeraj Gupta
6464bf172f refactor 2024-09-23 14:30:40 +05:30
Neeraj Gupta
46e6af660e [mob] Log to match count for magicSearch 2024-09-23 14:29:02 +05:30
Neeraj Gupta
b18d987ba2 [mob] Upgrade discover results more frequently 2024-09-23 14:26:31 +05:30