Skip to content

[Frontend] Build global search and discovery page #294

@Kaylahray

Description

@Kaylahray

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

  • Users can search posts by keyword from a dedicated page.
  • Users can filter search results by giveaway and request type.
  • No-results state is shown when nothing matches.

Submission Guidelines

  • Branch: feat/search-discovery-page
  • Depends on: GET /api/posts query filtering
  • PR: feat(frontend): add global search and discovery surface

Metadata

Metadata

Assignees

No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions