Skip to content

Fix carousel no-peek snapping and playlist missing state#669

Merged
theovilardo merged 2 commits intomasterfrom
codex/fix-player-ui-album-art-carousel-bugs
Dec 29, 2025
Merged

Fix carousel no-peek snapping and playlist missing state#669
theovilardo merged 2 commits intomasterfrom
codex/fix-player-ui-album-art-carousel-bugs

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

Summary

  • make the album carousel use the no-peek style by default and ensure it snaps cleanly to pages when that style is active
  • improve playlist detail loading flow to avoid false "not found" states and localize the missing playlist message

Testing

  • not run (not requested)

Codex Task

Copy link
Copy Markdown

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

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.

ℹ️ 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 287 to 292
Log.e("PlaylistVM", "Error loading playlist details for id $playlistId", e)
_uiState.update {
it.copy(
isLoading = false
isLoading = false,
playlistNotFound = false
)
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 Failure cases leave playlist detail on infinite spinner

When loadPlaylistDetails throws, the catch block clears isLoading and explicitly resets playlistNotFound to false without providing any fallback playlist data. In the screen logic this leaves currentPlaylist null while playlistNotFound is false, so the UI falls into the currentPlaylist == null branch that shows a CircularProgressIndicator indefinitely even though loading has finished. Any API or IO error will therefore strand users on a permanent spinner instead of surfacing the missing/error state.

Useful? React with 👍 / 👎.

Removes an unnecessary import of `kotlinx.coroutines.flow.snapshotFlow` from `RoundedParallaxCarousell.kt`.
@theovilardo theovilardo merged commit 250ba78 into master Dec 29, 2025
@lostf1sh lostf1sh deleted the codex/fix-player-ui-album-art-carousel-bugs branch January 16, 2026 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant