treeherder
treeherder copied to clipboard
Upgrade date pickers dayjs resizable panels
Only the last commit applies to this. This PR sits atop #9114
Summary
This PR upgrades several frontend packages to modernize the codebase:
Package Changes
-
Added:
@mui/x-date-pickers(8.21.0) - MUI date picker components -
Added:
dayjs(1.11.19) - Lightweight date library -
Added:
react-resizable-panels(3.0.6) - Modern resizable panel library -
Removed:
moment- Replaced by dayjs (smaller bundle size) -
Removed:
react-dates- Replaced by MUI date pickers -
Removed:
react-split-pane- Replaced by react-resizable-panels
Code Changes
- Migrated date handling from
momenttodayjsacross the codebase - Created
ui/helpers/dayjs.jshelper module for consistent dayjs configuration - Replaced
react-datesDateRangePicker with MUI@mui/x-date-pickersin intermittent-failures - Replaced
react-split-panewithreact-resizable-panelsin the main job view App.jsx - Updated CSS for new resizable panels styling
- Added Jest mock for react-resizable-panels
Files Modified
- 18 files changed across helpers, components, and configuration
Codecov Report
:x: Patch coverage is 64.06250% with 23 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 81.43%. Comparing base (a82c683) to head (96dcbaf).
Additional details and impacted files
@@ Coverage Diff @@
## master #9115 +/- ##
==========================================
+ Coverage 80.01% 81.43% +1.42%
==========================================
Files 601 602 +1
Lines 32715 33758 +1043
Branches 3314 3007 -307
==========================================
+ Hits 26178 27492 +1314
+ Misses 6371 6112 -259
+ Partials 166 154 -12
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.