Skip to content

Persist bounty filter state in URL#96

Open
nikkkkj wants to merge 1 commit into
gbabaisaac:mainfrom
nikkkkj:codex/fix-filter-state-sync
Open

Persist bounty filter state in URL#96
nikkkkj wants to merge 1 commit into
gbabaisaac:mainfrom
nikkkkj:codex/fix-filter-state-sync

Conversation

@nikkkkj

@nikkkkj nikkkkj commented May 14, 2026

Copy link
Copy Markdown

Fixes #6.

Summary

  • Hydrate bounty filters from difficulty and minReward URL query params
  • Update the URL when filter controls change
  • Keep default filters out of the URL for cleaner links
  • Include the existing minimal form validation compile fix so production build is not blocked by the current errors reference

Verification

  • npm run lint
  • npm run build
  • Browser check: opened /bugs/filter?difficulty=Hard&minReward=600, refreshed, and confirmed the Hard/600 filters and filtered count persisted

Note: lint/build still report the existing Next.js <img> warning in src/components/leaderboard.tsx, but the build completes successfully.

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.

Bug Fix: State Sync Bug

1 participant