Skip to content

feat: add configurable time window selection for stories#13

Open
idan wants to merge 1 commit intomainfrom
01KJT4BMWA86HARZBP1W8NNKZ1
Open

feat: add configurable time window selection for stories#13
idan wants to merge 1 commit intomainfrom
01KJT4BMWA86HARZBP1W8NNKZ1

Conversation

@idan
Copy link
Contributor

@idan idan commented Mar 3, 2026

Implement configurable time window filtering for story queries, allowing users to select between multiple time periods.

Changes

  • Added TIME_WINDOWS constant defining available time periods (2 weeks, 1 month, 3 months, 6 months)
  • Added timeWindow state to App component with default of 90 days
  • Modified fetch logic to use dynamic timeWindow instead of hardcoded 3-month period
  • Updated useEffect dependency array to include timeWindow, triggering refetch when selection changes
  • Enhanced header UI with flex layout and dropdown select component for time window selection
  • Updated subtitle to dynamically display the selected time window label
  • Removed inline comments for cleaner code
  • Updated bun.lock with configVersion 0

Created by GitHub Ace · View Session

@idan idan marked this pull request as ready for review March 3, 2026 19:16
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