Commit graph

940 commits

Author SHA1 Message Date
Abhinav d9fae0bf5d Merge branch 'master' into update-creation-time 2021-10-31 19:25:21 +05:30
Abhinav df0bfd0c2b fix update magic metadata 2021-10-30 20:39:52 +05:30
Abhinav ebccb6a981 merge metadatas before sorting 2021-10-30 20:35:45 +05:30
Abhinav dc794090a6 update pubMagicMetadat prop name from creationTime to editedTime 2021-10-30 19:02:17 +05:30
Abhinav 1fe2766ce9 Merge branch 'master' into collection-diff-v2 2021-10-30 08:36:38 +05:30
Abhinav 243a39c904 update to collection diff v2 2021-10-30 08:26:30 +05:30
Abhinav 8fb7146236 use public metadata creation time for sorting 2021-10-29 17:39:57 +05:30
Abhinav 69c9f423fe adds publicMetadata data update and parsing logic 2021-10-29 17:22:08 +05:30
Abhinav 8afcd3a766 refactor changeFilesVisibility to have a seperate updateMagicMetadata function and move encryption logic to upateMagicMetadata API 2021-10-29 17:15:06 +05:30
Abhinav c918225f4a updates MagicMetadata related type definations 2021-10-29 17:11:13 +05:30
Abhinav ed6be1cde1 fix generateThumbnail call during replaceThumbnail 2021-10-29 14:20:45 +05:30
Abhinav-grd 2689e81da0
Merge pull request #195 from ente-io/better-error-logs
improved error logs for failures during thumbnail generation
2021-10-29 09:56:10 +05:30
Abhinav 7ccc0b59f7 Merge branch 'master' into trash 2021-10-28 14:36:20 +05:30
Abhinav d5902aae84 Merge branch 'master' into remove-file-from-collection 2021-10-28 14:09:42 +05:30
Abhinav 86f1891d77 Merge branch 'master' into remove-file-from-collection 2021-10-28 14:08:01 +05:30
Abhinav 165958f772 Merge branch 'master' into migrate-large-thumbnails 2021-10-27 13:46:47 +05:30
Abhinav 244f59c7a6 Merge branch 'master' into better-error-logs 2021-10-27 13:30:54 +05:30
Abhinav b07ffbd820 make ffmpeg thumbnail output height to 720 2021-10-27 12:51:15 +05:30
Abhinav b587ea70fa fix file name of ffmpeg in-memory file 2021-10-27 12:43:03 +05:30
Abhinav c4dc9926e0 return file extension asexactType if file type detection fails 2021-10-27 11:43:13 +05:30
Abhinav 384fd9799a improved error logs for failure during thumbnail generation 2021-10-27 11:33:02 +05:30
Abhinav e850c8c242 fix typo 2021-10-27 10:55:43 +05:30
Abhinav 242deebb4c make max dimension(width or height) = 720px 2021-10-27 10:30:57 +05:30
Abhinav 81c77790df add comments 2021-10-27 09:13:43 +05:30
Abhinav 60c820a9be refactor code 2021-10-27 09:13:43 +05:30
Abhinav 01dc6142d0 log thumbnail dimension too 2021-10-27 09:13:43 +05:30
Abhinav 23356bf132 update thubnail dimension calculation 2021-10-27 09:13:43 +05:30
Abhinav-grd 197d5b49b4
Merge branch 'master' into migrate-large-thumbnails 2021-10-26 18:16:57 +05:30
Abhinav 6111ac87e2 clearLocalTrash after empty trash api call 2021-10-26 16:49:46 +05:30
Abhinav 9d6ae6afea show empty trash button only when trash has files 2021-10-26 16:42:32 +05:30
Abhinav d57f829adc pass files to trashService to get latest files 2021-10-26 16:33:06 +05:30
Abhinav 9aaac2b232 adds new empty trash api 2021-10-26 13:04:40 +05:30
Abhinav-grd f6106e70d1
Merge pull request #188 from ente-io/improve-thumnail-compression
Improve thumnail compression
2021-10-26 12:31:13 +05:30
Abhinav e984eb9be9 improve variable names and fix compression loop condition 2021-10-26 12:11:00 +05:30
Abhinav 192229e1e1 reduce max-compression quality to 50% 2021-10-26 11:36:58 +05:30
Abhinav aaf74290c3 updated trash diff fetch 2021-10-26 11:19:44 +05:30
Abhinav dac5ea727a updated min and max compression quality and MAX_THUMBNAIL_SIZE 2021-10-25 20:10:53 +05:30
abhinav-grd 18b27f5f08 dont have seperate preview file entry for video 2021-10-21 16:12:00 +05:30
abhinav-grd 6097e76fad fixed thumbnail and file download not retried after fail 2021-10-21 13:47:11 +05:30
abhinav-grd 8970741158 fix file download even if present in local bug 2021-10-19 18:19:29 +05:30
abhinav-grd d3b73eaa6b fix file not retrying download after a fail 2021-10-19 17:12:56 +05:30
abhinav-grd 1373a955aa make downloadThumb private correctly 2021-10-19 17:11:34 +05:30
abhinav-grd 47914f5281 reduce quality linearly 2021-10-19 15:46:15 +05:30
abhinav-grd 175e323c47 log thumbnail size greater than max limit 2021-10-19 14:02:11 +05:30
abhinav-grd 78a69a6d33 if compression more than min compression diff keep on compressing 2021-10-19 13:58:10 +05:30
abhinav-grd b53c978093 set REPLACE_THUMBNAIL_THRESHOLD to 500KB 2021-10-19 13:49:03 +05:30
abhinav-grd c9959994a5 rename migrate to migrateThumbnailService 2021-10-18 16:25:29 +05:30
abhinav-grd bc561f804b Revert "testing large thumbnails"
This reverts commit 96e9e54112.
2021-10-18 16:18:40 +05:30
abhinav-grd 1054380d09 show fix thumbnail dialog if large thumbnail present on load 2021-10-18 13:56:13 +05:30
abhinav-grd 96e9e54112 testing large thumbnails 2021-10-18 12:03:18 +05:30
abhinav-grd 2789a14eeb adds local state for fixLargeThumbnails 2021-10-18 11:49:57 +05:30
abhinav-grd 6681b601a3 completes fix thumbnail modal UI 2021-10-18 11:07:59 +05:30
Abhinav-grd 04dfe6a969
Merge pull request #184 from ente-io/save-fav-collection
Fixes Error removing from favorite
2021-10-18 10:29:46 +05:30
Abhinav-grd 1249421e4c
Merge pull request #179 from ente-io/search-files
Search files
2021-10-18 10:29:18 +05:30
abhinav-grd c095031b8e add newly created favorite collection to localCollections 2021-10-09 15:19:33 +05:30
abhinav-grd b399c50e65 fix MAX_THUMBNAIL_SIZE name typo and exported it 2021-10-08 19:57:38 +05:30
abhinav-grd d14217400a added migrate service to update large thumbnails 2021-10-08 19:56:49 +05:30
abhinav-grd b7c6eb8a2f updated _downloadThumb into getThumbnail to get uint8array as output 2021-10-08 19:56:06 +05:30
abhinav-grd 11eb962f79 compress thumbnail generated from ffmpeg using canvas method 2021-10-08 13:46:11 +05:30
abhinav-grd 3de8b0bfbe generate jpeg thumbnail with 512*512 resolution and jpeg format 2021-10-08 13:20:54 +05:30
abhinav-grd cbe1d8ce88 show only one instance of a file 2021-10-07 17:03:57 +05:30
abhinav-grd 9fa1c1fc09 fix owner photo filtering 2021-10-07 17:03:57 +05:30
abhinav-grd 9afd224a23 dont show shared files in options 2021-10-07 17:03:57 +05:30
abhinav-grd 828844151c show only four file search results 2021-10-07 17:03:57 +05:30
abhinav-grd 950adae9b3 Adds file search by name 2021-10-07 17:03:50 +05:30
abhinav-grd 798163f733 adds deleteBy caption to photo preview 2021-10-04 20:27:45 +05:30
abhinav-grd e3af66da9e Merge branch 'remove-file-from-collection' into trash 2021-10-04 18:39:11 +05:30
abhinav-grd 0e0e1f777d Merge branch 'master' into remove-file-from-collection 2021-10-04 18:30:39 +05:30
abhinav-grd 15a913e5fa fix trashItem decryption fail bug 2021-10-04 13:46:09 +05:30
abhinav-grd 1658d561cb decrypt collection in getColletion API 2021-10-04 13:45:32 +05:30
abhinav-grd d8d86eb967 added restoreToCollection API 2021-10-04 12:44:45 +05:30
abhinav-grd db066090f0 moved appendPhotoSwipeProps to getTrashedFiles 2021-10-04 11:39:23 +05:30
abhinav-grd 7497865172 added trash and delete from trash options 2021-10-04 11:03:03 +05:30
abhinav-grd d8801bf8bc added isTrashed Property to file interface 2021-10-01 12:16:07 +05:30
abhinav-grd a034504679 added getCollection API 2021-10-01 12:15:44 +05:30
abhinav-grd e28154e5b1 added trash service 2021-10-01 12:11:48 +05:30
abhinav-grd 0fc184d994 dont log collections missing from collectionsAndTheirLatestFile list 2021-09-30 17:56:28 +05:30
abhinav-grd d495ba8d86 updated error logging 2021-09-30 13:55:33 +05:30
abhinav-grd 2e6193b64b fixes favorite collection sorting 2021-09-30 13:02:58 +05:30
abhinav-grd 22a15d30aa collectionAndThierLatestFIle null check 2021-09-30 12:36:43 +05:30
abhinav-grd 7e738e1627 fix sort by latest file 2021-09-28 19:21:54 +05:30
abhinav-grd 4941cb514e Merge branch 'master' into search-collection 2021-09-28 16:30:42 +05:30
abhinav-grd 8deb45a358 updates collection delete to use the new API 2021-09-28 14:39:08 +05:30
abhinav-grd 44f01d128c upates delete file to trash file 2021-09-28 14:39:06 +05:30
abhinav-grd 497b97c26d adds collection ops remove logic 2021-09-28 13:55:15 +05:30
abhinav-grd d54e27b0be passes CollectionAndThierLatest file to Collection component and add sorting by latest file logic 2021-09-27 11:51:26 +05:30
abhinav-grd b9c41ea532 adds sharedCollections to collectionAndTheirLatestFile
This is needed because when sorting we use collectionsAndThierLatestFile to sort based on latest file and we need shared Collection file there
2021-09-27 11:36:06 +05:30
abhinav-grd 96711f7462 lowercase the text before searching for suggestions 2021-09-24 19:41:01 +05:30
Abhinav-grd 8ea85efafb
Merge pull request #155 from ente-io/archive
Archive
2021-09-24 18:40:22 +05:30
abhinav-grd 23cef6b9af Merge branch 'master' into search-collection 2021-09-24 14:06:02 +05:30
abhinav-grd dcc3f6665d searchCollection service function 2021-09-23 00:16:02 +05:30
abhinav-grd 1fe6875a14 first set collections and then its updation time ,to prevent bad state of time updated by collections not persisted 2021-09-22 19:38:21 +05:30
abhinav-grd 46471d4c25 Revert "added queue processor to file decryption"
This reverts commit 3cab5372e9.
2021-09-22 14:52:50 +05:30
abhinav-grd 6cf696a164 Merge branch 'disable-shared-collection-ops' into archive 2021-09-22 13:25:16 +05:30
abhinav-grd c98d4792be Merge branch 'move-files' into disable-shared-collection-ops 2021-09-22 12:34:12 +05:30
abhinav-grd 0bb82c189e better variable names 2021-09-21 17:52:31 +05:30
abhinav-grd 3cab5372e9 added queue processor to file decryption 2021-09-21 17:13:18 +05:30
abhinav-grd a26722d8de refactor deleteFileHelper and delete API 2021-09-21 16:09:04 +05:30
abhinav-grd 3021fd4a43 update updateMagicMetadata API 2021-09-21 16:07:53 +05:30
abhinav-grd 0b62609591 added updateMagicMetadata 2021-09-21 13:33:15 +05:30
abhinav-grd 78533c01e9 adds magicMetadata decryption logic 2021-09-21 13:15:17 +05:30
abhinav-grd 57aa358865 hides archived from all section 2021-09-21 13:00:39 +05:30
abhinav-grd 5ec72c2550 added ownerID to check if file is a shared file 2021-09-21 12:07:39 +05:30
abhinav-grd 5fcde0b6e6 added isShared property to collection and isSharedCollectionActive state 2021-09-20 19:16:08 +05:30
abhinav-grd b90fc6409b added error handling for move to collection fail 2021-09-20 17:57:24 +05:30
abhinav-grd 93c3cf8121 update moveToCollection API 2021-09-20 17:38:03 +05:30
abhinav-grd 68a81c2f77 added moveToCollection API 2021-09-20 17:38:03 +05:30
abhinav-grd 4dec65a891 try to get exif only for image files 2021-09-16 07:27:11 +05:30
abhinav-grd e17eb7aca4 exif data can be null so dont destructure function response 2021-09-16 07:26:48 +05:30
Abhinav-grd 74471d9bfb
Merge pull request #143 from ente-io/update-exif-package
Update exif package
2021-09-13 12:05:36 +05:30
abhinav-grd e34a8e8b92 remove processQueue recursive call
as we are processing the queue in a loop left when making the change
2021-09-12 16:01:08 +05:30
abhinav-grd b3a9c8ee94 improves queueProcessor 2021-09-12 15:56:16 +05:30
abhinav-grd d68cebb7a1 if unix time less than zero ignore it 2021-09-12 12:41:15 +05:30
abhinav-grd c4938d04e3 updates code to fit with new getExif function 2021-09-12 12:17:17 +05:30
abhinav-grd 5cf48597df updates exif parsing to use new library features 2021-09-12 12:16:30 +05:30
abhinav-grd f9c46cdcb6 dont log exifdata 2021-09-10 22:12:15 +05:30
abhinav-grd 5e6adb4634 updated getUNIXTime logic 2021-09-10 12:21:18 +05:30
abhinav-grd ea73bc43f8 use exifr package
exif-js fails for heic EXIF parsing
2021-09-10 12:18:34 +05:30
abhinav-grd c24a187df6 better error for favourite operations 2021-09-10 09:34:38 +05:30
abhinav-grd 37bb67ea21 remove deleted collection from local 2021-09-10 09:12:58 +05:30
Abhinav-grd 07d44846be replaced heic2any pacakeg with heic-convert and use custom worker 2021-09-07 14:54:08 +05:30
Abhinav-grd 1d0adec48c throw error if hasSetKey undefined 2021-09-06 11:47:24 +05:30
Abhinav-grd 1ff2fa3462 update error message 2021-09-02 13:28:35 +05:30
Abhinav-grd 7dfd6658ea added compulary context message to all logError calls 2021-09-01 18:04:18 +05:30
Abhinav-grd cbcdba8229 add jpg to list of files missed by file type lib 2021-08-31 17:29:33 +05:30
Abhinav-grd e614ef755c fix create collection fail
The cause of bug was due to collection sync fail which occured due collection decyrption failure because of collection key mismatch bug
2021-08-31 16:53:43 +05:30
Abhinav-grd e1465609dd run unlink thumbnail only if thumbnail generation succeedes 2021-08-31 15:56:12 +05:30
Abhinav-grd b195015d64 added PAGES enum for all avialable routes 2021-08-31 10:28:58 +05:30
Abhinav-grd c21b20df95 only put if hasSetKeys explicitly false 2021-08-30 23:22:56 +05:30
Abhinav-grd 01e9a2ca96 put ORIGINAL_KEY_ATTRIBUTES after keySet check 2021-08-30 17:54:04 +05:30
Abhinav-grd af1ad9c973 put keyAttributes if not set , using session-validity-v2 check 2021-08-30 17:30:04 +05:30
Abhinav-grd 61df0d6ea8 move FORMAT_MISSED_BY_FILE_TYPE_LIB to file service build fix 2021-08-30 10:48:28 +05:30
Abhinav-grd 28a5ccee4a format missed by type detection 2021-08-30 10:45:16 +05:30
Abhinav-grd c596338463 adds type detection failed logs 2021-08-30 10:11:50 +05:30
Abhinav-grd ecec1b4a29 fix infinite seek 2021-08-30 09:45:02 +05:30
Abhinav-grd e06ca8c4a9 fix seek more than videoLength ebug 2021-08-30 09:27:27 +05:30
Abhinav-grd d1d3623880 fix file extension logging for unsupported formats 2021-08-30 06:54:57 +05:30
Abhinav-grd aa1ae957af fix unlink inputFileName 2021-08-29 20:38:19 +05:30
Abhinav-grd abdab27287 unlink correct thumbFileName 2021-08-29 20:30:11 +05:30
Abhinav-grd acef50e512 Merge branch 'master' into fix_multiple_request 2021-08-29 15:00:29 +05:30
Abhinav-grd 974d8d9241 store file promise in fileObjectUrlPromise 2021-08-29 14:58:53 +05:30
Abhinav-grd 3acd3ba87f skip too large files 2021-08-29 14:45:12 +05:30
Abhinav-grd 2a645dc16e remove console log 2021-08-29 14:28:37 +05:30
Abhinav-grd 28ccf3d11c added file too large section 2021-08-29 12:56:24 +05:30
Abhinav-grd a8c93da704 updated error handler 2021-08-29 12:44:33 +05:30
Abhinav-grd e6049aef1b function check for breaking error changes 2021-08-29 11:48:53 +05:30
Abhinav-grd ce8bc629a1 renamed parseError and handleError to upload specfic names 2021-08-29 11:48:03 +05:30
Neeraj Gupta 362d4f89ae Thumbnail: don't trigger download if a request is already in-flight 2021-08-29 11:40:18 +05:30
Abhinav-grd a9d9b41ee0 fixed customer portal redirect 2021-08-29 10:34:50 +05:30
Abhinav-grd 1b8cbcd04d fixed customer portal redirect 2021-08-28 22:28:52 +05:30
Abhinav-grd febb0a47ae appended timestamp to filenames 2021-08-28 21:49:31 +05:30
Abhinav-grd ebdcda247c clean 2021-08-28 19:35:45 +05:30
Abhinav-grd 8788a7cd48 final touch up 2021-08-28 19:29:00 +05:30
Abhinav-grd a6b38ac020 remove file after thumbnail generation 2021-08-28 11:21:05 +05:30
Abhinav-grd a97c11cf6f conditonally load local ffmpeg file in local enviroment 2021-08-28 11:21:05 +05:30
Abhinav-grd 0a2a9b1f1d added error handling 2021-08-28 11:21:05 +05:30
Abhinav-grd 4317964ca4 remove logs 2021-08-28 11:21:05 +05:30
Abhinav-grd a09c5e7a36 remove un used import 2021-08-28 11:21:05 +05:30
Abhinav-grd 484842a652 avoid multiple load call and run call at one time 2021-08-28 11:21:05 +05:30
Abhinav-grd c0e665cd1d add logs 2021-08-28 11:21:05 +05:30
Abhinav-grd 9ee35f725e refactored code 2021-08-28 11:21:05 +05:30
Abhinav-grd 5b8ae127b5 just load fallback package 2021-08-28 11:21:05 +05:30
Abhinav-grd 53af52de61 added fallback core package 2021-08-28 11:21:05 +05:30
Abhinav-grd 26d9d500b4 break on thumbnail error 2021-08-28 11:21:04 +05:30
Abhinav-grd 75de06cff7 added ffmeg package 2021-08-28 11:21:04 +05:30
Abhinav-grd c32ec93d29 updated queueService to QueueProcessor 2021-08-28 11:20:02 +05:30
Abhinav-grd 1285305288 added queueService 2021-08-28 11:20:02 +05:30
Abhinav-grd e008ccd83f Merge branch 'master' into redirect_to_payements 2021-08-25 15:29:03 +05:30
Abhinav-grd c2e5007386 moved type detail logging logic to catch block 2021-08-20 12:50:34 +05:30
Abhinav-grd a7033f1699 fix location data bug 2021-08-20 12:28:21 +05:30
Abhinav-grd 7539f5c9fa remove exif file check and let exif library handle it and fail 2021-08-20 12:23:59 +05:30
Abhinav-grd e059f16325 send unsupported file extension 2021-08-19 12:03:10 +05:30
Abhinav-grd 9076735374 pass fileType info to metadata extracter 2021-08-19 08:55:11 +05:30
Abhinav-grd 9912be071a add hasStaticThumbnail to metadata object 2021-08-19 08:50:59 +05:30
Abhinav-grd 49e61ba1f1 read only metadat for checking duplicate 2021-08-19 08:42:08 +05:30
Abhinav-grd 7515e14d02 added uplaoded file to existingFilesCollectionWise 2021-08-18 20:41:11 +05:30
Abhinav-grd 5bfc58fbc5 Merge branch 'master' into redirect_to_payements 2021-08-18 18:29:21 +05:30
Abhinav-grd bb8f407bbf catch empty generated thumbnail 2021-08-18 18:26:24 +05:30
Abhinav-grd b67a7a9401 fiox typeParts undefined check 2021-08-18 17:46:20 +05:30
Abhinav-grd fc25f7314c pass gallery path as redirectURL 2021-08-18 14:50:53 +05:30
Abhinav-grd 47efa6a8e5 increase chunk size for exif parsing and just log and dont break on exif laod fail 2021-08-18 12:41:00 +05:30
Abhinav-grd c9ffaf67b7 build fix 2021-08-18 11:54:21 +05:30
Abhinav-grd 6b5bbacd00 read file chunk for exif 2021-08-18 11:21:17 +05:30
Abhinav-grd 744a308963 removed unneeded fileReader passed to functions 2021-08-18 11:08:20 +05:30
Abhinav-grd 2383470e41 updated existingFileCollectionWise after file upload 2021-08-18 10:05:28 +05:30
Abhinav-grd 9b49e15d5c moved file reading ot worker 2021-08-18 10:02:27 +05:30
Abhinav-grd c36c1b5c13 fix uploadProgress more than 100 % bug 2021-08-17 17:22:44 +05:30
Abhinav-grd 9b13509615 Merge branch 'master' into upload-refactoring 2021-08-17 14:42:01 +05:30
Abhinav-grd b5702c8b73 pass existingCollection list to createAlbum when creating multiple collection at once 2021-08-17 14:38:54 +05:30
Abhinav-grd e8c421a438 detect isHEIC based on filedata derived type 2021-08-16 19:03:57 +05:30
Abhinav-grd b0b1f87ebd Merge branch 'master' into upload-refactoring 2021-08-16 18:19:42 +05:30
Abhinav-grd f381a3cb63 fixed all redirect logic 2021-08-16 11:12:48 +05:30
Abhinav-grd 91bb017de8 removed update subcription logic and removed buyPaidSubcription to buySubscription 2021-08-14 17:09:09 +05:30
Abhinav-grd 8d0c67a15c remove buyrRelated logic 2021-08-14 15:37:49 +05:30
Abhinav-grd ac1a59394e Merge branch 'master' into redirect_to_payements 2021-08-14 15:35:48 +05:30
Abhinav-grd 1c72450890 pass rootUrl param to payments 2021-08-14 15:32:57 +05:30
Abhinav-grd 884c2e57c3 dont round percenatge 2021-08-14 11:42:42 +05:30
Abhinav-grd 495f9002bf made chnages to better handle file import 2021-08-13 23:52:53 +05:30
Abhinav-grd 5d965da21e made chnages to better handle file import 2021-08-13 23:51:14 +05:30
Abhinav-grd 96e36c8bf0 custom check for heic not required 2021-08-13 22:17:06 +05:30