We intend to modify the search functionality in the new MFE such that:
All searches are initiated from the search bar located next to the Add Post button.
Search button searches:
In post title and content when
All Posts
andMy Posts
tab is selected.In topics when
Topcis
tab is selected.In usernames when
Learners
tab is selected.
Figma mockups: https://www.figma.com/file/LVFnO9oRHYiamoicZuXDAC/Discussion-page?node-id=1604%3A1338
Searching content
The following behaviour is illustrated for when All Posts
and My Posts
tab is selected.
Action | Mockup |
---|---|
Default view of | |
| |
| |
| |
All filtering/sorting in filter bar will be done on frontend. This is supported by legacy as well. | Legacy view: |
Warping long search strings. |
Searching topics
The following behaviour is illustrated for when Topics
tab is selected.
Actions | Mockup |
---|---|
| |
| |
Will we search 3rd level of hierarchy? How will those results be rendered? |
Searching users
The following behaviour is illustrated for when Learners
tab is selected.
Actions | Mockup |
---|---|
Search bar will still search learners even if a learner is already selected. |