feat(filtering): added the ability to filter logs by date and date range#2639
Merged
waleedlatif1 merged 1 commit intostagingfrom Dec 30, 2025
Merged
feat(filtering): added the ability to filter logs by date and date range#2639waleedlatif1 merged 1 commit intostagingfrom
waleedlatif1 merged 1 commit intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR adds comprehensive date and date range filtering capabilities to the logs system, enabling users to filter logs through both UI controls and search query syntax. Key Changes:
Implementation Quality:
Confidence Score: 5/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant LogsToolbar
participant Combobox
participant DatePicker
participant FilterStore
participant LogsAPI
participant QueryParser
Note over User,QueryParser: UI-based Date Filtering
User->>LogsToolbar: Select "Custom range" from time combobox
LogsToolbar->>FilterStore: setPreviousTimeRange(currentTimeRange)
LogsToolbar->>LogsToolbar: setDatePickerOpen(true)
LogsToolbar->>DatePicker: Open popover with inline DatePicker
User->>DatePicker: Select start and end dates
DatePicker->>LogsToolbar: onRangeChange(startDate, endDate)
LogsToolbar->>FilterStore: setDateRange(startDate, endDate)
FilterStore->>FilterStore: Set timeRange="Custom range"
FilterStore->>FilterStore: syncWithURL()
FilterStore->>LogsAPI: Trigger query with startDate & endDate params
LogsAPI-->>User: Display filtered logs
Note over User,QueryParser: Search Query-based Date Filtering
User->>LogsToolbar: Type "date:2024-01-01..2024-01-15" in search
LogsToolbar->>QueryParser: parseQuery(searchQuery)
QueryParser->>QueryParser: Parse date range format
QueryParser->>QueryParser: Split on ".." delimiter
QueryParser->>QueryParser: Create Date objects with timezone
QueryParser->>QueryParser: Convert to ISO strings
QueryParser-->>LogsToolbar: Return parsed filters
LogsToolbar->>LogsAPI: Send startDate & endDate params
LogsAPI-->>User: Display filtered logs
Note over User,QueryParser: Alternative Date Formats
User->>LogsToolbar: Type "date:2024-12" (month only)
QueryParser->>QueryParser: Parse as YYYY-MM format
QueryParser->>QueryParser: Set start to first of month
QueryParser->>QueryParser: Set end to last of month
QueryParser-->>LogsAPI: Send date range for entire month
LogsAPI-->>User: Display filtered logs
|
Sg312
pushed a commit
that referenced
this pull request
Jan 3, 2026
waleedlatif1
added a commit
that referenced
this pull request
Jan 8, 2026
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 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.
Summary
Type of Change
Testing
Tested manually, added unit tests
Checklist