Skip to content

Date filter #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed

Date filter #58

wants to merge 10 commits into from

Conversation

indraneel
Copy link
Collaborator

Available PR templates

indraneel added 9 commits July 9, 2025 13:22
- Add dateRange state to StacMapContextType interface
- Add dateRange state and setDateRange function to StacMapProvider
- Include date filtering state in context value for component access
- Add isCollectionWithinDateRange function to filter collections by temporal extent
- Add isItemWithinDateRange function to filter items by datetime property
- Add formatDateRangeForStacSearch function to format date ranges for STAC API queries
- Support partial date ranges (start only, end only, or both)
- Handle edge cases for collections/items without temporal data
- Create DateFilter component with start/end date inputs
- Add clear filter functionality with visual indicator
- Show active filter status with formatted date range display
- Integrate with StacMapContext for state management
- Use Chakra UI components for consistent styling
- Add date validation (end date minimum based on start date)
- Update collection filtering logic to include date range filtering
- Combine map bounds filtering with date range filtering
- Apply date filtering to collections based on temporal extent
- Maintain existing map bounds filtering functionality
- Update useEffect dependencies to include dateRange
- Import date filtering utility functions in map component
- Pass dateRange to getValueLayer and getCollectionsLayer functions
- Update useEffect dependencies to include dateRange for layer updates
- Enable date-based filtering for both collections and individual items
- Maintain existing map functionality while adding temporal filtering
- Add DateFilter component to search panel with accordion integration
- Update search parameters to include datetime field for STAC API queries
- Format date range for STAC search using formatDateRangeForStacSearch utility
- Update useItemSearch hook to include datetime parameter in API requests
- Maintain existing search functionality while adding temporal filtering support
@indraneel indraneel linked an issue Jul 9, 2025 that may be closed by this pull request
@gadomski
Copy link
Collaborator

gadomski commented Jul 9, 2025

Shoot, sorry I blew you up with #50. HMU if I can help resolve / explain where things moved (though I was copying your layout from HOT OAM so hopefully things make sense where they live now? 🙏🏼)

@indraneel indraneel closed this Jul 9, 2025
@indraneel
Copy link
Collaborator Author

just redid it #60

@indraneel indraneel deleted the date-filter branch July 10, 2025 19:48
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.

Add datetime filtering
2 participants