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

Feature: recent search query #2

Merged
merged 3 commits into from
Sep 19, 2023
Merged

Feature: recent search query #2

merged 3 commits into from
Sep 19, 2023

Conversation

hyuwah
Copy link
Owner

@hyuwah hyuwah commented Sep 19, 2023

Summary

Add recent search query list when typing / activating the search bar. The list is in memory and only persist as long as the ViewModel exists.

Also fix missing MiniPlaybackControl UI component when we do search while media still playing

- render the mini playback control outside of search result component (Loading/List/Empty)
- the data reside in viewmodel, only persist as long as the viewmodel still in memory
- add search histories state
- add clear & remove recent search events
- trim the search query before adding it to search histories
@hyuwah hyuwah self-assigned this Sep 19, 2023
@hyuwah hyuwah merged commit d1da00a into master Sep 19, 2023
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