-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[WIP] Upgrade to antd v6 #9304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
[WIP] Upgrade to antd v6 #9304
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the Comment |
Co-authored-by: afc163 <[email protected]>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
@copilot snapshot 需要更新一下 |
Co-authored-by: afc163 <[email protected]>
已更新 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:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@afc163 大佬 还继续嘛 |
|
@XuJin186 欢迎 PR |
|
我看有许多测试用例失败只是由于 class 有变化,例如 .ant-select-selector 应该改为 .ant-select-content 之类的 |
…eplacing '.ant-select-selector' with '.ant-select' and '.ant-select-selection-search-input' with '.ant-select-input' across multiple test files.
… replacing '.ant-steps-icon' with '.ant-steps-item-icon' in multiple test files, and enhancing error message checks in utils tests.
…ity, updating '.ant-select-input' to '.ant-select-selection-search-input' and adjusting query selectors to use 'document.body' for dropdown items. Enhance assertions for dropdown item counts and ensure proper interaction with the updated Ant Design components.
… Ant Design v6 compatibility. Update query selectors to use '.ant-select' and adjust dropdown item checks to ensure proper interaction with the updated components. Enhance waitFor assertions for asynchronous operations and improve overall test clarity.
… use 'orientation' prop instead of 'type'. Update Drawer and SiderMenu components to use 'size' prop instead of 'width' for better consistency across the application.
| let { | ||
| token = {} as Record<string, any> as ProAliasToken, | ||
| hashed, | ||
| prefixCls, |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 5 days ago
To fix this issue, simply remove prefixCls from the destructured variables in the let declaration (lines 100–104). This change will not affect the logic or behavior of the function, as prefixCls is not used anywhere in the code block. There’s no need to add any imports, definitions, or other structures. Only the destructuring line needs to be edited: replace
let { token = {} as Record<string, any> as ProAliasToken, hashed, prefixCls } = useContext(ProProvider);with
let { token = {} as Record<string, any> as ProAliasToken, hashed } = useContext(ProProvider);| @@ -100,7 +100,6 @@ | ||
| let { | ||
| token = {} as Record<string, any> as ProAliasToken, | ||
| hashed, | ||
| prefixCls, | ||
| } = useContext(ProProvider); | ||
|
|
||
| const { token: antdToken, hashId, theme } = antdTheme.useToken(); |
…, updating button selectors in list toolbar tests and adding additional wait conditions in utils tests to ensure proper rendering of popover content.
…d improve layout consistency. Update card divider classes to remove unnecessary vertical orientation and enhance layout structure across multiple demo files. Adjust footer styles in layout demos for better spacing and visual alignment.
… replacing references to '.ant-popover-inner-content' with '.ant-popover-content' to ensure accurate rendering and error message checks.
…size' instead of 'width'. Update deprecated properties in StepsForm and Group components for improved consistency. Adjust SettingDrawer and SiderMenu components for better alignment with new prop standards.
…for consistent layout handling. Update SettingDrawer to use 'size' prop instead of 'width' and adjust Alert component to use 'title' prop. Enhance proFieldParsingText to use 'separator' instead of 'split' for better clarity.
… for improved clarity and consistency. Update related snapshots and tests to reflect this change, ensuring compatibility with Ant Design v6. Adjust test selectors for dropdown interactions to enhance reliability.
…bility, replacing '.ant-progress-text' with '.ant-progress-indicator' to ensure accurate rendering and assertion checks.
… replacing '.ant-select-selection-search-input' with '.ant-select-input' to ensure accurate interaction and assertion checks. Enhance clear button functionality tests to accommodate DOM structure changes in the new version.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.