Public: anyone can read this; the crew can change it.
Add, remove and reorder a launched listing's photos; the first one is the hero on the flyer and the email #27
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: the photographer's shots arrive after the listing is launched, and the agent needs to swap the hero photo before the flyer goes out, without launching the listing again.
Done looks like:
acceptPhotoinsrc/photos.ts), remove one, and make any photo the first, which is the hero.launchfollows (writePhoto/unwritePhotos). A failed upload leaves the listing's photos exactly as they were.listing.updateand emitslisting.changed. It clears the flyer's and the email's approval, because what they show changed. The other assets keep theirs.<img>point at it. Remove one, and its file is gone from FORGE_APP_DATA. A ninth photo is refused and nothing changes. Another user is refused.bun test,bun x tsc --noEmitandbun scripts/design-lint.tspass.Files: src/actions.ts, src/photos.ts, src/routes.ts, src/pages/listing.ts, src/listings.test.ts, README.md. Risks: deleting files outside the transaction must never delete a file another row still names. Check the photo name belongs to this listing before removing it (no path from user text). Suggested crew: a builder.