Skip to content

Explore -> Navigate With Genre#658

Merged
imashnake0 merged 6 commits intomainfrom
explore-genre-merge
Apr 30, 2026
Merged

Explore -> Navigate With Genre#658
imashnake0 merged 6 commits intomainfrom
explore-genre-merge

Conversation

@imashnake0
Copy link
Copy Markdown
Owner

@imashnake0 imashnake0 commented Apr 29, 2026

Navigate from media pages with genre arg to explore

Summary of changes:

  1. Reuse chip flow row for media page genres.
  2. Update included genre nav arg.
  3. Navigate to explore screen.
  4. Update colors, etc.

Tested changes:

yer

@imashnake0 imashnake0 self-assigned this Apr 29, 2026
@imashnake0 imashnake0 added the enhancement Enhancement label Apr 29, 2026
}

@Composable
fun ChipFlowRow(
private val allGenres = savedStateHandle.getMutableStateFlow<Set<String>?>(Constants.ALL_FILTERS + Constants.GENRES, null)
private val includedGenres = savedStateHandle.getMutableStateFlow<Set<String>>(Constants.INCLUDED_FILTERS + Constants.GENRES, emptySet())
private val excludedGenres = savedStateHandle.getMutableStateFlow<Set<String>>(Constants.EXCLUDED_FILTERS + Constants.GENRES, emptySet())
private val includedGenres = savedStateHandle.getMutableStateFlow(Constants.INCLUDED_FILTERS + Constants.GENRES, setOfNotNull(navArgs.genre))
private val includedGenres = savedStateHandle.getMutableStateFlow<Set<String>>(Constants.INCLUDED_FILTERS + Constants.GENRES, emptySet())
private val excludedGenres = savedStateHandle.getMutableStateFlow<Set<String>>(Constants.EXCLUDED_FILTERS + Constants.GENRES, emptySet())
private val includedGenres = savedStateHandle.getMutableStateFlow(Constants.INCLUDED_FILTERS + Constants.GENRES, setOfNotNull(navArgs.genre))
private val excludedGenres = savedStateHandle.getMutableStateFlow(Constants.EXCLUDED_FILTERS + Constants.GENRES, emptySet<String>())
.combine(isDescending, ::Pair)
.map { (sort, isDescending) -> Media.Sort.pollute(sort, isDescending) }

var shouldDebounce = false
page != 0
) 0L else 500L
if (shouldDebounce) {
500L
val isDescending: Boolean? = null,
val season: String? = null,
val year: Int? = null,
val genre: String? = null,
@imashnake0 imashnake0 marked this pull request as ready for review April 30, 2026 20:10
@imashnake0
Copy link
Copy Markdown
Owner Author

image

@imashnake0 imashnake0 merged commit da5139d into main Apr 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants