-
由 Will Chen 提交于
<!-- CURSOR_SUMMARY --> > [!NOTE] > **Upgrade default template and migrate Calendar** > > - Bumps dependencies in template/package manifests: `react`/`react-dom` -> `^19.2.3`, `react-day-picker` -> `^9.13.0`, and `@types/react`/`@types/react-dom` -> `^19.x` > - Migrates `Calendar` (`src/components/ui/calendar.tsx`) to DayPicker v9: updates `classNames` keys (e.g., `month_caption`, `button_previous/next`, `month_grid`, `weekday/week`, `day_button`, `selected`, `range_end`, `today`, `outside`, `disabled`, `range_middle`, `hidden`) and replaces `IconLeft/IconRight` with `components.Chevron` > > **Tests and snapshots** > > - Rebaselines e2e snapshots reflecting dependency/UI changes > - Adds `await this.waitForChatCompletion()` in `snapshotServerDump` to stabilize chat/server dump snapshots > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 3bc152b48e32e9746bf9e08fe7795505608a1c6d. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Upgrade the default scaffold to React 19 and bump react-day-picker to v9, updating the Calendar component to the new DayPicker v9 API. Rebaselined e2e snapshots and added a wait in tests to stabilize chat output. - **Dependencies** - Updated scaffold/package.json: react and react-dom -> ^19.2.3; react-day-picker -> ^9.13.0; @types/react and @types/react-dom -> ^19.x. - Updated scaffold/pnpm-lock.yaml; refreshed root/test lockfiles and peer flags. - Adjusted e2e snapshots for dependency/version changes and minor UI text ordering. - **Migration** - Run npm ci and rebuild the template. No app code changes required. <sup>Written for commit 3bc152b48e32e9746bf9e08fe7795505608a1c6d. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->