Repository navigation
Keep curator alt text on product images when syncing - #7
Merged
Merged
Conversation
The sync set every product image's alt to the Printify title, so alt text a curator wrote in Payload was lost at the next sync. Now an image's alt is filled with the title only when it is empty, on first import and on later syncs. Images are matched by URL. Title import is unchanged. Tested: unit tests (new image, curator alt kept, emptied alt refilled) and the same flow against an in-memory MongoDB replica set. Not tested: a live Printify account, or a store with a custom images field. Co-Authored-By: Michael Gilardi <11632652+mgilardi@users.noreply.github.com> Co-Authored-By: Garfunkel Botsworth <357926774+garfunkelbot@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mgilardi
added a commit
that referenced
this pull request
Nov 20, 2026
Syncing keeps alt text written in Payload on product images (PR #7). Not tested against a live Printify shop. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Captive Origins task: K number not given in the brief (curators lose alt text at each sync). Decision: D5001 (contribute by co/ branch PR).
Problem. Each sync set every product image's alt to the Printify title, so an alt a curator wrote in the Payload admin was lost at the next sync.
Change. An image's alt is filled with the product title only when it is empty, on first import and on later syncs. Images are matched by URL. Titles are imported exactly as before. No new field, no version bump.
Tested. Unit tests: new image gets the title, curator alt survives a resync (also when the title changes), emptied alt is refilled. The same flow on an in-memory MongoDB. Full suite (78 tests), typecheck and
scripts/leak-check.shpass. The repo has no lint script.Not tested. A live Printify account. A store whose
imagesrows differ from the plugin's own. If Printify changes an image's URL, that image gets the title again.CHANGELOG entry is under Unreleased.
🤖 Generated with Claude Code