forked from mirrors/VernissageWeb
Restore staged HDR add/replace/remove in the existing post editor #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Restore add/replace/remove HDR controls for images already attached to a post. Deferred feature on
michael; do not include in the current rollout fixes.Canonical shared contract and backend dependency: klafbang/VernissageServer#1 (section "Shared contract: atomic HDR edits v1"). This issue depends on the backend capability and staging/save guarantees there; it does not authorize unsafe direct attached HDR writes.
Implementation plan:
atomicAttachmentEdits === trueand newatomicHdrEdits === true. Missing/false retains today's explanation and disabled attached controls. Preserve existing unattached HDR behavior.POST /api/v1/post-access/statuses/{statusId}/attachments/{attachmentId}/hdr-stages, multipartfile, account/XSRF and a retained UUID-v4 upload key. Match the contract's strict file-size boundary. Keep binary/draft references until Save outcome is known; use local blob URLs for preview and release them appropriately. Cancelled file selection changes nothing; failed replacement preserves the previously selected/saved HDR and offers retry.StatusRequest.attachmentHdrEdits?: {id:string; stageId:string|null}[]. Omit unchanged entries; null explicitly removes HDR. Never add binary fields to full metadata snapshots. Removing HDR is a local draft action until Save. Wait for staging to finish before saving; retain the same upload key/file on uncertain upload outcomes.Verification: