Skip to content

iOS: the crate shows artist photos, and names fit - #12

Merged
tsvb merged 1 commit into
mainfrom
crate-photos
Nov 16, 2026
Merged

tsvb merged 1 commit into
mainfrom
crate-photos

Conversation

@tsvb

@tsvb tsvb commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Home's crate tiles now show each artist's photo instead of initials, and long names wrap instead of truncating.

  • Photos: the v1 catalog has a real 800×800 photo for every artist (avatarImage.url; sampled six, including zero-show artists, all distinct photos). It uses the same artist IDs as the legacy list, and /artists?ids= fetches the crate's nine in one request. Catalog.artistAvatars parses it (pure, unit-tested). A failure or a missing photo keeps the monogram. Skipped on -UITEST runs, whose stub IDs are fake.
  • Tile: a circular photo (Apple Music's shape for an artist, distinct from the square show covers above it) with the name below in up to three lines, shrinking to 85% before truncating. That shows full names for about 98% of the catalog. Two lines are always reserved so a row lines up.
  • iOS only; the Mac crate is unchanged.

Verified: unit tests pass, including the new CatalogArtistAvatarsTests; both schemes build warning-free; tile layout checked in the iPhone 17 Pro simulator (monogram fallback); installed on the real Duo.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VriHZgxEZZHunPFyTvTmjt

Tim didn't like initials on the crate tiles, or names cut off. The v1
catalog carries a real 800x800 photo for every artist (avatarImage.url;
sampled six, zero-show artists included — all distinct photos), keyed by
the same ids as the legacy artist list, and /artists?ids= fetches the
crate's nine in one request. Catalog.artistAvatars parses it (pure,
tested); Home fetches after the sample lands; a failure or a missing
photo keeps the monogram. Skipped on -UITEST (fake ids).

The tile is now a circular photo (Apple Music's artist shape, apart
from the square show covers above it) with the name below: up to three
lines, shrinking to 85% before truncating — full names for ~98% of the
catalog — two lines always reserved, tiles stretched to their row.
iOS only; the Mac crate is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VriHZgxEZZHunPFyTvTmjt
@tsvb
tsvb merged commit adf3d9e into main Nov 16, 2026
2 checks passed
@tsvb
tsvb deleted the crate-photos branch November 16, 2026 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant