-
Notifications
You must be signed in to change notification settings - Fork 131
feat: per-file tracking for folder uploads in upload queue #3786
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
base: fix/upload-queue-fileId-identity
Are you sure you want to change the base?
Changes from all commits
c1c5b73
6e66ad7
ac3f655
59d2f76
ab6ea25
70fef8e
b725ca5
31b1669
f2132dd
d21f35a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -40,11 +40,28 @@ export const DumbUploadQueue = translate()(props => { | |
| ) | ||
| }) | ||
|
|
||
| const mapStateToProps = state => ({ | ||
| queue: getUploadQueue(state), | ||
| doneCount: getProcessed(state).length, | ||
| successCount: getSuccessful(state).length | ||
| }) | ||
| const mapStateToProps = state => { | ||
| const rawQueue = getUploadQueue(state) | ||
|
|
||
| // Replace file.name with relativePath for display when available | ||
| const queue = rawQueue.map(item => { | ||
| if (!item.relativePath) return item | ||
| return { | ||
| ...item, | ||
| file: { | ||
| name: item.relativePath, | ||
| type: item.file?.type, | ||
| size: item.file?.size | ||
| } | ||
| } | ||
| }) | ||
|
Comment on lines
+43
to
+57
|
||
|
|
||
| return { | ||
| queue, | ||
| doneCount: getProcessed(state).length, | ||
| successCount: getSuccessful(state).length | ||
| } | ||
| } | ||
| const mapDispatchToProps = dispatch => ({ | ||
| purgeQueue: () => dispatch(purgeUploadQueue()) | ||
| }) | ||
|
|
||
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.
This might break icon resolution since we pass a path instead of a file name
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.
Hmm interesting. I'll check that and add a test for that.