75 Commits

Author SHA1 Message Date
ashilkn
e61d212ad0 [mob][photos] Handle errors/exceptions in getThumbnailFileOfPerson 2025-02-25 17:13:09 +05:30
ashilkn
1746db0d44 [mob][photos] Gracefully handle no avatar of recent file for face in UI where every getThumbnailFileOfPerson is used 2025-02-20 17:38:37 +05:30
ashilkn
af676e6107 [mob][photos] Refactor 2025-02-20 17:20:41 +05:30
ashilkn
982e0068ee [mob][photos] Create constant variables for keys 2025-02-03 16:10:42 +05:30
ashilkn
6ee6e7f217 [mob][photos] Resolve merge conflicts and merge main 2025-02-01 13:14:49 +05:30
ashilkn
cb4fcfdd25 [mob][photos] Reset _emailToPartialPersonDataMapCache after first entities sync (right after logging in) 2025-02-01 12:39:16 +05:30
ashilkn
9671f4e3fc [mob][photos] Fix user avatar not updating after linking contact to face 2025-01-31 20:09:41 +05:30
ashilkn
888a604633 [mob][photos] Update thumbnail of contacts in contacts section when linking or un-linking person from the contact 2025-01-31 10:39:38 +05:30
ashilkn
00c43b10ea [mob][photos] Use contact's face as thumbnail if linked to a person in contacts section and search results that come up when searching 2025-01-30 19:33:38 +05:30
ashilkn
9e4c3d826a [mob][photos] Add remoteID of person linked to the email in email-to-person-data cache 2025-01-30 17:09:08 +05:30
ashilkn
da582a2436 [mob][photos] Await on _resetEmailToNameCache so that PeopleChangedEvent is fired only after cache is updated. Else there is chance that UI is rebuild on PeopleChangedEvent with stale state of EmailToNameCahce 2025-01-30 16:50:03 +05:30
Neeraj Gupta
ac08d5b37d [mob] Fix lint 2025-01-29 17:13:12 +05:30
Neeraj Gupta
29f4bbb0de Merge remote-tracking branch 'origin/main' into db_interface 2025-01-29 15:08:19 +05:30
Neeraj Gupta
c64af87e33 [mob] Refactor 2025-01-29 13:52:12 +05:30
Ashil
e01f92adcc
[mob][photos] Use face when available for user avatar (#4879)
## Description

If the user (contact specifically) is linked to a person, use the
person's face as user's avatar in the `UserAvatarWidget`

## Tests

Tested everything myself.
2025-01-28 12:07:52 +05:30
ashilkn
e06dbb0ef1 [mob][photos] Remove logs used to assess time taken by ops
Made sure that repeated calls to getPersons() by UserAvatarWidget won't cause any performance issues
2025-01-28 11:53:52 +05:30
ashilkn
b1b70a0d08 [mob][photos] Fix Faces on avatar not loading on app start
This was because the emailToName cache was not set yet when accessed by UserAvatarWidget. Awaiting on PersonService.init to finish in main() fixed the problem. It only increases time on splash screen by 4ms on the medium sized(uploaded and faces count wise) account I tested on
2025-01-28 11:35:53 +05:30
laurenspriem
07830e4dac [mob][photos] Remove null checks 2025-01-27 14:29:28 +05:30
ashilkn
f11d4d540b [mob][photos] Refactor 2025-01-23 19:54:32 +05:30
ashilkn
0b5e6f9ced [mob][photos] Reset email to name cache completely on any change to name or email to avoid stale cache 2025-01-22 16:53:10 +05:30
ashilkn
9ff57b765c [mob][photos] Deprecate in User model and create extension of User which has displayName() method that gets user name from emailToNameCache 2025-01-22 16:02:43 +05:30
ashilkn
03be554025 [mob][photos] Create emailToName cache for contacts linked to people 2025-01-22 15:51:45 +05:30
ashilkn
394798d232 [mob][photos] Make Link button in link email page functional. Write method to call for unlinking email from person 2025-01-16 18:50:40 +05:30
laurenspriem
b97a994f08 [mob][photos] Remove cluster bug 2025-01-14 11:58:31 +05:30
laurenspriem
7aa476b19d [mob][photos] Log missing persons stronger 2025-01-08 14:04:14 +01:00
Neeraj Gupta
645023a76d [mob] Pull shared indexes 2025-01-08 12:23:24 +05:30
laurenspriem
4dd22a646d [mob][photos] Quick fix undo 2024-11-26 21:35:54 +05:30
Neeraj Gupta
09953bbc34 Merge remote-tracking branch 'origin/main' into save_contact 2024-11-21 11:06:24 +05:30
Neeraj Gupta
5f60db24ea Support for editing person birthdate and cover 2024-11-21 11:03:29 +05:30
Neeraj Gupta
5590f72b12 [mob]Support for editing name/birthday for person 2024-11-20 16:41:31 +05:30
laurenspriem
55044b1818 [mob][photos] Fix ConcurrentModificationError 2024-11-19 17:00:09 +05:30
laurenspriem
3d6106c1c1 [mob][photos] Add empty check 2024-11-13 16:06:50 +05:30
laurenspriem
1ed03c5942 [mob][photos] Safe removed clusters in rejected faces 2024-11-13 15:45:59 +05:30
laurenspriem
822aa7fcd4 [mob][photos] Make sure user can add back rejected faces 2024-11-13 14:38:51 +05:30
laurenspriem
4c222f2cd7 [mob][photos] Get rid of remotely rejected faces from local person 2024-11-12 21:36:49 +05:30
laurenspriem
b9c63426fc [mob][photos] Assign not person feedback for completely rejected remote cluster 2024-11-12 14:54:25 +05:30
laurenspriem
015790874e [mob][photos] Pull rejected faces for person from remote 2024-11-12 09:26:04 +05:30
laurenspriem
908a55bb20 [mob][photos] Push not person feedback 2024-11-11 15:42:24 +05:30
Neeraj Gupta
619476892a [mob] Update local feedback on remote data change 2024-11-09 08:41:03 +05:30
Neeraj Gupta
bba975e6b6 [mob] Minor refactor 2024-10-19 15:47:45 +05:30
Neeraj Gupta
2b147c1a87 [mob] Minor improvements for ml sync 2024-10-15 16:34:38 +05:30
Neeraj Gupta
00e75c0fb2 [mob] Lint 2024-09-29 09:54:20 +05:30
Neeraj Gupta
a5d01a9ffe [mob] Fix avatar faceID 2024-09-29 09:52:41 +05:30
Neeraj Gupta
6566973f3e [mob] Gracefully handle dup mapping 2024-09-03 21:23:28 +05:30
Neeraj Gupta
2cf8bd14f9 rename 2024-08-16 17:12:00 +05:30
Neeraj Gupta
1ca1967ec2 Rename person_v2 as cgroup 2024-08-16 12:13:56 +05:30
Neeraj Gupta
810cf6f885 [mob] Use single db for ml data 2024-08-14 14:21:52 +05:30
Neeraj Gupta
9f96ef8d83 [mob] Switch to person_v2 where data is gzipped 2024-08-14 12:27:36 +05:30
Neeraj Gupta
df46eeab10 refactor 2024-08-13 23:12:29 +05:30
Neeraj Gupta
ffd9e2e06c Switch to nano_id for clusterIDs 2024-08-13 18:25:13 +05:30