Open dogezen opened 1 year ago
- here are the fields you should try to find a match for:
- users
- name, email, and any field on the profile
The server doesn't currently have the capability to search by anything other than cohortId
, firstName
and id
, so how should we move forward with this?
We would like to offer teachers and students the ability to use the search bar in the Header to search for:
Requirements
As a user of the platform, I should be able to type some text in the search bar and on pressing enter on the keyboard OR clicking the "Search" button, I should be taken to the search results page
On the search results page, I should see the following:
How searching should work:
aaa
andbbb
and keep results that matchaaa
only,bbb
only or bothaaa
andbbb
"and"
, I should match for a student namedAndy
Andy
orandy
should find a student whose first name may beandy
orAndy
the search results page should have a path of
/search?query=....
wherequery
is the the text the user has entered; you need to figure out how to get thequery=
bit using react router when the component loads, so you can perform the searchthe search page should present a
Searching...
placeholder while we aggregate all resultsthe search page can be broken down into sections, grouping all the matched students; matched teachers and matched cohorts in different sections
a section should state "No matches found" if there are no results for that section
Each search result should have buttons for the teacher or student to perform the following actions, quickly
Wireframe
This wireframe is a concept and may not capture all the requirements above, please amend as needed.