Skip to content

Atlas-fallback cards render with fixed idle state instead of cycleStates #588

Description

@Railly

Follow-up from #587 review.

When a card's preview 404s and PetSprite swaps to the atlas fallback, the card renders with a fixed idle state. A card that never had a preview URL renders the atlas with cycleStates (visually diverse hashed states).

Cause: the caller decides cycleStates={!previewSrc} before knowing whether the preview will fail (src/components/pets/pet-gallery.tsx:872), and the internal fallback in PetSprite does not re-derive it.

Cosmetic only: both variants show a visible card. Possible fix: have PetSprite flip cycleStates on when useFallback is true, matching the no-preview path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions