-
Notifications
You must be signed in to change notification settings - Fork 394
[ui-storagebrowser] add progressbar in file upload #4059
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, see the comments and take an additional look at the BEM naming.
desktop/core/src/desktop/js/reactComponents/FileUploadQueue/FileUploadQueue.test.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileUploadQueue/FileUploadQueue.tsx
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/reactComponents/FileUploadQueue/FileUploadQueue.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work to get this all working, but I find the code a bit hard to read.
E.g. "uploadChunkItem" is a function and "UploadChunkItem" is a type that has a uuid that can be used to identify multiple "InProgressChunks" called chunks but then the "UploadChunkItem" also has a "chunkIndex" and those together identify a unique "InProgressChunks" called "chunk".
Are these concepts clear and well defined, if so can we come up with better naming and spend a little time thinking about about to make it all more readable?
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
|
|
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
desktop/core/src/desktop/js/utils/hooks/useFileUpload/useChunkUpload.ts
Outdated
Show resolved
Hide resolved
|
|
What changes were proposed in this pull request?
How was this patch tested?
Please review Hue Contributing Guide before opening a pull request.