Commit graph

2836 commits

Author SHA1 Message Date
Abhinav 262eb0884f show loader till files null and loading 2022-01-31 16:40:31 +05:30
Abhinav b8b6c20302 improve loading 2022-01-31 16:18:27 +05:30
Abhinav 7d5a03598d add isLoadingBarRunning before calling complete 2022-01-31 16:10:34 +05:30
Abhinav 55f6724090 use accessToken and collectionID combined as collectionUID 2022-01-31 14:00:26 +05:30
Abhinav 4b2ca8e98c improve loaders 2022-01-31 12:34:22 +05:30
Abhinav 21799ba06e setLoading(false) after local files loaded 2022-01-30 16:56:07 +05:30
Abhinav a750e7e900 update sharing Error handling 2022-01-30 16:03:13 +05:30
Abhinav 033a6020e2 handle too TOO_MANY_REQUEST error 2022-01-30 13:37:32 +05:30
Abhinav 16cc4844f1 don't send validTill and deviceLimit and use default options 2022-01-30 13:36:50 +05:30
Abhinav Kumar c0c210d587
Merge pull request #338 from ente-io/styling-and-string-sharable-url
Styling and string sharable url
2022-01-29 14:51:04 +05:30
Abhinav f4366064d0 style change 2022-01-29 14:48:53 +05:30
Abhinav 99525739e6 remove zero sharees and increase divider margin 2022-01-29 14:32:46 +05:30
Abhinav 3a4e1522a8 dont null instead set file as empty array 2022-01-29 14:23:35 +05:30
Abhinav 6962ccfea4 change abuse report button text 2022-01-29 14:19:08 +05:30
Abhinav 82ba607a3d add divider between share with and public url 2022-01-29 14:17:52 +05:30
Abhinav 65a0f6f464 adds user id to show bulk edit option 2022-01-29 13:22:15 +05:30
Abhinav 3f3e65ad03 fix dedupe 2022-01-29 12:42:28 +05:30
Abhinav d4264b9c06 get collection sync time UID 2022-01-29 12:33:56 +05:30
Abhinav 674375848c setPublicShareUrl to null if collection url doesnt exist 2022-01-29 12:19:55 +05:30
Abhinav 08822f9963 fix report item size 2022-01-29 11:49:59 +05:30
Abhinav 499a256c49 update button style 2022-01-29 11:36:10 +05:30
Abhinav 30aeef3231 style changes 2022-01-29 11:30:47 +05:30
Abhinav ad3dc5d65f update placeholder strings to have required star 2022-01-29 10:59:45 +05:30
Abhinav 0940d38f58 init localForage before redirecting 2022-01-29 09:38:34 +05:30
Abhinav 369887c346 changed ?? to || 2022-01-29 09:32:45 +05:30
Abhinav ba5431a723 fix cache errors 2022-01-29 09:13:07 +05:30
Abhinav ac8ef83fcf fix first load loading 2022-01-29 08:59:47 +05:30
Abhinav 14516bb252 fix get local collection 2022-01-28 17:45:07 +05:30
Abhinav 49869766d9 fix local file fetching 2022-01-28 17:41:48 +05:30
Abhinav 7649ee1894 add dedupe logic before saving collection to localStorage 2022-01-28 17:34:06 +05:30
Abhinav 3291b2c005 fix laoder not working in gallery 2022-01-28 13:50:00 +05:30
Abhinav de0a310969 Merge branch 'bug-fix-public-sharing' into update-abuse-report 2022-01-28 11:54:09 +05:30
Abhinav eb714a145b Merge branch 'public-album-styling' into bug-fix-public-sharing 2022-01-28 11:51:55 +05:30
Abhinav 7af0cd55a1 Merge branch 'master' into public-album-styling 2022-01-28 11:50:38 +05:30
Abhinav Kumar 3c58e02f66
Merge pull request #333 from ente-io/albums-ente-io
copy of albums.ente.io setup
2022-01-28 11:45:45 +05:30
Abhinav caef32adb2 change button text for web to singup 2022-01-27 16:08:25 +05:30
Abhinav Kumar 04aab00edd
Merge pull request #313 from ente-io/shareable-url
shareable url
2022-01-27 16:00:57 +05:30
Abhinav Kumar 5fd12ad7b9
Merge pull request #330 from ente-io/progress-bar-ui-updates
upload progress bar upload
2022-01-27 15:43:05 +05:30
Abhinav Kumar 22a7984067
Merge pull request #331 from ente-io/update-recovery-error-style
update error dialog style shown for get recovery code failure
2022-01-27 15:39:01 +05:30
Abhinav b18e1d326f update error dialog style for recoervy code show fail 2022-01-27 15:35:07 +05:30
Abhinav b7f87ef7ba adds the missed reducePendingFiles function 2022-01-27 15:06:48 +05:30
Abhinav c8fcb4d9ef fix move to moveFileToResultList logic 2022-01-27 14:44:17 +05:30
Abhinav c3081c9096 no need to set finished files progress on progress bar 2022-01-27 14:38:02 +05:30
Abhinav Kumar d980620b3b
Merge pull request #328 from ente-io/incognito-mode-usage
Incognito mode usage
2022-01-27 13:23:58 +05:30
Abhinav 1ceaa481a9 close automatically recovery modal only on error 2022-01-27 13:10:09 +05:30
Abhinav f4eaaaaf05 dont log cache failures 2022-01-27 12:32:21 +05:30
Abhinav 4793d7169b revert to default driver set 2022-01-27 12:27:50 +05:30
Abhinav 8ebb34c56d catch error when cache access fails 2022-01-27 12:27:01 +05:30
Abhinav 79e543f5db close automatically recovery modal only on error 2022-01-26 19:25:37 +05:30
Abhinav ff5d9b5129 update the abuse report form 2022-01-26 19:17:37 +05:30
Abhinav 36c2c77546 add collectionToRemove not found locally check 2022-01-26 12:57:33 +05:30
Abhinav f674c8bc70 have seperate state to keep track of running loader 2022-01-26 12:51:12 +05:30
Abhinav 2c5de102b2 prevent files[index] is undefined errors 2022-01-26 11:54:49 +05:30
Abhinav 9b47830076 fix public collection files download 2022-01-26 11:50:02 +05:30
Abhinav 333271bfc0 fix getThumbnail erroring out on hot reload 2022-01-26 11:39:42 +05:30
Abhinav 8cbb6aa4f6 mask shared-albums if not already done 2022-01-26 11:13:31 +05:30
Abhinav 8deaf8e39e update LinkButton style 2022-01-25 19:38:43 +05:30
Abhinav 7ceea87510 move report button to button of the photoList 2022-01-25 19:38:28 +05:30
Abhinav 2df58a0f7c update GoToEnte button positioning 2022-01-25 18:08:33 +05:30
Abhinav 041e995baf fix host change for local shared album 2022-01-25 16:15:30 +05:30
Abhinav 94a0c07430 moved masking logic to landing page 2022-01-25 14:30:28 +05:30
Abhinav bbfa11834e added redirect to shared-albums with root mask logic 2022-01-25 14:09:56 +05:30
Abhinav 4220211388 dont show console warning on local host 2022-01-25 14:06:36 +05:30
Abhinav a0c10cf1c4 add shared-albums page and album site host 2022-01-25 14:06:22 +05:30
Abhinav a631b5ff01 Merge branch 'master' into albums-ente-io 2022-01-25 12:05:57 +05:30
Abhinav Kumar 091566281d
Merge pull request #320 from ente-io/recovery-key-error-handling
better handle if getRecoveryKey fails
2022-01-24 18:24:35 +05:30
Abhinav 197f2ecd80 make shared-album pural 2022-01-24 18:21:26 +05:30
Abhinav a12142f677 upate lodaer for normal share 2022-01-24 17:54:17 +05:30
Abhinav cb29371959 remove token-missing erorr 2022-01-24 17:43:30 +05:30
Abhinav b3dd490286 cleanup 2022-01-24 17:35:39 +05:30
Abhinav 28d3d123c2 fix redirect to app 2022-01-24 17:27:16 +05:30
Abhinav ecd4a2588f export string to constant 2022-01-24 17:27:07 +05:30
Abhinav f521c052e5 fix loading break 2022-01-24 17:20:09 +05:30
Abhinav 9dd18696bd no need for defaultPublicCollectionGalleryContext 2022-01-24 17:19:38 +05:30
Abhinav b8871d7fc8 rename deleteSharableLink to disablePublicSharing 2022-01-24 16:59:06 +05:30
Abhinav b956c5263c moved strings to contants 2022-01-24 16:56:45 +05:30
Abhinav b2cac4f629 minor improvements 2022-01-24 16:42:23 +05:30
Abhinav 826f9a1b0f rename PulbicAccessURL to PublicURL 2022-01-24 16:33:33 +05:30
Abhinav 90643627aa remove height prop from codeblock 2022-01-24 16:13:22 +05:30
Abhinav b410f04dd4 fix margin codeblock 2022-01-24 15:43:56 +05:30
Abhinav a8f327e49a Merge branch 'master' into shareable-url 2022-01-24 15:06:53 +05:30
Abhinav 07241efafd change url casing 2022-01-24 14:58:41 +05:30
Abhinav 17fd62be4d handle new format of shareURL 2022-01-24 14:51:31 +05:30
Abhinav f89be2fffb add loading bar to shared-albums 2022-01-24 14:34:17 +05:30
Abhinav 581274b3c5 better handle if getRecoveryKey fails 2022-01-24 13:11:10 +05:30
Abhinav df9dd95f54 update string 2022-01-22 13:26:54 +05:30
Abhinav ae5bc333ef add new category for files larger than available storage 2022-01-22 12:26:41 +05:30
Abhinav 3971e9c500 Revert "fix file too large description"
This reverts commit 8a5e194af4.
2022-01-22 11:18:55 +05:30
Abhinav Kumar 4511773b80
Merge pull request #315 from ente-io/change-url-casing
Change url casing
2022-01-22 11:03:49 +05:30
Abhinav 8a5e194af4 fix file too large description 2022-01-22 11:01:56 +05:30
Abhinav a53e386d76 Merge branch 'master' into shareable-url 2022-01-21 20:20:40 +05:30
Abhinav 858a494b99 rename disableEdits to shouldDisableEdits 2022-01-21 20:18:24 +05:30
Abhinav 0169017981 reduce collection info size 2022-01-21 18:59:07 +05:30
Abhinav 0c36076fc6 add loading and fix url undefined errors 2022-01-21 18:57:28 +05:30
Abhinav 6b6a75df22 disable edits for shared collections 2022-01-21 18:45:08 +05:30
Abhinav 47ca9300dc handle null url 2022-01-21 18:33:11 +05:30
Abhinav c917f8144e reposition report button 2022-01-21 18:31:06 +05:30
Abhinav a358525b36 handle sharing errors 2022-01-21 18:24:57 +05:30
Abhinav 13f8968ee9 handle token exipring 2022-01-21 17:33:20 +05:30
Abhinav 6a3ed25c21 Merge branch 'master' into shareable-url 2022-01-21 17:22:33 +05:30
Abhinav Kumar aa45ddc3a9
Merge pull request #316 from ente-io/404-page
add 404 page
2022-01-21 17:16:49 +05:30
Abhinav 9fa5662880 add 404 page 2022-01-21 16:48:25 +05:30
Abhinav f807b96df8 set collection after fetching 2022-01-21 15:13:35 +05:30
Abhinav a96d115aa2 chnage URL format 2022-01-21 14:56:54 +05:30
Abhinav f4debffff8 build fix 2022-01-21 14:10:17 +05:30
Abhinav f4acef55ef mode copy code to codeblock 2022-01-21 14:05:11 +05:30
Abhinav 005142fe68 fix arrow style 2022-01-21 14:03:57 +05:30
Abhinav 8498ae54c0 update codeblock and move to new file 2022-01-21 13:59:46 +05:30
Abhinav 3ca08bd4f6 add copy to clipboard option 2022-01-21 12:33:23 +05:30
Abhinav 0284830085 refactor tooltip styling 2022-01-21 12:33:23 +05:30
Abhinav a99238b25b update api urls 2022-01-21 12:33:23 +05:30
Abhinav 5eb36c1e15 restyle url sharing 2022-01-21 12:33:10 +05:30
Abhinav dfbea0b6ab rename publicAccessURL to publicURL 2022-01-20 15:50:52 +05:30
Abhinav ffe5062d7a fix video download for public collection 2022-01-20 15:49:40 +05:30
Abhinav 8d81368a34 change Url to URL 2022-01-20 12:13:10 +05:30
Abhinav 1a74eccdd7 change Url to URL 2022-01-20 12:12:27 +05:30
Abhinav 1796fae8a9 add cache control to prevent cache 2022-01-19 21:51:22 +05:30
Abhinav 6303f2d606 fix send report 2022-01-19 17:14:46 +05:30
Abhinav dea7e186b4 again set url ref 2022-01-19 17:04:49 +05:30
Abhinav 072e471f27 update to hadle new URL format 2022-01-19 16:24:43 +05:30
Abhinav 13ebc48f9c add deleteSharableURL api and UI 2022-01-19 16:23:59 +05:30
Abhinav 2d23b4a70c add logic to prevent opera and MSStream undefined errors 2022-01-19 12:55:48 +05:30
Abhinav a648695e44 add go to ente button 2022-01-19 12:55:15 +05:30
Abhinav 894802bc81 add device detection logic 2022-01-19 10:31:36 +05:30
Abhinav f2caf2758b add abuse report logic 2022-01-18 18:38:24 +05:30
Abhinav 1ce3a9dc6a udpate getPublicCollectionLastSyncTime 2022-01-17 18:41:26 +05:30
Abhinav ad7f24e8df disable report abuse form 2022-01-17 18:16:33 +05:30
Abhinav 292c3c4a1f add report abuse buttona and form 2022-01-17 18:12:53 +05:30
Abhinav 2b5cea72a5 rename sharedCollection to publicCollection 2022-01-17 16:48:13 +05:30
Abhinav a53ebd5ce4 add local caching to sharedURLAlbum gallery
collection info api and ui element
open in ente button
2022-01-17 16:48:13 +05:30
Abhinav 8d81fc0342 add OpenInEnte component 2022-01-17 16:48:13 +05:30
Abhinav 493b85b322 add todo for shared-collection info api 2022-01-17 16:48:13 +05:30
Abhinav ecc2ce7093 add logic and apis for viewing sharedAlbum Thumbnails and files 2022-01-17 16:48:13 +05:30
Abhinav d7832a2e08 encode collectionKey as its not URL 2022-01-17 16:48:13 +05:30
Abhinav 80f3c1bdda small bug fixes 2022-01-17 16:48:13 +05:30
Abhinav 429211f9a8 add create sharable url logic
ui for opening shared collections
2022-01-17 16:48:09 +05:30
Abhinav ef1dd9a453 return currentTrash if getTrash fails 2022-01-16 16:22:57 +05:30
Abhinav c9bedcdd6e return empty array if updateTrash fails 2022-01-15 13:16:27 +05:30
Abhinav 05f19c3303 handle plan modal opening error better 2022-01-15 11:01:09 +05:30
Abhinav 01db5a28ce change user-plans api url 2022-01-14 18:57:44 +05:30
Abhinav 8ca2eeb8c7 remove unnecessary api key 2022-01-14 17:43:53 +05:30
Abhinav 22528bb7ca dont animate currentSubscribedPlan 2022-01-14 17:43:40 +05:30
Abhinav 1fe2a97f8c call user-plans api if token present 2022-01-14 17:41:33 +05:30
Abhinav 13c362f16c fixes unable to select consective item range select 2022-01-13 14:18:50 +05:30
Abhinav 6516246499 fixes https://sentry.ente.io/organizations/ente/issues/2338/
adds rangeStart undefined check
2022-01-13 14:18:00 +05:30
Abhinav Kumar 44b2907c69
Merge pull request #295 from ente-io/fix-search-count
fix search count by updating it when filteredData changes
2022-01-13 11:14:58 +05:30
Abhinav Kumar 8aa55eb411
Merge pull request #291 from ente-io/first-upload-name
use suggested name if available during first upload
2022-01-13 11:14:45 +05:30
Abhinav 41a23dbc0b fix search count by updating it when filteredData changes 2022-01-13 10:39:14 +05:30
Abhinav 000f1546fe fix getFileOriginalName if name doesn't have edited suffix 2022-01-12 17:00:58 +05:30
Abhinav f37cac0a39 fix casing of ParsedMetadataJSON 2022-01-12 16:59:27 +05:30
Abhinav bed6a086a6 use suggested if available during first upload 2022-01-12 14:42:46 +05:30
abhinavkgrd 7dc9246519
Merge pull request #284 from ente-io/rename-type-MetadataObject-to-Metadata
Rename type MetadataObject to Metadata
2022-01-09 18:05:13 +05:30
abhinavkgrd 71a97caa03
Merge pull request #281 from ente-io/reuse-file-readers
reuse file readers
2022-01-09 18:00:51 +05:30
abhinavkgrd b504e072f3
Merge pull request #288 from ente-io/fix-get-original-filename-logic
fix getFileOriginalName logic
2022-01-09 18:00:39 +05:30
Abhinav 4cdc93e345 renamed sentry constants to follow the global convention 2022-01-09 13:55:07 +05:30
Abhinav 48eac037ea fix getFileOriginalName logic 2022-01-09 12:25:40 +05:30
Abhinav d42af9cd1a pass reader correctly instead of passing workers 2022-01-09 11:05:50 +05:30
Vishnu Mohandas 5d3e284fcd
Merge pull request #280 from ente-io/disable-sentry-release-cli-for-local-build
disable sentry release cli for local build
2022-01-08 18:44:27 +05:30
abhinavkgrd 9d727f23b6
Merge pull request #287 from ente-io/handle-exifr-error
handle exifr parsing failure gracefully
2022-01-08 15:08:05 +05:30
Abhinav 6abf883b3e Merge branch 'reuse-file-readers' into rename-type-MetadataObject-to-Metadata 2022-01-08 13:56:22 +05:30
Abhinav d4eb485829 handle exifr parsing fail 2022-01-08 13:44:51 +05:30
Abhinav 0e7ab5c886 fix if fileReader not present check 2022-01-08 13:34:50 +05:30
Abhinav 585d3acf88 fix multiple folder detection for sibling folder with no common ancestor 2022-01-08 13:09:43 +05:30
Abhinav f788490573 fixc worker passed instead of FileReader to getMimeTypeFromBlob 2022-01-08 12:29:10 +05:30
Abhinav 15a03a87b3 rename type MetadataObject to Metadata 2022-01-08 10:34:40 +05:30
Abhinav 8fc784a1f5 replace one missed worker.getUint8ArrayView function 2022-01-07 18:34:42 +05:30
Abhinav bd3d6d84ce use global file reader and reuse them wherever possible 2022-01-07 18:28:22 +05:30
Abhinav 5427fbf232 move isSentryEnabled needed by both config util and constants/sentry to seperate file sentryConfigUtil
as neither of the two files can import each other
2022-01-07 18:06:22 +05:30
Abhinav fbf6476d70 move sentry constants to constants/sentry 2022-01-07 17:52:37 +05:30
Abhinav 028bbdd01d Merge branch 'master' into fix-queue-processing-order 2022-01-06 19:25:47 +05:30
abhinavkgrd 6d219275c0
Merge pull request #263 from ente-io/upload-types-refactor
Extract types and constants from services and components
2022-01-06 18:36:23 +05:30
abhinavkgrd b297e9fd64
Merge pull request #278 from ente-io/fix-double-counting-selected-items
Fix overlapping range select behaviour
2022-01-06 14:30:46 +05:30
Abhinav 73882919d1 handle case where range select with few selected and few unselected items
select all the items in the union of two ranges
2022-01-06 14:12:41 +05:30
Abhinav 6d76611079 fix counting again 🥲 2022-01-06 13:53:29 +05:30
Abhinav 314f8d44b1 handle range deselection 2022-01-06 13:35:27 +05:30
Abhinav a24ace5946 deselect items if overlap between range selected value 2022-01-06 13:07:52 +05:30
Abhinav e41b3c184f make onSelect required prop 2022-01-06 13:07:18 +05:30
Abhinav 2044f4f6cf remove unneccsary console log 2022-01-06 12:15:13 +05:30
Abhinav bf6a0ef7cc fix double counting selected items if new and previous range select overlap 2022-01-06 12:14:18 +05:30
Abhinav 14b1e59c90 abstract SmallLoadingSpinner 2022-01-06 10:21:08 +05:30
Abhinav 3c4a0f7b6a add loading spinner during creation udpate api call 2022-01-06 10:11:33 +05:30
Abhinav b752b77c26 Merge branch 'master' into upload-types-refactor 2022-01-05 16:36:39 +05:30
Abhinav 9e099d4e67 moved queueProcessor to service directory 2022-01-05 13:28:24 +05:30
Abhinav e4f649c467 refactor upload service constants and types 2022-01-05 13:27:10 +05:30
Abhinav 2faade0d42 move KEK interface to types 2022-01-05 13:05:18 +05:30
Abhinav 344d2b2c0c move ProgressUpdater interface to UIService 2022-01-05 13:00:29 +05:30
Abhinav 7285af6977 keep NULL_LOCATION along with Location type defination 2022-01-05 12:50:10 +05:30
Abhinav 44bc3916a5 move isDataStream type check util function to types/upload 2022-01-05 12:46:57 +05:30
Abhinav caef21f939 merge types/user imports 2022-01-05 12:41:16 +05:30
Abhinav 63960c207b fix User import 2022-01-05 12:40:36 +05:30
Abhinav a5849600b1 move errorUtil from utils/common to utils/error 2022-01-05 12:25:48 +05:30
Abhinav b00d7ea2b0 move file enums to constants/file 2022-01-05 12:18:46 +05:30
Abhinav 9e0fef4743 move export enums to constants/export 2022-01-05 12:14:22 +05:30
Abhinav ce22425be9 move collection enum to constants/collection 2022-01-05 12:11:32 +05:30
Abhinav 11e990ffe9 move file constants to constants/file 2022-01-04 17:27:19 +05:30
Abhinav 8a96b73b37 moved export constants to constants/export 2022-01-04 17:19:14 +05:30
Abhinav 88ea78ebb3 dont export constants used only in one file 2022-01-04 17:14:34 +05:30
Abhinav 8f0a0d3f18 fix FIX_CREATION_TIME_VISIBLE_TO_USER_IDS import 2022-01-04 17:12:43 +05:30
Abhinav 9b48275144 moved upload constants to constants/upload 2022-01-04 17:12:29 +05:30
Abhinav eddfbed37c moved user constants to constants/user 2022-01-04 16:57:57 +05:30