[WC-3466] chore(datagrid-date-filter-web): migrate react-datepicker to v9 (WC-3466) - #2381
[WC-3466] chore(datagrid-date-filter-web): migrate react-datepicker to v9 (WC-3466)#2381iobuhov wants to merge 6 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
568316b to
78622ea
Compare
This comment has been minimized.
This comment has been minimized.
…posal (WC-3466) Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…date-fns 4 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ia /p/ nav Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…tasks Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
78622ea to
bebd557
Compare
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
AI Code Review
What was reviewed
Skipped (out of scope): Note: Findings
|
What & why
Upgrades the Date filter widget's calendar from
react-datepicker@6toreact-datepicker@9(anddate-fns@3 → 4), resolving WC-3466. v9 is a 3-major jump: Popper.js is replaced by Floating UI, the calendar popup is now arole="dialog" aria-modal="true", and day-name columns expose full weekday accessible names.Changes
chore: migrate react-datepicker to v9 with date-fns 4 — bumpsreact-datepickeranddate-fns, drops the now-unnecessary@types/react-datepicker(v9 ships its own types), widens thewidget-plugin-filteringdate-fnspeer to^3.6.0 || ^4.1.0, and adapts the component to v9's typings:DatePicker.tsx— new discriminatedPickerChangeHandler,selectsRangenarrowed so the props union resolves to its range arm, drops no-op props.DatePickerController.ts/useSetup.ts— retyped against v9'sDatePickerProps.DatePickerController.spec.ts.test: fix flakyfilter_init_conditione2e — the two "apply filter right after load" tests used a racygoto("/#/…", {timeout:1000})+reload()that intermittently landed on the home page under the shared worker session. Switched to the resolved pathgoto("/p/filter_init_condition")+waitForMendixApp, matching the text/number filter specs. (Pre-existing flake, not caused by the migration.)docs: update migration tasks — OpenSpec task bookkeeping.Testing
pnpm run test— unit suite green (68 tests, snapshots unchanged).pnpm turbo build+pnpm run verify— pass.Notes / follow-ups
test.fixme) and any updated closed-state baseline must be regenerated in CI (chromium-linux), not on macOS.🤖 Generated with Claude Code