Skip to content

Implement a dedicated artist picker bottom sheet and enhance artist i…#1613

Merged
theovilardo merged 1 commit into
masterfrom
impr/artist-choose-bottomsheet
Apr 1, 2026
Merged

Implement a dedicated artist picker bottom sheet and enhance artist i…#1613
theovilardo merged 1 commit into
masterfrom
impr/artist-choose-bottomsheet

Conversation

@theovilardo

Copy link
Copy Markdown
Collaborator

…mage prefetching

  • MusicRepository:
    • Implement missingImageCandidates helper to identify artists needing image metadata.
    • Update getArtistsForSong to trigger asynchronous image prefetching for artists associated with the current track.
    • Refactor getArtists to use the new prefetch candidate logic.
  • PlayerArtistPickerBottomSheet:
    • Create a new component to display a rich list of artists for the current song.
    • Feature distinct visual styles for the primary artist versus featured/shortcut artists.
    • Include artist avatars with placeholder support and smooth corner shapes.
  • FullPlayerContent:
    • Replace the basic ModalBottomSheet with the new PlayerArtistPickerBottomSheet.
    • Update seek bar time labels with semi-bold font weight for improved legibility.
  • Resources:
    • Add string resources for artist picker titles, labels, and count formatting (English and Spanish).

…mage prefetching

- **MusicRepository**:
    - Implement `missingImageCandidates` helper to identify artists needing image metadata.
    - Update `getArtistsForSong` to trigger asynchronous image prefetching for artists associated with the current track.
    - Refactor `getArtists` to use the new prefetch candidate logic.
- **PlayerArtistPickerBottomSheet**:
    - Create a new component to display a rich list of artists for the current song.
    - Feature distinct visual styles for the primary artist versus featured/shortcut artists.
    - Include artist avatars with placeholder support and smooth corner shapes.
- **FullPlayerContent**:
    - Replace the basic `ModalBottomSheet` with the new `PlayerArtistPickerBottomSheet`.
    - Update seek bar time labels with semi-bold font weight for improved legibility.
- **Resources**:
    - Add string resources for artist picker titles, labels, and count formatting (English and Spanish).
@theovilardo theovilardo merged commit d0980f9 into master Apr 1, 2026
3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39a27b013a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +313 to +315
currentSongArtistPrefetchJob?.cancel()
currentSongArtistPrefetchJob = repositoryScope.launch {
artistImageRepository.prefetchArtistImages(missingImages)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid canceling song-artist prefetch on each Room emission

Canceling and recreating currentSongArtistPrefetchJob for every getArtistsForSong emission causes in-flight artist fetches to be canceled as soon as one artist image update re-triggers the query; in this codebase, those cancellations are handled by ArtistImageRepository.fetchAndCacheArtistImage's broad catch (Exception) path (which records the artist in failedFetches), so remaining artists can be permanently skipped for the session. This is reproducible for songs with multiple missing artist images where the first successful DB update arrives before the batch completes.

Useful? React with 👍 / 👎.

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