Description
The app currently exposes post filtering through query params, but there is no dedicated search and discovery surface for finding posts, creators, or trending help requests.
User Story
As a visitor,
I want to search and discover relevant posts and people,
so that I can find giveaways, help requests, and community members quickly.
Requirements and Context
- Files:
app/page.tsx, app/feed/page.tsx, app/components/navbar.tsx, app/app/api/posts/route.ts
- Add a dedicated search page with text search, category filters, type filters, and sort controls
- Reuse the existing
q, type, sort, and filter query params from the posts API
- Include empty, loading, and no-results states
Suggested Implementation
// IN THE SEARCH PAGE
// 1. Read query params for q, type, sort, and filter.
// 2. Fetch /api/posts with those params.
// 3. Fetch /api/leaderboard for people discovery.
// 4. Render cards for posts, users, and trending topics.
Acceptance Criteria
Submission Guidelines
- Branch:
feat/search-discovery-page
- Depends on:
GET /api/posts query filtering
- PR:
feat(frontend): add global search and discovery surface
Description
The app currently exposes post filtering through query params, but there is no dedicated search and discovery surface for finding posts, creators, or trending help requests.
User Story
As a visitor,
I want to search and discover relevant posts and people,
so that I can find giveaways, help requests, and community members quickly.
Requirements and Context
app/page.tsx,app/feed/page.tsx,app/components/navbar.tsx,app/app/api/posts/route.tsq,type,sort, andfilterquery params from the posts APISuggested Implementation
Acceptance Criteria
Submission Guidelines
feat/search-discovery-pageGET /api/postsquery filteringfeat(frontend): add global search and discovery surface