Skip to content

feat(filter): add duration options for story filtering#10

Draft
idan wants to merge 4 commits intomainfrom
01KGFVG4AHWSDAR786E2WYP4ET
Draft

feat(filter): add duration options for story filtering#10
idan wants to merge 4 commits intomainfrom
01KGFVG4AHWSDAR786E2WYP4ET

Conversation

@idan
Copy link
Contributor

@idan idan commented Feb 2, 2026

Add a duration filter dropdown to allow users to view top Hacker News stories from different time periods instead of a hardcoded 3-month window.

Changes:

  • Initialize package-lock.json with project dependencies (React 19, TypeScript, Tailwind CSS 4, Vite, ESLint)
  • Add duration filter dropdown to App.tsx with options for 1, 3, and 6 months
  • Implement dynamic story fetching based on selected duration
  • Add support for additional duration options: 2 weeks (14 days) and 1 year (365 days)
  • Update Duration type and DURATION_OPTIONS array to include all new time periods
  • Update bun.lock with configVersion field
  • Fix UI text from "Top stories from the last" to "Top stories in the last" for grammatical correctness

Users can now filter stories by 2 weeks, 1 month, 3 months, 6 months, or 1 year periods, providing more flexibility in exploring historical Hacker News content.

Created by GitHub Ace · View Channel

@idan idan changed the title feat(filter): add configurable duration filter for HN stories feat(filters): add duration filter with multiple time ranges Feb 3, 2026
@idan idan changed the title feat(filters): add duration filter with multiple time ranges feat(filter): add duration options for story filtering Feb 3, 2026
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.

1 participant