Commit graph

9 commits

Author SHA1 Message Date
Mikael Finstad
24fd4158a9
Companion stream upload unknown size files (#5489)
* stream upload unknown size files

behind a new option streamingUploadSizeless
COMPANION_STREAMING_UPLOAD_SIZELESS
for tus

* allow for all upload protocols

seems to be working
closes #5305

* refactor

and fix bug where progress was not always emitted

* fix type

* fix progress throttling

only do it on total progress

* Improve progress in UI

- only show progress percent and total bytes for files that we know the size of. (but all files will still be included in number of files)
- use `null` as an unknown value for progress and ETA, allowing us to remove ETA from UI when unknown
- `percentage` make use of `undefined` when progress is not yet known - don't show percentage in UI when unknown
- add a new state field `progress` that's the same as `totalProgress` but can also be `null`

* fix build error

* format

* fix progress when upload complete

* use execa for companion load balancer

if not, then it leaves zombie companion instances running in the background when e2e stops
have to be manually killed before running e2e again

* update docs and tests for new state.progress

* revert progress/totalProgress

* improve doc

* remove option streamingUploadSizeless

we agreed that this can be considered not a breaking change

* change progress the to "of unknown"

* revert

* remove companion doc

* add e2e test
2024-12-07 10:30:00 +08:00
Evgenia Karunus
18cd1db114
Dashboard - convert some files to typescript (#5359)
* FileProgress.ts - convert to typescript

* Buttons.tsx - convert to typescript

Buttons.tsx - convert to typescript (partial)

Buttons.tsx - convert to typescript (partial)

Buttons.tsx - convert to typescript

* everywhere - remove `ComponentChild`

* FileItem.tsx - convert to typescript

* FileList.jsx - fix the comments, they got a bit shuffled some time ago

* FileList.tsx - convert to typscript

* Dashboard.tsx - add back missing props

* FileInfo.tsx - convert to typescript

FileInfo.tsx - convert to typescript (partial)

FileInfo.tsx - convert to typescript

* everywhere - remove excessive props
2024-07-24 06:12:45 +05:00
Antoine du Hamel
b9bd7a5b19
@uppy/core: resolve some (breaking) TODOs (#4824) 2024-05-21 16:44:34 +02:00
Mikael Finstad
448e667fbd
fix various type issues (#4958)
neglected in #4911:

- bytesTotal can be null (also handle that bug in runtime)
- progress is not a property on the progress object
- use `satisfies` instead of `as`
- add todo about broken `throttle` implementation
- in emitSocketProgress, progressData should not have the FileProgress type, as it is a completely different type (it comes from companion)
2024-02-28 16:55:41 +08:00
Mikael Finstad
6b4f5b68f7
@uppy/compressor: migrate to TS (#4907)
* refactor compressor to ts

* rename Options

* export opts
2024-02-12 23:10:49 +08:00
Merlijn Vos
c51032c9d1
@uppy/xhr-upload: migrate to TS (#4892) 2024-01-29 10:12:26 +01:00
Antoine du Hamel
f76d76bafd
@uppy/utils: improve preprocess and postprocess types (#4841) 2023-12-28 17:03:15 +01:00
Murderlon
c48aa82a8a
@uppy/core: refactor to TS
Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-12-14 19:39:43 +01:00
Antoine du Hamel
51ecc66e64
@uppy/utils: refactor to TS (#4699)
Co-authored-by: Mikael Finstad <finstaden@gmail.com>
Co-authored-by: Nick Rutten <2504906+nickrttn@users.noreply.github.com>
Co-authored-by: Murderlon <merlijn@soverin.net>
Co-authored-by: Artur Paikin <artur@arturpaikin.com>
2023-11-06 15:01:50 +01:00