Commit f18d896
2nd: Upgrade date pickers dayjs resizable panels (#9115)
* Migrate webpack to RSPack
* optimize tests and docker
* review fixups
* Add comprehensive unit tests for RSPack migration
- Add tests/ui/App.test.jsx: Test URL transformations and routing
- URL backwards compatibility (perf.html, pushhealth.html, logviewer.html)
- Permalink hash preservation
- Document title updates for perfherder alerts
- Export verification (no react-hot-loader wrapper)
- Expand tests/ui/helpers/filter.test.js: Comprehensive filter helper tests
- thMatchType, thFieldChoices, thFilterDefaults constants
- arraysEqual and matchesDefaults functions
- hasUrlFilterChanges URL comparison
- reloadOnChangeParameters and allFilterParams arrays
- Add tests/ui/perfherder/App.test.jsx: Export and structure verification
- Verify no hot loader wrapper (RSPack migration regression test)
- Validate class component structure and lifecycle methods
- Add tests/ui/push-health/App.test.jsx: Component and routing tests
- Component loading and API call verification
- Route handling (push, my-pushes, usage)
- Export verification for RSPack migration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Update jest-puppeteer config to use pnpm
Change server command from 'yarn start' to 'pnpm start' to match
the package manager migration.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Upgrade packages
* fix lint errors
* Add unit tests for dayjs, date-pickers, and resizable-panels migrations
- Add tests for dayjs helper module (UTC, customParseFormat, isSameOrAfter, relativeTime plugins)
- Add tests for display.js dayjs migration (toMercurialDateStr, toMercurialShortDateStr)
- Add tests for taskcluster.js credential expiration with dayjs
- Add tests for DateRangePicker MUI component migration
- Add tests for intermittent-failures helpers (prettyDate, calculateMetrics)
- Add tests for perfherder helpers (getFilledBugSummary date formatting)
- Add tests for GraphsContainer and TableView date formatting
- Add tests for job-view App react-resizable-panels migration
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add markdown formatting scripts and fix lint errors
- Add format:md, format:md:check, and lint:md scripts using prettier
- Fix lint errors in test files:
- taskcluster.test.js: Use toThrow() instead of try/catch
- DateRangePicker.test.jsx: Remove jest.mock with require(), use toHaveLength()
- helpers.test.jsx: Use toHaveLength()
- GraphsContainer.test.jsx: Remove unused variable
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* remove unnecessary unit tests
* reduze resizer height to 3px
* set UTC as timezone for tests to have datetime string formatting test always pass
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Sebastian Hengst <aryx.github@gmx-topmail.de>1 parent 2248cd0 commit f18d896
File tree
29 files changed
+1888
-499
lines changed- tests
- jest
- ui
- helpers
- intermittent-failures
- job-view
- perfherder
- graphs
- ui
- css
- helpers
- intermittent-failures
- job-view
- login-callback
- perfherder
- graphs
- perf-helpers
29 files changed
+1888
-499
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
36 | 44 | | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| 15 | + | |
| 16 | + | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
46 | | - | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
55 | | - | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
| |||
0 commit comments