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: search api integration with postgres fulltext search #161

Closed davidlhw closed 3 months ago

davidlhw commented 3 months ago

closes #140

Context

previously, there was effort made to introduce search UI at #152. this PR completes that line of work by introducing full searching and filtering search results functionality

Changes

Implementation Details

Search

[!IMPORTANT] note that the quick and dirty sql query used is meant to be temporary, until we can find a sensible search solution with #72

Filter

[!WARNING] the review count & course/professor count statistics icon is currently using hard coded values (11 & 31) this will be addressed as a separate task at #162

How to Test

  1. head to preview link
  2. click / to open search bar
  3. search anything, search "L" for example
  4. should see results a. if no results, should see a message "no results found"
  5. filtering should work

Preview / Screenshots

screenshot_20240612_112047

Checklist

vercel[bot] commented 3 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 15, 2024 5:35pm