Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add search functionality to Jetcaster #1298

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 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
3 checks passed
@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.

None yet

3 participants