[WIP] Upgrade to antd v6
- [x] Review Ant Design v6 migration guide and breaking changes
- [x] Update antd dependency from ^5.28.1 to ^6.0.0
- [x] Update peerDependencies for antd to ^6.0.0
- [x] Update @ant-design/cssinjs from ^1.24.0 to ^2.0.1
- [x] Update @ant-design/icons from ^5.6.1 to ^6.1.0
- [x] Update React peer dependency from >=17.0.0 to >=18.0.0
- [x] Fix useStyle hook to work with new useStyleRegister return type (void)
- [x] Update Popover styles API from 'body' to 'container'
- [x] Add required cssVar configuration to useCacheToken
- [x] Run TypeScript type check - all errors fixed
- [x] Run build - compilation succeeds
- [x] Update test snapshots for antd v6
- [ ] Run tests to verify functionality
- [ ] Address any test failures
- [ ] Review and update documentation if needed
Original prompt
升级到 antd v6
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
[!IMPORTANT]
Review skipped
Bot user detected.
To trigger a single review, invoke the
@coderabbitai reviewcommand.You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.
Comment @coderabbitai help to get the list of available commands and usage tips.
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
| Diff | Package | Supply Chain Security |
Vulnerability | Quality | Maintenance | License |
|---|---|---|---|---|---|---|
| antd@6.0.0 | ||||||
| @ant-design/icons@6.1.0 | ||||||
| @ant-design/cssinjs@2.0.1 |
@copilot snapshot 需要更新一下
@copilot snapshot 需要更新一下
已更新 snapshot,提交在 84ff1af
[!WARNING]
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
at.alicdn.com
- Triggering command:
/usr/local/bin/node /usr/local/bin/node -e const sendRequest = require('http').request; const options = { "method": "GET", "headers": { "Accept": "*/*", "Accept-Encoding": "gzip, deflate, br", "Connection": "close", "Referer"(dns block)proapi.azurewebsites.net
- Triggering command:
/usr/local/bin/node /usr/local/bin/node --conditions node --conditions development /home/REDACTED/work/pro-components/pro-components/node_modules/.pnpm/[email protected]/node_modules/tinypool/dist/index.js/../entry/process.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
- Configure Actions setup steps to set up my environment, which run before the firewall is enabled
- Add the appropriate URLs or hosts to the custom allowlist in this repository's Copilot coding agent settings (admins only)
@afc163 大佬 还继续嘛
@XuJin186 欢迎 PR
我看有许多测试用例失败只是由于 class 有变化,例如 .ant-select-selector 应该改为 .ant-select-content 之类的 但是我怎么 at 不出来 copilot @afc163
大佬们 进度怎么不动了呢
焦急
催更
@copilot 修复目前没有完成的存在问题的代码