Commit graph

3743 commits

Author SHA1 Message Date
vishnukvmd 9874281787 Prompt for biometric auth only in cases where user-self-delete will be executed 2022-08-15 17:35:23 +05:30
ashilkn eeb477598b changes to holidays search service and type of object returned by it 2022-08-15 17:32:56 +05:30
vishnukvmd e1c9fa1883 Replace Container with a SizedBox 2022-08-15 17:05:51 +05:30
vishnukvmd 7ec6a908e8 Caps on pls 2022-08-14 23:11:08 +05:30
vishnukvmd c1b07a7dae Update family-plan dialog title 2022-08-14 23:10:26 +05:30
vishnukvmd 7f0dae0b8a Add padding for draggable thumb to prevent collision with the search icon 2022-08-13 21:04:01 +05:30
vishnukvmd cd04e3060e Add a swipeable route 2022-08-13 20:20:34 +05:30
vishnukvmd ce2e5361e1 Show empty state only for non-empty queries 2022-08-13 19:19:45 +05:30
vishnukvmd a705a9b76a Remove unused param 2022-08-13 19:16:47 +05:30
vishnukvmd 534c004ffd Add an empty state when no results were found 2022-08-13 19:07:17 +05:30
vishnukvmd 8df28169d6 Limit the height of the search suggestions 2022-08-13 18:55:45 +05:30
vishnukvmd 12d61d16e8 Fix width for location and album search results 2022-08-13 18:43:31 +05:30
vishnukvmd a124211f27 Fix ordering of search results within a year 2022-08-13 18:40:01 +05:30
vishnukvmd a71a28288f Disable auto-suggestion on the search input field 2022-08-13 18:38:06 +05:30
vishnukvmd 6ec87610c9 Fix padding 2022-08-13 18:10:18 +05:30
vishnukvmd 215ee7ede6 Remove file search 2022-08-13 18:10:13 +05:30
ashilkn e3d07556e7 Made serive to find matching holiday queries and stored it into the results of suggestions 2022-08-12 16:38:26 +05:30
ashilkn f9f87f0435 made static map of holidays + made a class to store holiday data as it's object 2022-08-12 15:13:15 +05:30
ashilkn 13748a11cc Merge branch 'master' into code-refactoring 2022-08-12 12:45:05 +05:30
ashilkn 1eab6d960f Set a default footer for gallery 2022-08-12 12:43:48 +05:30
ashilkn a4b3ba103c removed unwanted line of code 2022-08-12 12:15:51 +05:30
ashilkn 3f2e70a44a minor changes 2022-08-12 12:07:19 +05:30
ashilkn b97b3367bf changed UI of year search to the new UI 2022-08-12 11:43:33 +05:30
ashilkn 7822ed7f68 mixed merge conflicts 2022-08-12 11:30:41 +05:30
vishnukvmd 9e2c635461 Fix padding 2022-08-11 20:20:56 +05:30
vishnukvmd c3b0e7d141 Fix text color for light mode 2022-08-11 20:20:53 +05:30
vishnukvmd acc9386284 Add chevron to each search result 2022-08-11 20:15:42 +05:30
vishnukvmd 1e047d6e4b Fix logger name 2022-08-11 20:08:43 +05:30
ashilkn 286c3e1045 Files from an year collection page + minor changes 2022-08-11 20:00:13 +05:30
vishnukvmd 78aee4e8a0 Add border radius 2022-08-11 19:53:50 +05:30
vishnukvmd ff35f07094 Extract search result thumbnail to a separate widget 2022-08-11 19:45:54 +05:30
vishnukvmd 9857412428 Add border radius to all thumbnails 2022-08-11 19:18:08 +05:30
ashilkn c134bffc66 Merge branch 'master' into search-by-year 2022-08-11 19:16:24 +05:30
vishnukvmd 9c389aba31 Style changes 2022-08-11 19:15:45 +05:30
ashilkn 753bba3eed made YearSearchWidget() for search result suggestion 2022-08-11 19:15:35 +05:30
ashilkn 50c39dc768 made search service for search by year and stored it to the results variable which is passed on to the SearchSuggestionsWidget() 2022-08-11 18:52:30 +05:30
vishnukvmd 40783396cf Prioritize location results 2022-08-11 18:28:52 +05:30
vishnukvmd 1b308a8704 Prevent overscroll on the search suggestions 2022-08-11 18:26:07 +05:30
vishnukvmd 300508305c Copy change 2022-08-11 18:23:16 +05:30
vishnukvmd ee2fa83019 Reduce transition animation duration 2022-08-11 18:21:03 +05:30
Ashil 110a5831ab
Merge pull request #420 from ente-io/refactor_collections_gallery
Refactor collections gallery
2022-08-11 18:05:43 +05:30
vishnukvmd dabe266455 Update variable name 2022-08-11 18:03:30 +05:30
vishnukvmd 08841b22c3 Rename variable 2022-08-11 18:00:15 +05:30
vishnukvmd ae8bfeea37 Move widgets out of the collection_gallery_widget.dart 2022-08-11 17:58:06 +05:30
vishnukvmd b092188d61 Extract trash button to a separate widget 2022-08-11 17:39:12 +05:30
vishnukvmd f7c66d9124 Extract hidden collection button to a separate widget 2022-08-11 17:38:00 +05:30
vishnukvmd f25045b92a Fetch 10 results for location searches 2022-08-11 17:18:09 +05:30
vishnukvmd 56339cea5d [Unrelated] Ensure that the widget is mounted before using BuildContext 2022-08-11 14:16:24 +05:30
vishnukvmd 811e67b780 Remove unnecessary Row and Flexible widget 2022-08-11 14:15:56 +05:30
vishnukvmd 70e1d9442a Fix hero animation for location search results 2022-08-11 13:40:29 +05:30
vishnukvmd 91e2226eaa Gracefully handle all errors while querying by location 2022-08-11 13:34:58 +05:30
vishnukvmd e254e6e64e Sort location search results by the latest file first 2022-08-11 13:14:42 +05:30
vishnukvmd cf26347d83 Remove unnecessary setState 2022-08-11 13:12:40 +05:30
vishnukvmd f325d6d602 Create a unique tag for location search 2022-08-11 13:12:29 +05:30
vishnukvmd e453bd801f Remove unnecessary log line 2022-08-11 13:12:12 +05:30
vishnukvmd b7f546644c Remove separate cache for files 2022-08-11 13:12:06 +05:30
ashilkn 9c24051b28 used more consistant names for methods 2022-08-11 11:50:39 +05:30
ashilkn 865ad15827 code refactoring 2022-08-11 11:10:29 +05:30
ashilkn ebf389e598 code refactoring 2022-08-11 10:45:42 +05:30
ashilkn 4cd054a164 Merge branch 'master' into location-search 2022-08-10 19:24:47 +05:30
vishnukvmd b84ca391a7 Update endpoint 2022-08-10 19:21:57 +05:30
vishnukvmd 0119f8a257 Update variable name 2022-08-10 18:58:33 +05:30
vishnukvmd eddaa8fe5d Directly hit the endpoint to download files only on non-production environments 2022-08-10 18:57:32 +05:30
ashilkn e33384be8f logic changes and code refactoring on search_service.dart 2022-08-10 18:57:04 +05:30
ashilkn 9109ee46cb minor changes 2022-08-10 15:39:56 +05:30
ashilkn e30f72f6da minor change 2022-08-10 12:04:57 +05:30
ashilkn 74d66f9a83 misc. changes 2022-08-10 11:58:16 +05:30
ashilkn d773ecc831 misc. changes 2022-08-10 10:18:40 +05:30
ashilkn a0a4e3d1f3 moved getFilteredCollectionsWithThumbnail to search_service.dart 2022-08-09 20:39:18 +05:30
ashilkn 260cbb22a5 code refactor + used new object to find matching files for location 2022-08-09 20:10:50 +05:30
ashilkn 55b27a9015 made new classes to store the locaiton api response as objects of them 2022-08-09 17:53:43 +05:30
ashilkn 52ee30eee9 moved getLocationsAndMatchedFiles to search_service.dart 2022-08-08 10:45:06 +05:30
ashilkn 9973a9817c minor changes 2022-08-08 09:46:06 +05:30
ashilkn 908d66359c misc. changes 2022-08-06 23:41:23 +05:30
ashilkn f970869c57 misc. changes 2022-08-06 23:26:36 +05:30
ashilkn a54c212876 added hero animation from location suggestion to location collection 2022-08-06 20:56:07 +05:30
ashilkn 993e188856 minor UI fix 2022-08-06 19:19:02 +05:30
ashilkn dd9cb3aac9 added solution for an edge case for search 2022-08-06 19:14:52 +05:30
ashilkn 18fb6917ae added delay for caching files after init + cached files will be deleted on logging out 2022-08-06 18:05:29 +05:30
ashilkn 256bbffe5c used better variable names 2022-08-06 14:52:54 +05:30
ashilkn 147d68ffc5 added shadow over cliprrect with border radius for search results 2022-08-06 14:12:28 +05:30
ashilkn bfa320c9ed minor changes 2022-08-06 13:45:42 +05:30
ashilkn c0d2517653 search results UI 2022-08-05 22:26:06 +05:30
Neeraj Gupta b15fcc7c70
Support for removing entries from IgnoreFiles when tries to add unuploaded files to collection 2022-08-05 21:23:28 +05:30
Neeraj Gupta 65f929fbdd
rename method 2022-08-05 17:43:51 +05:30
Neeraj Gupta b04d56f2e6
fix query 2022-08-05 17:39:01 +05:30
Neeraj Gupta 7c529b579e
fix query 2022-08-05 17:38:35 +05:30
Neeraj Gupta 7055b618d1
Merge branch 'reupload_hash_check' into rewrite_device_sync 2022-08-05 17:24:23 +05:30
Neeraj Gupta 9ad4ac2068
backfill existing rows with missingLocation reason 2022-08-05 17:05:32 +05:30
ashilkn cc89027ac4 minor UI fixes 2022-08-05 16:51:15 +05:30
Neeraj Gupta 4d0059df29
Use fileMigrationDB for verifying if file needs update 2022-08-05 16:39:56 +05:30
ashilkn e39b48440f made SearchWidget a transparent screen 2022-08-05 16:38:25 +05:30
Neeraj Gupta dfa761ae42
minor refactor 2022-08-05 15:35:31 +05:30
Neeraj Gupta 1f7c4c3b9f
Use fileHash to avoid re-upload of already uploaded files 2022-08-05 15:20:03 +05:30
ashilkn 8cc6efb0dd minor UI fixes 2022-08-05 13:13:56 +05:30
ashilkn 209cb2985a Removed the stack and made a column for the ente branding and search icon 2022-08-05 13:06:24 +05:30
ashilkn 5ee05d8d59 SearhWidget (the search screen) is now a screen on the navigator stack 2022-08-05 12:51:39 +05:30
ashilkn e61dca0a70 made SearchWidget to a stateful widget from a function 2022-08-05 11:42:16 +05:30
ashilkn 0d4c036896 added code to store file search results data and colleciton search results data object by object to the suggestions/results list 2022-08-05 10:22:47 +05:30
ashilkn 172cda39a2 vishnu' restructure with errors 2022-08-04 21:46:16 +05:30
ashilkn c3c8050663 made an object to store location and matching files and used it wherever needed 2022-08-04 13:08:31 +05:30
ashilkn f6d02d575a moved files caching to search_service.dart 2022-08-04 12:16:39 +05:30
ashilkn dc98b2ea51 converted MapEntry type data being passed around to Map type 2022-08-04 11:58:12 +05:30
ashilkn 5fdca7c8da deduped files in location search results 2022-08-04 11:29:15 +05:30
ashilkn 2428ca16a3 set limit of collection suggestions to not greater than 20 2022-08-04 11:22:03 +05:30
ashilkn bb13623704 added limits to suggestions of collection and file name search 2022-08-04 10:21:23 +05:30
ashilkn 35ba604607 restructured code of search_results_suggestions.dart to how it was before so that suggestions will be of type List<Widget> and not List<dynamic> 2022-08-03 19:42:37 +05:30
ashilkn 6fcb96fee6 fetching the location search files now from cached memory + can see result page with rendered files now which has duplicates in it 2022-08-03 18:58:18 +05:30
ashilkn 40bee92e64 modified code to work with the new object returned by getLocationsToMatchedFiles 2022-08-03 16:39:11 +05:30
ashilkn 96c68e6d99 simplified the the return of getLocationSearchData()(renamed it to getLocationsToMatchedFiles) from a list to a smaller map 2022-08-03 15:53:41 +05:30
ashilkn 9f97e26a73 added on tap to location suggestion widget which is paritally working 2022-08-03 15:06:38 +05:30
ashilkn 7f9c9f0ad5 added file count(memories) and thumbnail for location search suggestion 2022-08-02 18:42:22 +05:30
ashilkn c6b73c7376 location suggestion result is ready with no file count and thumbnail 2022-08-02 18:29:24 +05:30
ashilkn 6a9a7e088e renamed varialbes 2022-08-02 15:40:41 +05:30
ashilkn 0233154b94 fixed untappable issue for whitespaces in serach suggestion results row + removed unwanted comments 2022-08-02 10:34:12 +05:30
ashilkn 7c379bcdab removed objects for which no files are present in the location key from the list of objects returned by getLocationSearchData 2022-08-02 09:47:38 +05:30
ashilkn 611c252a07 minor fix 2022-08-02 09:15:06 +05:30
ashilkn 1e029d208d typo fix 2022-08-02 09:02:55 +05:30
ashilkn 634ce7e013 cached file name, made functions to return location name and files 2022-08-01 21:06:24 +05:30
Neeraj Gupta 6429820485
refactor 2022-08-01 16:35:16 +05:30
ashilkn 1b69abcc31 made seperate folders for search result widgets 2022-08-01 10:17:33 +05:30
ashilkn 18b50bc2a3 vertically centered thumbnail of serach suggestions 2022-08-01 10:06:02 +05:30
ashilkn 46f96b6b50 minor changes 2022-07-29 15:17:13 +05:30
ashilkn b90ae84d67 added try catch block, modified the data returned by getLocationSearchData() 2022-07-29 14:52:09 +05:30
Neeraj Gupta 3fdb422c64
Refactor mile migration service 2022-07-29 11:36:03 +05:30
Neeraj Gupta b1ac8f4f3a
Add reason in re-upload tracker table 2022-07-29 11:34:00 +05:30
ashilkn 9fa691a1d3 made api call service for location search 2022-07-29 10:57:39 +05:30
ashilkn 3b56435416 added hero animation from filename suggestion to filedetials 2022-07-28 19:07:38 +05:30
ashilkn c0cd65c01b added hero animation from collection suggestion thumbnail to latest file in collection 2022-07-28 18:52:53 +05:30
ashilkn 6aa3220f7e search optimization 2022-07-28 16:36:04 +05:30
ashilkn 207948635e minor changes 2022-07-28 15:45:46 +05:30
ashilkn 4ffe5f4e12 added ontap to show the file when clicked on file name serach suggestions 2022-07-28 15:24:32 +05:30
Neeraj Gupta e69ac95863
remove unused method 2022-07-28 14:49:38 +05:30
Neeraj Gupta 41f70abb67
Use hash from MediaDataUpload for fileMetadata 2022-07-28 14:49:38 +05:30
Neeraj Gupta bb9564eaab
Compute fileHash as part of MediaUploadData prep 2022-07-28 14:49:38 +05:30
Neeraj Gupta 58d8c24aa1
Remove unused method 2022-07-28 14:49:38 +05:30
Neeraj Gupta 4ad94d6e8a
log changes 2022-07-28 14:49:38 +05:30
ashilkn d91ed9770e fixed no such method error 2022-07-28 13:37:41 +05:30
ashilkn b06fb763f0 code refactor 2022-07-28 13:22:20 +05:30
ashilkn 72f3c70804 minor changes 2022-07-28 11:24:40 +05:30
ashilkn 1feb070435 Merge branch 'master' into file-name-search 2022-07-28 10:51:26 +05:30
Neeraj Gupta 40ed037327
Refactor search UI 2022-07-28 10:38:20 +05:30
Neeraj Gupta 5b21bc0aa6
rename 2022-07-28 10:37:52 +05:30
Neeraj Gupta b2cf52c31a
minor refactor 2022-07-28 10:25:54 +05:30
ashilkn bd09c5d148 made service for filename search + made corresponding class members/variables 2022-07-27 17:21:43 +05:30
ashilkn 834209ef80 code refactoring 2022-07-27 13:00:51 +05:30
ashilkn c1b4ad8e38 minor changes 2022-07-27 12:43:22 +05:30
ashilkn 62ee463f9d code refactor - removed futureBuilder for generating thumbnail 2022-07-27 11:52:54 +05:30
ashilkn af492c61a1 fixed no such method error 2022-07-27 11:45:15 +05:30
ashilkn 8e0e9e9e1e created CollectionWithThumbnail object list which is to be returned by getSearchedCollections() 2022-07-27 11:15:20 +05:30
Neeraj Gupta e8a60daa71
Switch to DevicePathCollections for backup folders screen 2022-07-26 15:02:39 +05:30
Neeraj Gupta 489a203d64
Fix getDevicePathIDToImportedFileCount 2022-07-26 14:01:07 +05:30
Neeraj Gupta 52dbb2789f
Support for fetching device path collections from db 2022-07-26 13:08:04 +05:30
ashilkn ab4a2db60b minor changes + refactoring 2022-07-26 13:02:55 +05:30
Neeraj Gupta ae72969982
Support for storing latest file as deviceFolder cover 2022-07-26 11:02:04 +05:30
ashilkn f6addb0eb7 changed searchResultsSuggestion to a stateless widget 2022-07-25 19:38:11 +05:30
ashilkn c7f1d182be removed print and debug print statements 2022-07-25 19:30:07 +05:30
ashilkn a83193315c merge master 2022-07-25 19:23:57 +05:30
ashilkn 8df8a2a1cb minor changes 2022-07-25 19:20:51 +05:30
ashilkn 950ae2645c added feature flag for search feature 2022-07-25 17:22:16 +05:30
ashilkn 2e8708de97 minor changes 2022-07-25 16:34:38 +05:30
ashilkn dc658d4acf UI changes + renaming variables for better understanding 2022-07-25 16:16:40 +05:30
ashilkn 1eae826f60 rename files to follow naming convention 2022-07-25 15:54:06 +05:30
ashilkn 5ecda81dbd remove priority search + refactor 2022-07-25 15:38:19 +05:30
Neeraj Gupta f099546087
refactor: remove unnecessary field 2022-07-25 14:40:37 +05:30
Neeraj Gupta 371f87e9c2
Fix bug in selection options for shared collections 2022-07-25 14:35:23 +05:30
Neeraj Gupta d08d8da173
refactor 2022-07-25 13:09:34 +05:30
Neeraj Gupta 70faf7f5f5
Fix insertion query for db paths 2022-07-25 12:45:17 +05:30
ashilkn bf9a4479bc added thumbnail for collection suggestions 2022-07-25 11:24:04 +05:30
Neeraj Gupta 99f02574b3
Persist device pathID to name mapping 2022-07-24 22:52:12 +05:30
Neeraj Gupta dbaf4bfe27
FilesDB: Fix create table query for device path collections 2022-07-23 17:03:59 +05:30
Neeraj Gupta 7c9e1f56e6
Lint: Trailing comma
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2022-07-23 15:41:41 +05:30
Neeraj Gupta e7d6aa48d0
DeveloperMode: Support for deleting local sync state
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2022-07-23 15:34:53 +05:30
Neeraj Gupta 6cb98a9309
LocalSync: Change scope for get<Local|Ignore|Download>IDs to pvt
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2022-07-23 15:25:02 +05:30
Neeraj Gupta 870564dabf
LocalSync: Add pathID in while getting deviceFiles.
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2022-07-23 15:20:19 +05:30
Neeraj Gupta c0e3267ad0
rename 2022-07-23 15:18:33 +05:30
Neeraj Gupta facdabc772
Test: Disable upload for testing 2022-07-23 13:22:18 +05:30
Neeraj Gupta 7a49c329ed
File: Add devicePathID field 2022-07-23 12:55:40 +05:30
ashilkn 3fa69c774a added number of memories (number of files) for seach suggested collections 2022-07-23 12:45:07 +05:30
ashilkn 5088800c7c clicking on suggested colleciton now routes to colleciton page 2022-07-23 11:30:12 +05:30
Neeraj Gupta 85998f4c47
DB: Method to getCount of files for each pathID 2022-07-23 11:14:51 +05:30
Neeraj Gupta 5fe8167006
Rename variable 2022-07-23 11:11:43 +05:30
Neeraj Gupta 248e6b6108
Support for inserting device pathID and fileIDs mapping 2022-07-23 10:36:19 +05:30
ashilkn f63c6974c9 minor changes 2022-07-21 19:17:41 +05:30
Neeraj Gupta 470c5de015
add table for device_files and device_path_collections 2022-07-21 18:33:33 +05:30
ashilkn 537db7b0b4 Merge branch 'master' into mobile-search 2022-07-21 16:22:11 +05:30
ashilkn 92a5e44437 search suggestions for collections now include p1, p2, p3 results 2022-07-21 11:42:41 +05:30
ashilkn ee2d15dc68 code refactoring 2022-07-21 11:25:25 +05:30
ashilkn cb56fc0e6a Widget structure and logic for search suggestion + p1 search for collections 2022-07-21 10:59:57 +05:30
ashilkn 16f8934579 used valueNotifier to avoid rebuilding the whole searchWidget class on search queries 2022-07-20 16:27:45 +05:30
ashilkn ee01b8a0b7 minor changes 2022-07-20 15:47:35 +05:30
Neeraj Gupta d5296cbd5b
more clean up in local file sync util 2022-07-20 15:30:10 +05:30
Neeraj Gupta fa17c7562b
Remove redundant update
Signed-off-by: Neeraj Gupta <254676+ua741@users.noreply.github.com>
2022-07-20 14:18:53 +05:30
Neeraj Gupta 5d9764b8d0
Refactor file_sync_util and remove special check for recent/duplicate files 2022-07-20 14:16:53 +05:30
ashilkn fd2f89e1b9 renamed file + collection search service now returns an object with results marked with levels of relevance 2022-07-19 17:22:16 +05:30
Neeraj Gupta 35268bcf76
Minor refactor 2022-07-19 16:45:26 +05:30
Neeraj Gupta ac0011f83b
Add base EnteFile and use cacheKey for thumbnailCache 2022-07-19 16:42:28 +05:30
ashilkn c281c3dc73 made a service to get cached collection ids on search 2022-07-19 14:51:52 +05:30
ashilkn 4fe2af4be1 made search icon and search text field 2022-07-18 10:15:06 +05:30
ashilkn 5a88832119 fixed video duration bug for files sent to ente from device 2022-07-17 13:02:09 +05:30