Skip to content

Conversation

chikoski
Copy link
Contributor

This pull request adds search functionality for Jetcaster. More specifically, the following changes are applied:

  • Add methods implementing podcast search feature to PodcastDao and PodcastStore
  • Add the search screen to the TV app

@chikoski chikoski requested review from arriolac and kul3r4 March 28, 2024 04:41
@chikoski chikoski requested a review from a team as a code owner March 28, 2024 04:41
Copy link
Contributor

@arriolac arriolac left a comment

Choose a reason for hiding this comment

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

LGTM


@OptIn(ExperimentalCoroutinesApi::class)
private val searchResultFlow = searchConditionFlow.flatMapLatest {
podcastStore.searchPodcastByTitleAndCategories(it.keyword, it.selectedCategories)
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this will still trigger a search when the keyword is the empty string. Do we want that (i.e. still show results if there is no input)? Or should the empty case be handled another way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is an intended behavior to trigger the search with empty string. I expect that all podcasts belonging to the selected category show up when the empty string is input.

@chikoski chikoski merged commit e08a026 into android:jetcaster/all_form_factors Mar 29, 2024
@chikoski chikoski deleted the jetcaster/add-search-for-tv branch March 29, 2024 00:39
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.

3 participants