This repository was archived by the owner on Mar 25, 2026. It is now read-only.
feat: implement native AG Grid date filter with relative date expressions#104
Closed
ryanrozich wants to merge 1 commit intorelease/v0.2.0-rc3from
Closed
feat: implement native AG Grid date filter with relative date expressions#104ryanrozich wants to merge 1 commit intorelease/v0.2.0-rc3from
ryanrozich wants to merge 1 commit intorelease/v0.2.0-rc3from
Conversation
- Add DateFilter component with compound component pattern - Support for relative and absolute date modes - Full AG Grid integration with filter interface - Headless architecture for complete UI customization - Date expression parsing (e.g., '-7d', 'today', 'last week') - Support for all filter types: equals, notEqual, before, after, inRange - Real-time validation with error messages - TypeScript support with proper typing - Add comprehensive E2E tests for DateFilter functionality Closes #103
|
🚀 Demo Preview Ready! Preview URL: https://demo.rozich.net/ag-grid-react-components-pr-104/ This preview will be available for testing until the PR is merged or closed. |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Implements a native AG Grid date filter component that supports both absolute dates and relative date expressions (e.g., "Today+7d", "Last week"). This component integrates directly with AG Grid's filter framework using the
IFilterinterface.Closes #103
Key Features
Native AG Grid Integration
IFilterinterface for seamless integrationDate Expression Support
Today,Yesterday,TomorrowToday+7d,Today-3m,Today+1yStartOfWeek,EndOfMonth, etc.Last week,Next month, etc.Filter Operations
Technical Implementation
This component follows AG Grid's architecture patterns, not the headless UI patterns used elsewhere in this repository. It:
getModel(),setModel(),isFilterActive(),doesFilterPass()Demo Integration
The component is exported via
createDateFilter()for easy integration:Testing
Breaking Changes
This replaces the previous headless DateFilter implementation with a native AG Grid filter. The API is simpler and more aligned with AG Grid conventions.
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com