Skip to content
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

fix(ui): remove stale thumbnails in bulkUpload after partial success #10651

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akhrarovsaid
Copy link
Contributor

@akhrarovsaid akhrarovsaid commented Jan 17, 2025

What?

This PR fixes an issue in the BulkUpload component (namely the FormsManager), where partial successes on saving images causes subsequent images to show a stale thumbnail of the previous image.

Why?

To properly expel successful image thumbnails after their thumbnails are no longer relevant to the workflow.

How?

By removing those images from the thumbnails references in FormsManager.

Fixes #10650

Before:
Editing---Post-before--Payload.webm

After:
Editing---Post-after--Payload.webm

Notes:

  • Noticed an issue with the forms in BulkUpload where if an image has validation errors, say for example an alt field was left empty, then you type really quickly and hit save before the validation error in the ui disappears, that the image will in fact upload but the form will still assume there is an error. This means one could continuously upload the same image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BulkUpload FormsManager references stale thumbnails after partial success
1 participant