72 Commits

Author SHA1 Message Date
ashilkn
1e50f52801 [mob][photos] Throw exception and instruction on what to do instead if GenericSearchResult.previewThumbnail() is used when ResultType is 'shared'(which is the case for contacts search) 2025-02-05 17:37:21 +05:30
ashilkn
46c941fb8c [mob][photos] Use first letter avatar for contact in contacts section and all contacts screen if no person is linked to contact 2025-02-05 17:28:13 +05:30
laurenspriem
ed8a17ffd8 [mob][photos] Re-enable internal memories for Android 2025-02-04 14:16:35 +05:30
ashilkn
f69dd18364 [mob][photos] Show onThisDayOrWeeksResults in moments section only on iOS 2025-02-03 19:32:49 +05:30
ashilkn
6980f56cc3 [mob][photos] Show contacts with no files shared too in contacts and all contacts section 2025-02-01 22:54:57 +05:30
ashilkn
d8b995c3d6 Revert "[mob][photos] Refactor"
This reverts commit cf977a7fa19234a2a9763d08bac19614722ffe0b.
2025-01-30 16:10:50 +05:30
ashilkn
b3df62e2bc [mob][photos] Show full email in contacts filter chip 2025-01-24 16:37:56 +05:30
ashilkn
cf977a7fa1 [mob][photos] Refactor
The contacts section was moved to the shared tab from the search tab in a hacky way before this change. Have now refactored code around it for better readability and consistancy
2025-01-24 16:18:08 +05:30
ashilkn
48dc09ad38 [mob][photos] Use User.displayName instead of User.name since User.name is now deprecated 2025-01-22 16:14:48 +05:30
Neeraj Gupta
d968310f73 [mob] Update moments section for internal users 2025-01-14 17:38:10 +05:30
ashilkn
ceeac4222e [mob][photos] Remove 'Descriptions' section from search tab 2024-12-05 15:12:03 +05:30
Neeraj Gupta
32f1a8b3a6 [mob] Fix cover refresh issue 2024-11-28 00:48:52 +05:30
laurenspriem
93986461dd [mob][photos] Copy changes 2024-11-15 16:06:11 +05:30
laurenspriem
4ce2d0a1e2 [mob][photos] ml section empty copy 2024-11-15 16:02:45 +05:30
ashilkn
84d7a37789 [mob][photos] Extract string and use workaround for avoiding having context as a long lived object 2024-11-06 18:57:30 +05:30
ashilkn
6fa7e033d9 [mob][photos] Chore 2024-11-06 18:42:01 +05:30
ashilkn
64b113bd21 [mob][photos] Refactor 2024-11-06 15:21:45 +05:30
ashilkn
862e84e6b2 [mob][photos] Make 'only them' filter working, showing filtered files in gallery 2024-10-30 14:33:08 +05:30
ashilkn
4717e48598 [mob][photos] Show thumbnail for 'only them' filter with different layouts depending on the number of faces in filter 2024-10-29 18:52:52 +05:30
ashilkn
f753779860 [mob][photos] Create only them filter and add it to recommendations on a condition 2024-10-29 17:26:18 +05:30
ashilkn
2c4c25feb3 [mob][photos] Create FilterTypeNames enum and enforce that a new entry is added here any time a new class extends HierarchicalSearchFilter 2024-10-26 18:40:57 +05:30
ashilkn
8e7a560ad4 [mob][photos] Pass FileTypeFilter instead of TopLevelGenericFilter for file type search results 2024-10-22 21:28:50 +05:30
ashilkn
1e868ac624 [mob][photos] Add 'isApplied' state to filters, change UI for applied filters 2024-10-22 17:17:00 +05:30
ashilkn
f66e49313d [mob][photos] Show magic filter recommendations for a gallery using magic cache used for the discovery section 2024-10-19 19:26:43 +05:30
ashilkn
2f54acab58 [mob][photos] Make face filtering work (yet to be optimized for performance) 2024-10-17 19:14:24 +05:30
ashilkn
0ef03389ab [mob][photos] Pass FaceFilter.name as null if face name is not available (when personId is null) instead of passing clusterID 2024-10-17 09:16:36 +05:30
ashilkn
a7420be774 [mob][photos] Remove no more necessary abstract method 'resultType' in HierarchicalSearchFilter 2024-10-17 09:03:57 +05:30
ashilkn
b9b9dac719 [mob][photos] Remove unused extension on ResultType 2024-10-17 08:45:36 +05:30
ashilkn
6facd67452 [mob][photos] Add more documentation about TopLevelGenericFilter 2024-10-17 08:28:50 +05:30
ashilkn
863ba6b955 [mob][photos] Clean up isSameFilter implementations 2024-10-17 08:25:12 +05:30
ashilkn
ea983dd76b [mob][photos] Remove toHierarchicalSearchFilter which is no longer used from HierarchicalSearchFilter 2024-10-14 15:45:05 +05:30
ashilkn
171e96976a [mob][photos] Attach a SearchResults's corresponding HierarchicalSearchFilter to it when ever a instance is created 2024-10-11 20:57:45 +05:30
ashilkn
f5cadb3b7a [mob][photos] Curate face filters and show in recommendations 2024-10-10 19:50:38 +05:30
ashilkn
bc90b6d980 [mob][photos] FaceFilter should accept either personId or clusterId 2024-10-10 19:29:49 +05:30
ashilkn
66a13392a9 [mob][photos] Make implementation of abstract fn isSameFilter() more accurate when the fn is used to compare two same sub-HierarchicalSearchFilter types 2024-10-10 17:36:21 +05:30
ashilkn
87ff4076b0 [mob][photos] Create FaceFilter class 2024-10-10 10:09:01 +05:30
ashilkn
2611cdc480 [mob][photos] Only show what comes before '@' in the name of contacts filter 2024-10-07 18:37:22 +05:30
ashilkn
b68fdf3d15 [mob][photos] Fix 'cannot modify an unmodifiable set' bug 2024-10-07 18:33:35 +05:30
ashilkn
d91a710f18 [mob][photos] Add ResultType used in search a member of HierarchicalSerachFilter and make use of it in isSameFilter() for isSameFilter() to work when comparing other filters and TopLevelGenericFilters 2024-10-07 18:11:50 +05:30
ashilkn
f1535f901f [mob][photos] Pass better string for FileTypeFilter. Also, do it in such a way that name() of HierarchicalSearchFilter doesn't need a BuildContext parameter 2024-10-07 17:04:16 +05:30
ashilkn
5f2cc6f6c3 [mob][photos] Add initialFilter in search results page depending on the type of search result passed 2024-10-07 16:26:05 +05:30
ashilkn
aa9fbd281e [mob][photos] Create a top level generic filter to be used for search ResultTypes(s) for which we don't plan to keep a subtype of HierarchicalSearchFilter 2024-10-05 22:18:18 +05:30
ashilkn
fac18333ce [mob][photos] Improve performance when adding/removing filters during hierarchical search by using cached results of applied filters instead of iterating through all filters and files 2024-10-05 19:45:55 +05:30
ashilkn
bbc894cfda [mob][photos] Add contacts filter in hierarchical search 2024-10-05 16:46:12 +05:30
ashilkn
d7eb0e9dc3 [mob][photos] Create ContactsFilter class 2024-10-05 16:14:55 +05:30
ashilkn
05b14ac32e [mob][photos] Return false if file doesn't have location data on checking if a file matches a location filter 2024-10-04 15:38:57 +05:30
ashilkn
3427f1778e [mob][photos] Create LocationFilter class 2024-10-04 15:14:23 +05:30
ashilkn
38e9496b8c [mob][photos] Add comment 2024-10-03 07:09:37 +05:30
ashilkn
a29fd51855 [mob][photos] Create FileTypeFilter class for photos, videos and live photos filters 2024-10-02 11:08:51 +05:30
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