Skip to content

feat: Search Bar for Bounties Page (Bounty #823)#912

Open
dinnar1407-code wants to merge 1 commit intoSolFoundry:mainfrom
dinnar1407-code:bounty/search-bar
Open

feat: Search Bar for Bounties Page (Bounty #823)#912
dinnar1407-code wants to merge 1 commit intoSolFoundry:mainfrom
dinnar1407-code:bounty/search-bar

Conversation

@dinnar1407-code
Copy link
Copy Markdown

Summary

Reusable BountySearchBar component for the /bounties page.

Features

  • Debounced input (300ms configurable) to avoid excessive filtering
  • Search icon (lucide) and clear button (X)
  • Accepts onSearch callback for integration with BountyGrid filtering
  • Styled with existing forge theme classes
  • Accessible: type='search', aria-label

Integration

import { BountySearchBar } from '../components/bounty/BountySearchBar';

// In BountyGrid, add state and filter:
const [searchQuery, setSearchQuery] = useState('');
// Add to header: <BountySearchBar onSearch={setSearchQuery} />
// Filter: allBounties.filter(b => matchesSearch(b, searchQuery))

Acceptance Criteria

  • Search bar visible on /bounties page
  • Typing filters bounties in real-time (debounced)
  • Works alongside existing filters

Closes #823

- Debounced search input (300ms default)
- Filters by title, description, and tags
- Clear button to reset search
- Search icon and accessible aria-label
- Styled to match existing forge theme

Closes SolFoundry#823
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing-wallet PR is missing a Solana wallet for bounty payout

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🏭 Bounty T1: Add Search Bar to Bounties Page

1 participant