Skip to content

iOS: artist photos on the Artists tab - #13

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

tsvb merged 1 commit into
mainfrom
artist-list-photos

Conversation

@tsvb

@tsvb tsvb commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Each row of the Artists list now leads with the artist's photo in a 40pt circle, matching Home's crate.

  • Fetching: the list needs every artist's photo, so the v1 /artists list is fetched 100 at a time (its cap; 718 artists means 8 requests). This happens once per session, after the names are on screen, through the existing token bucket. The result is cached on AppModel next to the artist list and cleared on logout. An empty result isn't cached, so the next open retries. Home's crate reads from that cache once it exists.
  • Paging stop rule (Catalog.nextArtistPageOffset, pure and tested): stop on a short page, when the reported total is reached, or at a 20-page cap that guards against a bad total.
  • ArtistPortrait moves into Theme/Components, shared.
  • iOS only; the Mac sidebar list is unchanged.

Verified: unit tests pass, including the new CatalogArtistPagingTests; both schemes build warning-free; installed on the real Duo.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VriHZgxEZZHunPFyTvTmjt

Each row of the Artists list now leads with the artist's photo in a
40pt circle, as on Home's crate. The list needs every artist's photo,
so the v1 /artists list is walked a page at a time (100 is its cap;
718 artists = 8 requests) once per session, after the names are on
screen, and cached on AppModel beside the artist list (cleared on
logout; an empty walk isn't cached, so it retries). Home's crate reads
from that cache once it exists. The paging stop rule is pure and
tested (short page, total reached, a 20-page cap against a bad total).

ArtistPortrait moves out of HomeView into Theme/Components, shared.
iOS only; the Mac sidebar list is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VriHZgxEZZHunPFyTvTmjt
@tsvb
tsvb merged commit c4bc708 into main Nov 16, 2026
2 checks passed
@tsvb
tsvb deleted the artist-list-photos branch November 16, 2026 15:40
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