-
Notifications
You must be signed in to change notification settings - Fork 206
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
Implement feature that displays results according to search input text #574
Implement feature that displays results according to search input text #574
Conversation
1083c47
to
9e9edbb
Compare
Snapshot diff report
|
@@ -78,4 +118,10 @@ class SearchScreenViewModel @Inject constructor( | |||
}, | |||
) | |||
} | |||
|
|||
fun updateBookmark(timetableItem: TimetableItem) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's my preference but how about using onClickTimetableItemBookmark
to promote the best practice that notifying events to ViewModel.
Looks good. You say this is a work in progress though. |
@@ -58,7 +61,7 @@ fun TimetableListItem( | |||
.clickable { onClick(timetableItem) }, | |||
) { | |||
Row(verticalAlignment = Alignment.CenterVertically) { | |||
Row(modifier = Modifier.weight(1F)) { | |||
FlowRow(modifier = Modifier.weight(1F)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
bookmarkedTimetableItemIds: PersistentSet<TimetableItemId>, | ||
timetableItems: PersistentList<TimetableItem>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a very small point. As I mentioned here we would like to have UiState for each section. 🙏
https://github.com/DroidKaigi/conference-app-2023#section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Please fix the conflict!
Hi @chigichan24! Codes seem to be unformatted. To resolve this issue, please run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your code looks cool! 🆒
Thanks
Issue
Overview (Required)
In this PR, I focused on the below implementations.
The difference of TimetableListItem
On Figma, there're no UI guides for search results. Therefore, basically, I follow to TimetableList implementation. But I updated 1. Add hour information for each session item 2. Add a day label.
I can follow to designer's or maintainer's suggestion. Please feedback on my update.🙇♂️
Out of this PR scope
BookMarkList
,TimetableList
, andSearchList
.Links
Screenshot