ant-design / ant-design

An enterprise-class UI design language and React UI library
https://ant.design
MIT License
93.39k stars 51.04k forks source link

refactor(Button): rename files #52608

Open guoyunhe opened 1 week ago

guoyunhe commented 1 week ago

中文版模板 / Chinese template

🤔 This is a ...

🔗 Related Issues

  • Describe the source of related requirements, such as links to relevant issue discussions.
  • For example: close #xxxx, fix #xxxx

💡 Background and Solution

文件名与组件名大小写保持一致

📝 Change Log

Language Changelog
🇺🇸 English refactor(Button): rename files
🇨🇳 Chinese refactor(Button): 重命名文件
stackblitz[bot] commented 1 week ago

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

github-actions[bot] commented 1 week ago

Preview is ready

github-actions[bot] commented 1 week ago

👁 Visual Regression Report for PR #52608 Failed ❌

🎯 Target branch: next (29edffc48490de0e80307772dfbf21f68c4bf7b5) 📖 View Full Report ↗︎ 📊 Summary: 🔄 1 changed

Expected (Branch next) Actual (Current PR) Diff
input-group.compact.png input-group.compact.png input-group.compact.css-var.png input-group.compact.css-var.png

[!IMPORTANT] There are 1 diffs found in this PR: 🔄 1 changed. Please check all items:

  • [ ] Visual diff is acceptable
petercat-assistant[bot] commented 1 week ago

Walkthrough

This pull request focuses on refactoring the Button component by renaming files to ensure consistency between file names and component names. This change affects various imports and type definitions across multiple files to align with the new naming convention.

Changes

Files Summary
components/_util/ActionButton.tsx, components/button/tests/delay-timer.test.tsx, components/button/tests/index.test.tsx, components/button/button.tsx, components/button/buttonHelpers.tsx, components/button/index.tsx, components/dropdown/dropdown-button.tsx, components/modal/interface.ts, components/popconfirm/index.tsx Updated import paths to reflect the new file naming convention for Button components.
pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

More templates

- [farm-normal](https://pkg.pr.new/template/89b1019a-9bbd-4ddf-ae3c-87d4d27883ea) - [rsbuild-normal](https://pkg.pr.new/template/a8392d27-4076-430b-82ea-b86e873ce1d1) - [vite-normal](https://pkg.pr.new/template/f121cda3-b648-4b03-bca6-86496f66e64e) - [vite-practice](https://pkg.pr.new/template/fa464aba-a95a-4b04-9b04-fabccdcc446e) - [umi-normal](https://pkg.pr.new/template/8340ff57-4136-46af-815c-52ba1437ce7c) - [with-nextjs-app-router-inline-style](https://pkg.pr.new/template/635f885c-439c-4894-a35a-1855ff358019) - [with-nextjs-extract-style](https://pkg.pr.new/template/a0cde3a4-10cb-4988-b690-7e958f7607bf) - [with-nextjs-generate-css-on-demand](https://pkg.pr.new/template/9ef06ee0-7dd9-4109-8fd5-571e2f8748db) - [with-nextjs-inline-style](https://pkg.pr.new/template/9a897d14-7bd9-4402-b997-3849d0fa6bed)

npm i https://pkg.pr.new/ant-design/ant-design/antd@52608

commit: bc2a046

codecov[bot] commented 1 week ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (29edffc) to head (bc2a046).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## next #52608 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 765 765 Lines 13745 13745 Branches 3583 3583 ========================================= Hits 13745 13745 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] commented 3 days ago

Bundle Report

Changes will increase total bundle size by 7.86MB (210.75%) :arrow_up::warning:, exceeding the configured threshold of 5%.

Bundle name Size Change
antd.min-array-push 11.59MB 7.86MB (210.75%) :arrow_up::warning:

Affected Assets, Files, and Routes:

view changes for bundle: antd.min-array-push #### **Assets Changed:** | Asset Name | Size Change | Total Size | Change (%) | | ---------- | ----------- | ---------- | ---------- | | **```antd-with-locales.js```** _(New)_ | 6.04MB | 6.04MB | 100.0% :rocket: | | **```antd.js```** _(New)_ | 5.54MB | 5.54MB | 100.0% :rocket: | | ~~**```antd-with-locales.min.js```**~~ _(Deleted)_ | -2.02MB | 0 bytes | -100.0% :wastebasket: | | ~~**```antd.min.js```**~~ _(Deleted)_ | -1.71MB | 0 bytes | -100.0% :wastebasket: |