Skip to content

Enhance upload toast with progress, errors and cancel support#595

Merged
PanchoutNathan merged 4 commits into
mainfrom
feat/update-upload-toast
Apr 10, 2026
Merged

Enhance upload toast with progress, errors and cancel support#595
PanchoutNathan merged 4 commits into
mainfrom
feat/update-upload-toast

Conversation

@PanchoutNathan
Copy link
Copy Markdown
Contributor

@PanchoutNathan PanchoutNathan commented Mar 9, 2026

Summary

  • Make file uploads abortable at the driver layer
  • Enhance the upload toast to show real-time progress, error details, and a cancel button
  • Add ErrorIcon component and support numeric icon sizes
  • Rewrite upload e2e tests to cover the new toast behavior
Capture d’écran 2026-03-25 à 14 38 28

Test plan

  • Upload a file and verify the toast shows progress
  • Cancel an upload mid-way and confirm the abort works
  • Trigger an upload error and verify the toast displays the error
  • Run e2e tests: upload.spec.ts

@PanchoutNathan PanchoutNathan self-assigned this Mar 9, 2026
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch from 988cfa9 to dae37b8 Compare March 9, 2026 16:06
@suitenumerique suitenumerique deleted a comment from sonarqubecloud Bot Mar 9, 2026
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch from dae37b8 to 09b733a Compare March 9, 2026 16:21
@NathanVss
Copy link
Copy Markdown
Contributor

Please make sure to link the appropriate issue to this PR @PanchoutNathan so we can know which one to close

Copy link
Copy Markdown
Contributor

@NathanVss NathanVss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to add tests about the bugs I found 🪲

Comment thread src/frontend/apps/drive/src/features/ui/components/icon/Icon.tsx
Comment thread src/frontend/apps/drive/src/features/explorer/hooks/useUpload.tsx Outdated
Comment thread src/frontend/apps/drive/src/features/drivers/implementations/StandardDriver.ts Outdated
Comment thread src/frontend/apps/drive/src/features/explorer/hooks/useUpload.tsx Outdated
Comment thread src/frontend/apps/drive/src/features/explorer/hooks/useUpload.tsx
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch from 09b733a to a612352 Compare March 31, 2026 15:46
@PanchoutNathan PanchoutNathan requested a review from NathanVss April 1, 2026 07:04
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch from a612352 to b6b8f02 Compare April 1, 2026 07:06
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch 7 times, most recently from 3ddb185 to 4605478 Compare April 2, 2026 15:02
Refactor createFile to return { promise, abort } instead of a plain Promise,
enabling individual upload cancellation from the UI.
Add a reusable ErrorIcon SVG component and allow IconSvg to accept
a raw numeric size in addition to named IconSize values.
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch from 4605478 to e9cd811 Compare April 10, 2026 08:02
- Add per-file status tracking (uploading/done/error/cancelled)
- Show error details inline with tooltips for failed uploads
- Display overall progress percentage during upload
- Add cancel overlay on hover for individual files
- Add confirmation modal when cancelling all uploads
- Handle too-large files as inline errors instead of separate toasts
- Add translations for error messages and cancel modal (en/fr/nl)
Cover success, file-too-large errors, mixed uploads, cancel individual file,
cancel all via confirmation modal, toggle file list, and hover cancel overlay.
@PanchoutNathan PanchoutNathan force-pushed the feat/update-upload-toast branch from f41d21f to 8029d4f Compare April 10, 2026 08:29
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

@PanchoutNathan PanchoutNathan merged commit 8029d4f into main Apr 10, 2026
35 of 37 checks passed
@PanchoutNathan PanchoutNathan deleted the feat/update-upload-toast branch April 10, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants