Skip to content

feat: conditionally hide cloud storage filter in song picker#2015

Merged
theovilardo merged 1 commit into
masterfrom
impl/song-picker-sheet-cloud-filter-improvements
May 16, 2026
Merged

feat: conditionally hide cloud storage filter in song picker#2015
theovilardo merged 1 commit into
masterfrom
impl/song-picker-sheet-cloud-filter-improvements

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

Updates the SongPickerBottomSheet to dynamically hide storage filter tabs if no cloud-based songs are present in the library. When cloud content is unavailable, the UI replaces the filter row with a simplified confirmation floating action button.

  • Added getCloudSongCountFlow to MusicDao and MusicRepository to monitor cloud-sourced media.
  • Implemented hasCloudSongsFlow in PlayerViewModel to expose the presence of cloud content as a StateFlow.
  • Updated SongPickerBottomSheet to conditionally render the storage toggle and adjust layout padding based on cloud song availability.
  • Added a LaunchedEffect to reset the storage filter to OFFLINE if cloud content is missing.
  • Commented out the AI generation button in CreatePlaylistScreen.

Updates the `SongPickerBottomSheet` to dynamically hide storage filter tabs if no cloud-based songs are present in the library. When cloud content is unavailable, the UI replaces the filter row with a simplified confirmation floating action button.

- Added `getCloudSongCountFlow` to `MusicDao` and `MusicRepository` to monitor cloud-sourced media.
- Implemented `hasCloudSongsFlow` in `PlayerViewModel` to expose the presence of cloud content as a `StateFlow`.
- Updated `SongPickerBottomSheet` to conditionally render the storage toggle and adjust layout padding based on cloud song availability.
- Added a `LaunchedEffect` to reset the storage filter to `OFFLINE` if cloud content is missing.
- Commented out the AI generation button in `CreatePlaylistScreen`.
@theovilardo theovilardo merged commit 19d9da2 into master May 16, 2026
4 checks passed
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

// if (onGenerateClick != null) {
// androidx.compose.material3.FilledTonalButton(
// onClick = onGenerateClick,

P2 Badge Restore the AI generation entry point

When creating a playlist, CreatePlaylistDialog still passes a real onGenerateClick callback into this form, but this block is now commented out so no visible control invokes it. In the create flow, users can no longer launch the AI playlist generator; either keep the button or provide another entry point before removing this block.

ℹ️ 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".

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