🚀 [Feature] Add Search Results Page
Created by: Tirokk
Authored by alina-beck
🚀 Feature
Users should see search results on a separate search results page.
User Problem
At the moment users only get very limited results in a search results dropdown. Viewing the results on a separate page would give a better overview and allow for a larger number of results.
Implementation
- There should be a separate route for search results.
- All search results for each data type (
posts
,users
,hashtags
) should be fetched when the user confirms their input by hittingreturn
or clicking the🔍
button. - The search term should be displayed on top of the page (we need a design for that).
- The posts on the page should look similar to the ones on the index page.
- We need a design + component for
users
. - We need a design + component for
hashtags
(they could maybe be grouped on one card?). - Users should be able to clear the search (and get back to the index page?), e.g. by clicking a
x
button next to the search term.
Design & Layout
Missing! :(
Validation
- users visiting the search page
Additional context
This is Step 4 in our search implementation – see #2146. Step 1 is adding users to the list of search results: #1463 (closed). Step 2 is limiting the number of search results to 15: #2142 (closed). Step 3 is adding hashtags to the search results: #2143 (closed).