AfterClass-io / afterclass.io-v2

[alpha] https://new.afterclass.io
https://afterclass-io-v2-git-main-afterclass.vercel.app/
MIT License
6 stars 2 forks source link

feat(ui): search ui flow #152

Closed davidlhw closed 3 months ago

davidlhw commented 4 months ago

~blocked by #150, #151~

partially addresses #140, specifically the ui portion, without any search logic

changes

implementation

user flow

there are 2 ways to open the search modal:

  1. using Cdmk - press / key
  2. click on search input in sidebar

the typical user flow

  1. search modal opens
  2. enter search term
  3. press Enter OR click search button
  4. sees search result page
  5. scrolls if too many results
  6. select on filter to filter results (filter toggle is sticky)

the q search query is used to track search terms. navigating to /search?q=SEARCH_TERMS will also trigger a search

note: the No results found card is intentionally unimplemented as displaying that on the UI will depend on the search logic

note: functionality is intentionally skipping the mobile experience

preview

screenshot_20240610_125359

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
afterclass-io-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2024 3:10pm