[00001] Introduce cutoff date for commits and PRs from November to April#16
Open
joshuauaua wants to merge 1 commit into
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
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
Changes
Added date range filtering to the PR Cost Calculator, allowing users to filter PRs and analysis to a specific time period (November 2025 to April 2026 by default). The feature includes a checkbox to enable filtering and date pickers to customize the range. When enabled, all charts and statistics are recalculated to show only PRs within the selected period.
API Changes
New functions:
filterPRsByDateRange(prs: PullRequest[], startDate: Date, endDate: Date): PullRequest[]— filters PRs by creation date within the specified rangeModified function signatures:
getMonthlyStats()— added optionalstartDate?: DateandendDate?: DateparametersgetRollingAverages()— added optionalcustomStartDate?: DateandcustomEndDate?: DateparametersFiles Modified
Backend:
src/lib/calculations.ts— added date filtering function and optional date range parameters to calculation functionssrc/lib/calculations.test.ts— added comprehensive tests for date filtering functionalityFrontend:
src/components/ComparisonChart.tsx— added date range state, UI controls (checkbox and date pickers), and integrated filtering into all data calculationsCommits