🚀 [Feature] Filter search results by type
Created by: Tirokk
Authored by alina-beck Closed
🚀 Feature
blocked by #2144 (closed)!
Users should be able to filter search results by type (post
, user
or hashtag
).
User Problem
Having all search results displayed on a single page can be overwhelming and unnecessary when a user already knows they are interested in posts only.
Implementation
Similar to the search results page filter on facebook: with clickable tabs on top of the page.
- By default the
all
tab should be selected and display all types of results. - There should be tabs for
posts
,users
andhashtags
– by selecting one of them the displayed search results are limited to results of that type. - Fetched search results should be cached in the frontend to enable quick navigation between the tabs – and avoid re-fetching of the same data.
Design & Layout
Missing! The tabs
on the user profile could be an inspiration:
Additional context
This is Step 5 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). Step 4 is displaying a page with all search results: #2144 (closed).