fix: preserve image manager state during action failures
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-10 17:57:28 -04:00
parent c5a07b2b5a
commit 72e9a79b67
9 changed files with 240 additions and 39 deletions
+11
View File
@@ -108,3 +108,14 @@ Public galleries must support:
- screen-reader-friendly state
Primary images power cards, search results, homepage previews, and social/share metadata.
## Admin error recovery
Keep the loaded gallery and alt-text drafts mounted during image actions and
refreshes. Show action failures separately from list-read failures. After every
action, including a failed multi-file upload or reorder, reload image metadata to
reconcile any partial success without replaying writes. If that refresh fails,
retain the last loaded gallery but disable mutations until an explicit reload
succeeds. Failed initial loads show a reload action instead of an empty manager.
Reload restores keyboard focus to the manager or the retry control. Pending
operations block conflicting writes and uploads, including drag-and-drop.