[Consumer UI Refresh] Implement the Search view
See original GitHub issueIf you haven’t already, check out our contributing guidelines for onboarding!
We need to replace the ChatSwitcherView
entirely with a “Search page” which is an even simpler version of the “New Chat” page. There is a method that should already calculate the correct options to display called OptionsListUtils.getSearchOptions()
. The difference here between the “New Chat” page will be that:
- No headers will be shown
- No personalDetails will be shown
- No headers will be shown for the sections
- Users can not be invited via this flow
- Chats with multiple participants should be shown
Deliverables:
- Implement the Search page and replace the
ChatSwitcherView
in theSidebar
. - The
ChatSwitcherView
and anything related to it (that is no longer used) must be deleted from the codebase.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Implementing Search View in Android - Section.io
This tutorial will take the reader through creating and implementing search views in Android. A SearchView is an Android widget that ...
Read more >Android SearchView Example Tutorial using DataBinding
In this tutorial we'll use SearchView.OnQueryTextListener and Filterable interfaces. The Filterable interface filters the queried text over a ...
Read more >SAP CRM activity search refreshed page.
When I search in activity and select one of it. If i make any change and go back to the search page i...
Read more >SearchView - Android Developers
A widget that provides a user interface for the user to enter a search query and submit a request to a search provider....
Read more >Configuring search in Next Experience
Administrators can customize Next Experience search settings. ... Use the client GlideList API in the Workspace Experience UI.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ohhhhh ok! That took me a while to figure out. Needed to stop and understand the
getOptions
function better.Added a new entry in the object prop of the
getOptions
function, calledshowEmptyRecentReports
, defaulted it to false. Set to true in thegetSearchOptions
call.PR coming soon.
I thought it would be more stuff, but it’s extremely simple. I just needed to change:
to
on the
createOption
function.Alright I think I got all information I needed, going to finish testing on the platforms and create the PR. We can discuss better with the code in hands.
Proposal
SearchView
component which looks a lot likeNewChatPage
. It uses theOptionsListUtils.getSearchOptions
function to fetch bothpersonalDetails
andrecentReports
.ChatSwitcherView
, and delete everything related to it from the code.recentReport
, or the email if itpersonalDetail
.OptionRow
’shideAdditionalOptionStates
prop in two:hideAdditionalOptionStates
andforceTextUnreadStyle
.The
forceTextUnreadStyle
will be used onNewChatPage
andNewGroupPage
.