refactor: one cover fallback icon on Android, one paged-query type on the web
release / web (push) Successful in 1m19s
release / go (push) Successful in 1m45s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m56s
release / android (push) Successful in 4m34s
release / Build signed APK (push) Successful in 5m3s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Successful in 25s
release / Verify release artifacts (tag releases only) (push) Skipped

Ten Android covers wrote out the same muted icon for missing artwork;
they now call CoverFallbackIcon beside CoverTile, and ShelfPlaylistCards'
NoArtIcon wrapper is gone. AlbumDrillDown and AlphaLibrary each declared
the infinite-query shape they read; both now take PagedQuery<T> from
api/types. Folds the two small copies the M664 DRY close-out found (#8006).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 11:48:17 -05:00
co-authored by Claude Opus 5.5
parent db05d16800
commit 6996561cb1
14 changed files with 63 additions and 114 deletions
+18
View File
@@ -9,6 +9,24 @@ export type Page<T> = {
offset: number;
};
/**
* What a paged list's component reads from a TanStack infinite query of
* Pages: the loaded pages, the first page's state, the next page's state,
* and the two ways to ask again. Typed structurally so a page can pass its
* createInfiniteQuery result straight in.
*/
export type PagedQuery<T> = {
data?: { pages: Page<T>[] };
isPending: boolean;
isError: boolean;
error: unknown;
hasNextPage: boolean;
isFetchingNextPage: boolean;
isFetchNextPageError: boolean;
fetchNextPage: () => unknown;
refetch: () => unknown;
};
export type ArtistRef = {
id: string;
name: string;