Open
Conversation
- Update date-fns-tz from ^2.0.0 to ^3.0.0 (compatible with date-fns v4) - Fix default imports of differenceInDays to use named imports from 'date-fns' - Switch MUI date picker adapter from AdapterDateFns to AdapterDateFnsV3 - Add explicit Duration and Locale type imports (no longer globally available in v4) - Fix test fixtures missing required createdAt field Co-authored-by: ivarconr <158948+ivarconr@users.noreply.github.com>
Co-authored-by: gastonfournier <455064+gastonfournier@users.noreply.github.com>
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files
|
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the frontend date-handling dependencies to newer major versions and aligns UI date-picker integration/tests with the updated feature toggle shape.
Changes:
- Bump
date-fnsto4.1.0anddate-fns-tzto^3.0.0(with regenerated lockfile). - Switch MUI X date-pickers adapter import to the date-fns v3+ compatible adapter (
AdapterDateFnsV3). - Update
FeatureOverviewMetaDatatests to include the requiredcreatedAtfield.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| frontend/package.json | Updates date-fns / date-fns-tz dependency versions. |
| frontend/yarn.lock | Lockfile updates reflecting the new date library versions/resolutions. |
| frontend/src/component/common/FilterDateItem/FilterDateItem.tsx | Uses the MUI adapter compatible with date-fns v3+ (needed for v4). |
| frontend/src/component/feature/FeatureView/FeatureOverview/FeatureOverviewMetaData/FeatureOverviewMetaData.test.tsx | Adds createdAt to test feature toggles to satisfy component usage. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| "date-fns": "2.30.0", | ||
| "date-fns-tz": "^2.0.0", | ||
| "date-fns": "4.1.0", | ||
| "date-fns-tz": "^3.0.0", |
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.
No description provided.