feat(gallery): surface sprite atlas versions - #658
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Member
Author
|
This PR addresses issue #600. Please DM me when operating on the DB and merging the PR if helpful, and we can coordinate the production rollout together. Thanks |
- declare spriteVersions on SearchFacets, which computeFacets already returns - widen the search row to the integer drizzle infers and narrow at the seam - default the atlas version for submissions and the missing-files fallback - drop the vestigial pendingSpriteVersionNumber, which EditPolicyInput never read
This was referenced Aug 8, 2026
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.
This PR adds persisted sprite atlas version support so Petdex can distinguish classic v1 pets from hatch v2 pets across submission, editing, search, Gallery, detail pages, and manifests.
What changed:
Notes for @Railly :
Before releasing this code, or as part of the release process, please run the DB migration so production has the new columns and index.
If the normal Drizzle migration flow is used, apply:
drizzle/0018_sprite_version_number.sql
If a manual/idempotent script is preferred, run:
bun --env-file .env.production scripts/apply-sprite-version-number.ts
After the migration, backfill existing pets from their stored pet.json files:
bun --env-file .env.production scripts/backfill-sprite-version-number.ts
Please make sure .env.production contains the real production DATABASE_URL before running these commands.
Backfill behavior:
Validation: