fix: validate image order and alt text updates
Quality / test (push) Canceled after 0s

This commit is contained in:
2026-09-11 00:18:11 -04:00
parent 0e81fc4022
commit cce395baf6
11 changed files with 169 additions and 14 deletions
+8
View File
@@ -129,3 +129,11 @@ contiguous zero-based positions, resolving tied legacy/upload positions, within
one PostgreSQL transaction. Any failure rolls back all changes. Concurrent moves
within one item serialize; primary selection and image metadata are unchanged.
Boundary moves are no-ops. No database migration is required.
## Image update validation
Alt-text edits use the same trimmed 1,000-character limit as image creation.
Explicit empty text or null may clear it; missing fields are invalid. The editor
shows the limit, prevents typing past it, and flags oversized pre-existing drafts
until corrected. Legacy absolute sort-order updates require a non-negative
PostgreSQL integer; ordinary Move controls continue using the atomic move API.