Commit graph

8632 commits

Author SHA1 Message Date
ashilkn 2d6bff0da6 remove animation on MemoryCoverWidget to stop animation of memories on edges when scrolling memories 2024-01-18 15:44:03 +05:30
ashilkn 1ab8d942cc rearrange widget tree to avoid re initializing elements of child wiget in DraggableScrollbar when it's enabled property changes. This was causing memories to rebuild when draggableScrollbar is enabled when all files are loaded in gallery 2024-01-18 15:17:45 +05:30
ashilkn b9e715b993 refactor 2024-01-18 15:09:28 +05:30
vishnukvmd 9324849767 Remove unhelpful index 2024-01-18 02:16:53 +05:30
vishnukvmd 5b4477e209 Update strings 2024-01-18 02:12:02 +05:30
vishnukvmd 28289605a8 Add index on uploaded file ID 2024-01-18 01:56:24 +05:30
vishnukvmd 6f9600690b Use method via FFI to compute memories 2024-01-18 01:42:54 +05:30
ashilkn b4705d92ae show loading state when memories are being fetched 2024-01-17 14:48:42 +05:30
ashilkn 67c0912fc7 decrease the degree to which a memory cover widget is scaled when scrolled 2024-01-17 11:52:05 +05:30
ashilkn 72af4b9598 change maxWidth in such a way than there will only be 2 or 4 or 6 or 8 or.... memories in header with increase in width of screen 2024-01-17 11:39:36 +05:30
ashilkn 9f73de352b size the memory cover wiget according to the width of screen 2024-01-17 11:15:19 +05:30
ashilkn 138274b0f1 resolve merge conflicts and merge 2024-01-17 10:36:38 +05:30
ashilkn 3c3e55856f animate MemoryCoverWidget when it appears 2024-01-15 18:41:02 +05:30
Vishnu Mohandas 7d5c022edb
Merge branch 'main' into fix_white_screen 2024-01-15 15:52:11 +05:30
vishnukvmd 0ad91da2bd Update translations 2024-01-15 15:19:10 +05:30
vishnukvmd 0b2b5689db Ensure framework is initialized before fetching the state 2024-01-15 15:19:07 +05:30
ashilkn a7e6c34b13 log time taken to fetch memories 2024-01-15 12:40:05 +05:30
ashilkn ea8c648ce4 tweak again 2024-01-15 12:08:13 +05:30
ashilkn 314814074c adjust colors and gradients 2024-01-15 11:57:31 +05:30
ashilkn d62d7d0743 remove 'memories' title on header of home tab 2024-01-15 11:19:49 +05:30
ashilkn 57dc3742ca Revert "extract string"
This reverts commit aa126cdba4.
2024-01-15 11:17:45 +05:30
Crowdin Bot ed73e0cb24 New Crowdin translations by GitHub Action 2024-01-15 00:09:26 +00:00
ashilkn 07fa8cd235 remove divider below memories 2024-01-13 19:46:52 +05:30
ashilkn aa126cdba4 extract string 2024-01-13 19:45:36 +05:30
ashilkn 62ea6cdf2c Merge branch 'main' into memories_redesign 2024-01-13 19:39:33 +05:30
ashilkn 7f37cee27d rename MemoryCoverWidgetNew to MemoryCoverWidget 2024-01-13 19:32:21 +05:30
ashilkn 179b09992b remove old MemoryCoverWidget 2024-01-13 19:30:56 +05:30
ashilkn 69f8cec4a5 store height and width of MemoryCoverWidget as constants 2024-01-13 19:15:21 +05:30
ashilkn 6ee47cc1be add memories title with a heart icon 2024-01-13 18:57:01 +05:30
ashilkn 81493927b3 add border new memory cover widget in dark mode 2024-01-13 16:47:28 +05:30
ashilkn ef206bd3b8 add shadow for new memory cover widget 2024-01-13 16:23:18 +05:30
ashilkn 0a4910372f add hero animation for memory thumbnail 2024-01-13 15:10:35 +05:30
ashilkn 65426cc5b4 remove unwanted code 2024-01-13 15:10:01 +05:30
ashilkn 64da59ada0 highlight new MemoryCoverWidget only if memories in it are not seen completely 2024-01-12 18:05:55 +05:30
ashilkn b6544825d8 added border stroke to new MemoryCoverWidget 2024-01-12 16:51:11 +05:30
ashilkn f77c876071 fix render overflow error 2024-01-12 16:16:36 +05:30
ashilkn 01fa417dac refactor + add green linear gradent on bottom 2024-01-12 16:11:54 +05:30
ashilkn 2417fc0179 add black linear gradient + minor fix to text color 2024-01-12 14:46:00 +05:30
ashilkn cd777f5735 add linear gradient on MemoryCoverWidget 2024-01-12 12:59:56 +05:30
ashilkn 9466c03397 minor changes 2024-01-12 12:06:21 +05:30
ashilkn 590c72c6e0 show unseen memory on opening new MemoryCoverWidget and show title 2024-01-12 11:52:55 +05:30
ashilkn 3a24e99003 route to FullScreenMemory screen on tapping the new MemoryCoverWidget 2024-01-12 11:48:59 +05:30
vishnukvmd d1423ac600 Update strings 2024-01-11 21:43:33 +05:30
Vishnu Mohandas 15905a99f1
Merge branch 'main' into search_improvements 2024-01-11 21:42:52 +05:30
vishnukvmd 9d28270768 Address review comment 2024-01-11 21:42:38 +05:30
vishnukvmd e0d50ba55e Surface framework initialization state on UI 2024-01-11 19:19:58 +05:30
vishnukvmd d79ad9f02d Download models on mobile data only if enabled 2024-01-11 19:06:24 +05:30
vishnukvmd 386cdcf3c0 Fix response param 2024-01-11 18:53:44 +05:30
vishnukvmd b701b1665e Ignore embeddings for files that don't exist 2024-01-11 18:40:03 +05:30
ashilkn 2fc550b542 Refactor 2024-01-11 15:41:03 +05:30
ashilkn 32008842c0 create a separate widget for the new MemoryCoverWidget 2024-01-11 15:12:25 +05:30
vishnukvmd 860b5d74d8 Parallelize model initialization 2024-01-11 13:59:17 +05:30
vishnukvmd 0b1bb7acc5 Add states for ML Framework 2024-01-11 13:55:42 +05:30
ashilkn 7492f89dfc fix: memory cover widget occuping hight contrain passed by parent, wrapping with row widget is a workaround 2024-01-11 13:34:05 +05:30
ashilkn a66af2f183 chage the size of memory cover widget rather than transforming it to avoid incresing gaps in listView when memory cover widgets get smaller 2024-01-11 13:19:02 +05:30
ashilkn 845e58d1ba use custom implementation for memories and remove use of infinite_carousel 2024-01-11 10:56:12 +05:30
ashilkn 463523e09e Pass width constrain to title text in memory to that it breaks to next line 2024-01-11 07:01:01 +05:30
ashilkn 7383dbe0c1 Added widgets for showing image and text on memory that works with the dynamic resizing 2024-01-11 06:56:37 +05:30
ashilkn 9dad483bfc create a working model of memories header in hometab where each memory dynamically changes size wrt scroll offset 2024-01-10 18:09:42 +05:30
Crowdin Bot 9f5ef640f8 New Crowdin translations by GitHub Action 2024-01-09 12:04:25 +00:00
Vishnu Mohandas 27680c8221
Fix typo (#1640)
Fix typo
2024-01-09 16:33:07 +05:30
0nullpointer 8186b38bb6 Avoid multiple sqrt computation for text encoder 2024-01-09 16:22:28 +05:30
0nullpointer ff0eaefd9b Revert "avoid sqrt computation for text encoder"
This reverts commit d40d28cfa2.
2024-01-09 16:19:30 +05:30
0nullpointer d40d28cfa2 avoid sqrt computation for text encoder 2024-01-09 16:18:00 +05:30
Neeraj Gupta e21b862f53 MinorPerf: Avoid repeated sqrt computation 2024-01-09 15:32:43 +05:30
Jaden 10ef318bbb Fix typo 2024-01-08 14:13:32 -05:00
vishnukvmd 6876e0e85e Execute a single query to fetch files for fetched embeddings 2024-01-09 00:07:06 +05:30
vishnukvmd 0645ff89f5 Move city search to a separate isolate 2024-01-08 21:29:21 +05:30
vishnukvmd 63cb04d4c1 Load cities in a separate isolate 2024-01-08 21:10:34 +05:30
vishnukvmd 5ffa05aec5 Hide hidden items from magic search results 2024-01-08 20:53:45 +05:30
Vishnu Mohandas 0fad6423b8
Merge branch 'main' into isar 2024-01-06 20:30:56 +05:30
vishnukvmd f3bd80d6f0 Provide a way for internal users to clear indexes 2024-01-06 20:27:42 +05:30
vishnukvmd 99575825c0 Rely on Isar's index to remove duplicates 2024-01-06 20:22:03 +05:30
vishnukvmd 41ae10b454 Sync when initialized from the UI 2024-01-06 19:31:49 +05:30
vishnukvmd d00ae5742a Prevent duplicate insertions 2024-01-06 19:12:15 +05:30
Vishnu Mohandas ab1b3eced9
remove unused old search related code (#1637) 2024-01-06 18:21:05 +05:30
Vishnu Mohandas cb95b6bfe4
Move from ObjectBox to Isar (#1635) 2024-01-06 17:56:51 +05:30
ashilkn 8b64bd6550 Merge branch 'main' into clean_up 2024-01-06 17:48:57 +05:30
ashilkn 9e4e8ef740 remove unused old search related code 2024-01-06 17:45:15 +05:30
ashilkn 56eb67644d Merge branch 'main' into fix_sharing_from_outside_bug 2024-01-06 12:20:19 +05:30
ashilkn 81c199d3a2 fix: adding a file with path '/storage/emulated/0' shared from outside ente to an album failing 2024-01-06 12:17:21 +05:30
Vishnu Mohandas 338f4e99cf
Merge branch 'main' into isar 2024-01-06 01:17:50 +05:30
vishnukvmd fff3191f6b Fire event in case of deletions 2024-01-06 01:15:49 +05:30
vishnukvmd 827003b965 Do the dew 2024-01-06 01:13:52 +05:30
Vishnu Mohandas 377ee5d36e
Rewrite FullScreenMemory widget to fix bugs (#1634) 2024-01-05 23:06:18 +05:30
vishnukvmd 529ad88a70 Render model loading status 2024-01-05 18:08:23 +05:30
vishnukvmd 4edebb9501 Update machine learning settings page 2024-01-05 16:55:15 +05:30
vishnukvmd add4ad2700 Reduce debounce duration 2024-01-05 16:55:03 +05:30
vishnukvmd 637f3c0f66 Remove reliance on Isar's watcher 2024-01-05 16:51:54 +05:30
ashilkn d694b1f4f9 Merge branch 'main' into fix_memories_widget_3 2024-01-05 16:35:54 +05:30
ashilkn 7643a29152 added documentation 2024-01-05 16:26:38 +05:30
vishnukvmd e50e6dc013 Add log line 2024-01-05 16:18:46 +05:30
vishnukvmd 1d7e609bbe Remove unused variable 2024-01-05 16:05:22 +05:30
ashilkn d896160a5d delete the old FullScreenMemory widget and file and rename new FullScreenMemoryNew widget and file to 'FullScreenMemory' 2024-01-05 16:05:09 +05:30
vishnukvmd 87fd781304 Reassign variable instead of iterating over the list 2024-01-05 16:05:03 +05:30
ashilkn 37de9d97eb remove widgets added for debugging + minor change to animation 2024-01-05 16:00:44 +05:30
vishnukvmd 39affa0852 Add retrials for model downloads 2024-01-05 15:59:58 +05:30
ashilkn 6917d5075c use BouncingScrollPhysics for list of memories in home tab 2024-01-05 15:47:00 +05:30
ashilkn ae015c7693 add hero animation + mark memory as seen when swiping through memories 2024-01-05 15:36:49 +05:30
vishnukvmd f24faa0404 Subscribe to DB updates only when app is in foreground 2024-01-05 15:19:49 +05:30
vishnukvmd bbed1c052a Inject model from upstream 2024-01-05 15:16:27 +05:30
vishnukvmd 09d274778f Fetch only ONNX embeddings 2024-01-05 15:14:50 +05:30
ashilkn e599f2bcec minor change 2024-01-05 15:12:49 +05:30
ashilkn 59add2ed04 add gradient on top of FullScreenMemory for better visibilty of top widgets 2024-01-05 15:06:37 +05:30
ashilkn 45f1fd1bd1 mark inital memory as seen on init 2024-01-05 15:00:01 +05:30
ashilkn c8c421e011 Add tap to go to previous or next story in FullScreenMemory screen 2024-01-05 14:55:06 +05:30
ashilkn 8730bc5451 don't show memory counter if step progress indicator is visible 2024-01-05 14:39:34 +05:30
ashilkn 212423f955 show date and step progress indicator on top of FullScreenMemory screen 2024-01-05 14:36:06 +05:30
ashilkn f05f7a86a7 add bottom gradient 2024-01-05 11:51:45 +05:30
ashilkn a808831906 show 'x years ago' title when opening memories 2024-01-05 11:37:42 +05:30
ashilkn aed0a2f3dc add memory counter on bottom of FullScreenMemory 2024-01-05 11:21:43 +05:30
vishnukvmd 51af506f14 Handle cases where we could not fetch the thumbnail 2024-01-05 11:00:50 +05:30
vishnukvmd 3554dc3827 Remove debug code 2024-01-05 10:59:25 +05:30
ashilkn 76520c569c preload thumbnail and file of next memory 2024-01-05 10:44:20 +05:30
vishnukvmd 4ffa600da6 Enable SSS in the background 2024-01-04 20:52:07 +05:30
vishnukvmd b756f33f18 TODO: Clear deprecated store 2024-01-04 20:50:18 +05:30
vishnukvmd c083a751a9 Merge branch 'await_warnings' into isar 2024-01-04 20:45:33 +05:30
vishnukvmd 22fd204e11 Replace ObjectBox with Isar 2024-01-04 20:25:16 +05:30
ashilkn f143f90ec0 fix: handle range error when all memories are deleted and FullScreenMemory screen is popped 2024-01-04 19:09:06 +05:30
ashilkn 6faa93c90c pop FullScreenMemory screen when last memory is deleted 2024-01-04 19:01:32 +05:30
ashilkn 02263a4d88 Add bottom icons to memories 2024-01-04 16:00:51 +05:30
vishnukvmd 6f9d53fc4a Update translation 2024-01-04 15:57:17 +05:30
vishnukvmd 8e238cbf40 Fix string 2024-01-04 15:52:41 +05:30
vishnukvmd 3f9feb5b50 Merge branch 'image_encoder' into await_warnings 2024-01-04 14:59:28 +05:30
ashilkn 060b516058 used an InheritedWidget to hold list of memories and update the InheritedWidget when an item is deleted, which rebuilds widgets that depend on the inheritedWidget 2024-01-04 13:14:56 +05:30
vishnukvmd 83200fbb24 Initialize ORT only once 2024-01-04 11:39:06 +05:30
0nullpointer 5413646a28 fix image encoder 2024-01-04 11:19:16 +05:30
ashilkn 4063f75d4a created a new minimal FullScreenMemoryWidget with only delete option 2024-01-04 10:11:24 +05:30
0nullpointer b1b2fb311d Add mobile image encoder 2024-01-04 00:28:14 +05:30
vishnukvmd e24617cb96 Merge branch 'main' into await_warnings 2023-12-27 22:05:28 +05:30
NullPointer 883363fcc0
Fix reshape order for image tensor 2023-12-27 20:02:04 +05:30
ashilkn ce276bbc07 check if Semantic search has been initialized before calling ObjectBox.instance.clearTable() to avoid LateInitializationError of 'store' 2023-12-27 08:29:39 +05:30
vishnukvmd ea35b94d79 Extract constant 2023-12-27 01:18:39 +05:30
vishnukvmd 42bbe05d61 Refactor SearchWidget 2023-12-27 00:00:16 +05:30
vishnukvmd 4b06f58059 Flip the flag 2023-12-26 23:58:06 +05:30
vishnukvmd fe2bc0bc97 Render city results for internal users 2023-12-26 23:52:47 +05:30
vishnukvmd 5d25785edd Load and parse cities 2023-12-26 23:22:09 +05:30
vishnukvmd 1f8ea9c2f4 Create a service to load and cache remote assets 2023-12-26 23:21:56 +05:30
Vishnu Mohandas a123cb031b
Merge branch 'main' into await_warnings 2023-12-26 22:34:04 +05:30
vishnukvmd 71b62a9b09 Resolve review comment 2023-12-26 22:33:51 +05:30
ashilkn e96085b110 fix popping of search results when search results count is ready 2023-12-26 21:55:38 +05:30
ashilkn c6921b64eb Merge branch 'main' into searching_improvements 2023-12-26 21:43:15 +05:30
ashilkn c0742295ca indentation and comments 2023-12-26 21:37:16 +05:30
ashilkn 98ca44743a show results count on top of search results 2023-12-26 21:28:42 +05:30
ashilkn c18577e28d remove print statements 2023-12-26 20:43:03 +05:30
ashilkn b89cbd13f4 add final 2023-12-26 18:43:14 +05:30
ashilkn 2aa712dc94 when searching, show loading state in search bar when debouncing and querying db 2023-12-26 18:24:38 +05:30
ashilkn 6f2b6fc1b0 fix: keep the latest query in search tab when shifting tabs and coming back to search tab in between searching 2023-12-26 15:04:08 +05:30
ashilkn df5d8b35b2 pref: only notify listeners if index is different from previous one 2023-12-26 14:49:57 +05:30
ashilkn 608af962b4 fix: 'NoResultsWidget' coming up for a fraction of a second on the first query 2023-12-26 14:39:21 +05:30
ashilkn 682459e800 clean up unwanted code and comments 2023-12-26 12:35:48 +05:30
ashilkn 6a25ada94b fix: if results are from the very last event, NoResultsWidget was being shown 2023-12-26 11:57:57 +05:30
ashilkn 397f6756fe fix: show NoResultsWidget if the stream if complete and there aren't any search results 2023-12-26 11:26:07 +05:30
ashilkn 3fcc1665af minor fix 2023-12-23 23:18:19 +05:30
ashilkn 860fe74902 use ChangeNotifier to notify change in index of IndexedStack to be shown in search tab 2023-12-23 23:14:31 +05:30
ashilkn 234c1ad15e Simplify state management on search suggestion screen to get rid of an edge case bug + add comments + use better variable names 2023-12-23 22:18:40 +05:30
ashilkn 7c94c579ea temp step 1 2023-12-23 21:26:29 +05:30
ashilkn 30262e202b added animation to search results when they appear 2023-12-23 19:48:26 +05:30
ashilkn 2192dc6151 added comments 2023-12-23 19:41:20 +05:30
ashilkn d277d8ca23 Use custom lossless widget to rebuild with stream data instead of relying on lossy StreamBuilder 2023-12-23 19:38:21 +05:30
ashilkn e2e240459f add logs for debugging 2023-12-23 18:48:28 +05:30
vishnukvmd e490acadf8 Update translations 2023-12-23 12:20:01 +05:30
NullPointer b9116d172f
Fix typo in image encoder 2023-12-22 23:11:30 +05:30
ashilkn 7f3dd9b691 fix: results from pervious stream coming up on UI 2023-12-22 18:45:13 +05:30
ashilkn 3de3b77ae0 use better variable name 2023-12-22 18:44:24 +05:30
ashilkn e5e33b0f7e show search results when querying from stream 2023-12-21 18:25:16 +05:30
ashilkn b7486f3c3b Create new search results stream in every query change wih debouncer. Made the stream available in SearchSuggestionsWidget 2023-12-21 17:41:55 +05:30
Vishnu Mohandas 2daebda377
Merge branch 'main' into onnx 2023-12-21 16:17:56 +05:30
vishnukvmd c03cf7cf47 Initialize ORT in a separate isolate 2023-12-21 15:31:49 +05:30
ashilkn 15480b3ecb Created a method that returns search results as a stream of results, instead of awaiting for all results to be ready and sending it over 2023-12-21 14:31:09 +05:30
vishnukvmd 68d504850e Fix all await warnings 2023-12-21 13:04:06 +05:30
ashilkn 775d1efe51 add animation to all sections screen when it first appears after loading state 2023-12-20 20:57:41 +05:30
ashilkn bbec8ed636 minor change to show loading state when the search tab is loading on app start 2023-12-20 20:39:33 +05:30
ashilkn fcee80f75f use adaptive icons in TitleBarWidget 2023-12-20 19:45:58 +05:30
ashilkn 23152b6ec0 change paddings 2023-12-20 19:20:05 +05:30
ashilkn 8f0ab0d597 fire ClearAndUnfocusSearchBar instead of findingAncestorStateObject with textController and focusNode to clear and unfocus search bar 2023-12-20 17:43:29 +05:30
ashilkn ae32e4902f added back button for no resuts screen when searching 2023-12-20 17:39:49 +05:30
ashilkn 80657b40f7 add back button on search suggestions screen 2023-12-20 17:35:06 +05:30
Vishnu Mohandas 3e089b3b5b
Remove normalization (#1614) 2023-12-20 16:20:37 +05:30
vishnukvmd cc3034f730 Update translations 2023-12-20 15:19:01 +05:30
vishnukvmd 52943f38ab Remove normalizations 2023-12-20 15:18:58 +05:30
Crowdin Bot f3edec5e74 New Crowdin translations by GitHub Action 2023-12-19 12:18:32 +00:00
Vishnu Mohandas 1501c8c826
Merge branch 'main' into onnx 2023-12-19 13:04:15 +05:30
vishnukvmd 79956502ae Init ObjectBox only in the foreground 2023-12-19 13:03:45 +05:30
Vishnu Mohandas 6f8063fdec
Magic search w/ text encoder (#1605) 2023-12-19 11:27:11 +05:30
Crowdin Bot 98c9aab90e New Crowdin translations by GitHub Action 2023-12-19 00:44:55 +00:00
vishnukvmd 94a5128660 Initialize SSS only when app is in foreground 2023-12-19 00:36:49 +05:30
vishnukvmd 6c242aa1d2 Implement the API to release resources held by ORT 2023-12-19 00:35:45 +05:30
vishnukvmd 836fb97598 Use the file directly to create an OrtSession 2023-12-19 00:35:16 +05:30
vishnukvmd 418fd2e1bb Display indexing stats to all 2023-12-18 23:01:43 +05:30
vishnukvmd 48f3daec57 Update translations 2023-12-18 22:29:19 +05:30
vishnukvmd b6c8a79a78 Merge branch 'main' into onnx 2023-12-18 22:27:59 +05:30
vishnukvmd b4019f3c50 Refactor commented code 2023-12-18 22:21:01 +05:30
vishnukvmd a5e5c60111 Initialize SSS only if it has been opted-in for 2023-12-18 22:17:19 +05:30
vishnukvmd b27cc6dafd Comment out temp widget 2023-12-18 22:05:09 +05:30
vishnukvmd 4357795d50 Remove unnecessary check 2023-12-18 22:05:03 +05:30
Neeraj Gupta 37777b6988
Merge branch 'main' into add_location_data 2023-12-18 21:42:45 +05:30
ashilkn c8c30d0cb0 resolve merge conflicts and merge main 2023-12-18 18:35:32 +05:30
Crowdin Bot 8352286383 New Crowdin translations by GitHub Action 2023-12-18 12:19:12 +00:00
ashilkn 209fac0645 improve logging when viewing items 2023-12-18 13:43:40 +05:30