Skip to content

Maryhipp/bulk upload #7123

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

Merged
merged 12 commits into from
Oct 16, 2024
Merged

Maryhipp/bulk upload #7123

merged 12 commits into from
Oct 16, 2024

Conversation

maryhipp
Copy link
Collaborator

@maryhipp maryhipp commented Oct 16, 2024

Summary

  • Add upload button to gallery that supports single and multi image upload
  • Update fullscreen dropzone to support multiple image upload
  • Use toast that doesn't close for multiple image upload so that the count correctly reflects how many images are being uploaded
  • Remove double add-to-board logic that was happening in upload image listener

Related Issues / Discussions

QA Instructions

Merge Plan

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

@github-actions github-actions bot added the frontend PRs that change frontend files label Oct 16, 2024
@maryhipp maryhipp marked this pull request as ready for review October 16, 2024 00:48
We can always iterate over `files`, no need for any conditional logic here.
- Hack around toast durations so it closes after last image uploads
- Improved error logging
- Enforce singleton nature of hook
Instead of providing a duration to the upload action, we close the toast imperatively in the `imageUploaded` listener using a timeout. 3s after the last upload toast, we close it.

This handles the case when we are uploading multiple images and don't want the toast to close til it's all finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants