-
Notifications
You must be signed in to change notification settings - Fork 0
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
Closed
Date filter #58
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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
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? 🙏🏼) |
just redid it #60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Available PR templates