Commit Graph

2805 Commits

Author SHA1 Message Date
Aminejv
25e688fa02 feat(file-utilities/uploadLink):
- remove Alert code

- add support for uploadAbort
2021-09-22 12:12:23 +01:00
Aminejv
2220ba8941 feat(actions/createLink):
- returnJSON will return {aborted: true} as a response when the fetch is aborted

- pass options argument to extend createLink's request options
2021-09-22 12:09:49 +01:00
Aminejv
95900d3e1e feat(Upload):
- Remove GlobalCarrousel from upload summary (replaced by Link component)

- Remove library files from upload summary

- Sort upload summary by date saved
2021-09-21 15:53:37 +01:00
Aminejv
5aa823f590 fix(onboarding): fix onboarding.hidePrivacyAlert undefined error 2021-09-21 14:09:49 +01:00
Martina
b80d35d835 small change to wording of duplicate file message 2021-09-19 20:21:35 -07:00
Martina
4baf9f8807 fixed misspelling 2021-09-17 18:35:21 -07:00
Martina
37b9bac7b0 migration to new flat structure 2021-09-17 17:09:10 -07:00
Aminejv
3c2d78f451 fix(Upload.Modal): fix modal's overflow over profile popup 2021-09-17 15:20:28 -07:00
Aminejv
0019ca2870 feat(api/data/create): return the cid of the duplicate file (will be updated once the migration is done) 2021-09-17 15:20:28 -07:00
Aminejv
62622d9dfb fix(hooks/useLockScroll): fix undefined error when no parameter is passed 2021-09-17 15:20:28 -07:00
Aminejv
6152085ef1 feat(SceneSlate): use Upload.Trigger to show the upload modal 2021-09-17 15:20:28 -07:00
Aminejv
c5ae2f1d87 feat(ApplicationHeader): add Upload Provider, Root, Trigger components to the header 2021-09-17 15:20:27 -07:00
Aminejv
ef7e8a1103 feat(Upload):
- export Provider

- add Root component (managing the upload modal visibility)

- add Trigger component (responsible for showing the upload modal)
2021-09-17 15:20:27 -07:00
Aminejv
d2c26ab62e feat(Upload.Modal):
- feat(Controls): adjust to design styles

feat(Summary):

- add upload indicator

- add summary table
2021-09-17 15:20:27 -07:00
Aminejv
2fbcd640d4 feat(Upload.Provider):
- add useUploadModal (responsible for showing and hiding upload modal)

- add useUpload (responsible for upload state, also returns methods exposed by createUploadProvider )

- add useUploadOnDrop (responsible for handling upload on drop)

- add useUploadFromClipboard (responsible for handling upload when pasting an image)

- add useUploadRemainingTime (calculate remainingTime for the currentUpload)
2021-09-17 15:20:00 -07:00
Aminejv
49d5e02932 feat(DataMeter): clamp percentage between 0 and 100% 2021-09-17 15:20:00 -07:00
Aminejv
9b632cacc3 feat(utilities): add formatDateToString to format uploaded files date to using today and yesterday 2021-09-17 15:20:00 -07:00
Aminejv
119312afa1 chore(Alert): remove uploading messages (this will be handled by the new popup system) 2021-09-17 15:20:00 -07:00
Aminejv
858920feb9 chore(ApplicationLayout):
remove SIDEBAR_ADD_FILE_TO_BUCKET components

- fix overflow issue in the header

- remove fileLoading instances
2021-09-17 15:20:00 -07:00
Aminejv
2128df489a chore(Application):
- remove logic related to handling drag and drop upload

- remove logic to handle paste 0on image upload

- remove ModalAddFileToBucket from sidebars (moved its own component)
2021-09-17 15:20:00 -07:00
Aminejv
7073aedd38 feat(upload-utilities):
- add UploadQueue to be able to handle upload sequentially

- add failedFilesCache to store files when they fail to upload so we can retry later

- add uploadAbort which object that keeps track of the file being currently uploaded, and get assigned to xhr.abort, which allows it to cancel occurring upload outside of file-utilities.upload function

- add createUploadProvider factory function that exposes upload, cancel, cancellAll, retry handlers
2021-09-17 15:20:00 -07:00
Aminejv
5c0747ff71 chore(file-utilities):
- remove Store.js. We'll use a queue system, it'll be easier to cancel file uploading from the queue directly

- remove uploadFiles functions. It'll be replaced by the queue system

- remove the context parameter from the upload function. We'll use onProgress handler instead

- add UploadAbort parameter to upload, which is an object that will give us the ability to abort an occurring upload outside of the function scope
2021-09-17 15:20:00 -07:00
Aminejv
b410937fa3 chore(GlobalCarousel):
- fix typo (trannslateX)

- remove width: 100% and height: 100%. When sitting an element's position to fixed, it will have those values by default
2021-09-17 15:18:10 -07:00
Aminejv
958387a2bf chore(SidebarAddFileToBucket): remove file since it's not used anywhere in the app 2021-09-17 15:18:10 -07:00
Aminejv
0c4ecd9025 feat(modals): add portal to display modals in
- feat(_document): render portals in the div element with id browser_extension

- feat(ModalPortal): useReactDom.createPortal to render childrens
2021-09-17 14:44:29 -07:00
Aminejv
647b4d043a feat(upload-utilities): add the ability to cancel uploading and retry after failure 2021-09-17 14:44:29 -07:00
Aminejv
de90ddee0f feat(upload-utilities): add queue based upload factory function 2021-09-17 14:44:29 -07:00
Aminejv
d62f4fdb11 feat(System): update button borders radius to 12px and exported H5 from system 2021-09-17 14:44:29 -07:00
Aminejv
624783eca3 feat(upload): added initial state for fileLoading 2021-09-17 14:44:29 -07:00
Aminejv
ecede8d196 feat(Table): use contentstyle prop to adjust topRows style 2021-09-17 14:44:29 -07:00
Aminejv
26adac01c3 feat(ApplicationHeader): add upload meter 2021-09-17 14:44:29 -07:00
Aminejv
25d5bf9349 feat(DataMeter): use translate instead of width to show progress 2021-09-17 14:44:29 -07:00
Aminejv
de0006802c feat(svg): add List icon 2021-09-17 14:44:29 -07:00
Aminejv
9c8ea2cea8 feat(theme): add bgWhite color 2021-09-17 14:44:29 -07:00
Aminejv
856d5cb69c feat(UploadSummary): update to new styles 2021-09-17 14:44:29 -07:00
Martina
a26630edb5 updated v2 upload docs to use v2 endpoint instead of v1 2021-09-15 15:21:29 -07:00
Martina
d0341d2486 added shovel decorators to messages 2021-09-15 15:20:37 -07:00
Martina
9a836d3bdf hot fix for undefined id and unused file stuff in sceneprofile 2021-09-15 11:20:17 -07:00
martinalong
c7a06dd70d
Merge pull request #941 from filecoin-project/@martinalong/extension-endpoints
@martinalong/extension endpoints
2021-09-14 16:02:28 -07:00
Martina
fe8b2ce013 edited to remove serializers sanitize 2021-09-14 16:01:49 -07:00
Martina
8be6c257b4 add get api key and check link extension endpoints 2021-09-14 16:00:55 -07:00
martinalong
d29d770cd7
Merge pull request #938 from filecoin-project/@martinalong/flattening-migration
@martinalong/flattening migration
2021-09-13 13:09:06 -07:00
Martina
d99e5d7d28 stylistic changes and fixes, as well as resolving bugs 2021-09-13 12:47:24 -07:00
Martina
ef725d8040 added max length for body and extended database length for body & edited migration script 2021-09-13 12:47:23 -07:00
Martina
d0d0d356c9 added error messaging & extra privacy recalc when add to slate & conversions between version structures 2021-09-13 12:47:23 -07:00
Martina
18396439ef converted user.hidePrivacyAlert -> user.onboarding.hidePrivacyAlert 2021-09-13 12:47:23 -07:00
Martina
05b12828ef converted api endpoints to new data structure 2021-09-13 12:47:23 -07:00
Martina
3b7a0b89f5 edits to cover image flattening script 2021-09-13 12:47:23 -07:00
Martina
3e025c679d added cover image flattening 2021-09-13 12:47:23 -07:00
Martina
ee28db9142 removed serializers except sanitizeUser and updated properties lists in serializer 2021-09-13 12:47:23 -07:00