Skip to content

feat: Add search bar with debounced filtering (Closes #823)#1258

Open
sepulchralvoid666 wants to merge 1 commit into
SolFoundry:mainfrom
sepulchralvoid666:feat/bounty-823-search-bar
Open

feat: Add search bar with debounced filtering (Closes #823)#1258
sepulchralvoid666 wants to merge 1 commit into
SolFoundry:mainfrom
sepulchralvoid666:feat/bounty-823-search-bar

Conversation

@sepulchralvoid666
Copy link
Copy Markdown

What this does

Adds a search bar to the BountyGrid component with debounced input filtering.

Changes

  • Search bar UI: Full-width input with Search icon, X clear button, placeholder text, emerald focus ring
  • Debounced input: 300ms debounce avoids excessive API calls while typing
  • Server-side filtering: Passes search param to listBounties API call
  • Client-side fallback: Filters locally on title, description, and skills fields if backend does not support the search param
  • Updated BountiesListParams: Added search?: string to the API params interface
  • Empty state: Shows contextual message when search returns no results ("No results for X")

How to test

  1. Navigate to the bounties page
  2. Type in the search bar — results filter after 300ms
  3. Click X to clear search
  4. Verify empty state message shows search term
  5. Verify API calls include search query parameter

Closes #823

Wallet: 2JHa4QQWNV7AGSGsVeX1cwjZtFcmTTomb1TrJmQthoh3

- New search input with Search icon and X clear button
- 300ms debounce on search input to avoid excessive API calls
- Passes search param to listBounties API (server-side filtering)
- Client-side fallback filter on title, description, and skills
- Updated empty state message for no search results
- Added search field to BountiesListParams interface

Closes SolFoundry#823

Wallet: 2JHa4QQWNV7AGSGsVeX1cwjZtFcmTTomb1TrJmQthoh3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T1: Add Search Bar to Bounties Page

1 participant