Commit Graph

2842 Commits

Author SHA1 Message Date
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
Martina
ec03aa5c3d simplified database methods 2021-09-13 12:47:23 -07:00
Martina
cee2af3c75 edited data methods to fit new data structure 2021-09-13 12:47:23 -07:00
Martina
c8b867bfa7 converted user.data.photo to user.photo 2021-09-13 12:47:23 -07:00
Martina
e4e4f67293 removed remaining mentions of user.data, slate.data, file.data 2021-09-13 12:47:23 -07:00
Martina
c53f7a42af comment out tagging 2021-09-13 12:47:23 -07:00
Martina
c1d4aec9cb converted file.link. to top level fields 2021-09-13 12:47:23 -07:00
Martina
7081b19f7f converted slate.data.preview -> slate.preview 2021-09-13 12:44:49 -07:00
Martina
4cbd6cab6f converted file.data.coverImage -> file.coverImage 2021-09-13 12:44:49 -07:00
Martina
181ea4fa21 converted file.data.author -> file.author 2021-09-13 12:43:26 -07:00
Martina
8fd80c89ae converted file.data.source -> file.source 2021-09-13 12:43:26 -07:00
Martina
a75ef7129b converted file.data.blurhash -> file.blurhash 2021-09-13 12:43:26 -07:00
Martina
44820c388a converted file.data.type -> file.type 2021-09-13 12:40:51 -07:00
Martina
e0a044fcac converted file.data.size to file.size 2021-09-13 12:40:51 -07:00