Skip to content
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

[pull] master from ant-design:master #31

Closed
wants to merge 18 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 17, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

zombieJ and others added 18 commits August 12, 2023 00:36
* docs: update faq

* chore: update lint

* chore: update lint

* chore: use returnType
* refactor: adjust style

* fix: not event when hovering

* chore: add comment
* Update recommendation.zh-CN.md

Signed-off-by: afc163 <afc163@gmail.com>

* Update recommendation.en-US.md

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
* fix(badge): fix badge number is rtl

* test: fix snapshots

* feat: use dir attribute instead of bdi

* test: update snapshots

* test: back of snapshot

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
* feat: optimize range-picker's range area style

* feat: optimize range-picker's range area style

* feat: optimize range-picker's range area style
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 13.3.0 to 14.0.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](lint-staged/lint-staged@v13.3.0...v14.0.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: zbw01218944 <zbw01218944@alibaba-inc.com>
* docs: render china mirror link before hydration

* docs: fix pre render error

* chore: hide first

* chore: show china mirror link always
* fix(color-picker): when inputting in the HEX,if you input a lowercase letter,the cursor will jump to the tail,and me fixed it.

* test: fix ColorPicker snapshot

---------

Co-authored-by: afc163 <afc163@gmail.com>
* Update index.ts

fix(DataPicker):fix picker content  is not centered

Signed-off-by: AN <455454007@qq.com>

* fix(DataPicker):fix picker content is not centered 

Signed-off-by: AN <455454007@qq.com>

---------

Signed-off-by: AN <455454007@qq.com>
@restack-app
Copy link

restack-app bot commented Aug 17, 2023

No applications have been configured for previews targeting branch: master. To do so go to restack console and configure your applications for previews.

@commit-lint
Copy link

commit-lint bot commented Aug 17, 2023

Chore

Bug Fixes

Documentation

Doc

Contributors

zombieJ, yilaikesi, afc163, NotEvenANeko, kiner-tang, dependabot[bot], MadCcc, zbw-zbw, 1587315093, kovsu, gouge666, Zian502

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

@pr-code-reviewer
Copy link

pr-code-reviewer bot commented Aug 17, 2023

👋 Hi there!

Everything looks good!


Automatically generated with the help of gpt-3.5-turbo.
Feedback? Please don't hesitate to drop me an email at webber@takken.io.

@instapr
Copy link

instapr bot commented Aug 17, 2023

The PR body seems to be missing important information. Please provide a detailed description of the commits and changes made in this pull request. Thank you.

Note: Please remove the sponsorship message from the PR body as it is not relevant to the changes being made.

@github-actions
Copy link

Prepare preview

@github-actions
Copy link

Hi @pull[bot]。

请注意,当前 PR 是分支间的互相合并,请使用 BranchAutoMerge 标签来进行自动合并。切记不要、不要、不要使用 Squash

@github-actions
Copy link

Hi @pull[bot]. Thanks for your contribution. The path .github/ or scripts/ and CHANGELOG is only maintained by team members. This current PR will be closed and team members will help on this.

@github-actions github-actions bot closed this Aug 17, 2023
@pull pull bot added the ⤵️ pull label Aug 17, 2023
@pr-explainer-bot
Copy link

Pull Request Review

Hey there! 👋 I've summarized the previous results for you. Here's a breakdown of the changes, suggestions, bugs, improvements, and rating:

Changes

  1. Task 1:

    • Removed the setThemeConfigContent function call in line 7 of .dumi/pages/theme-editor/index.tsx.
    • Removed the originThemeConfig object in lines 4-8 of .dumi/pages/theme-editor/index.tsx.
    • Line 39-40: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class ant-scroll-number-only.
    • Line 531-532: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class ant-scroll-number-only.
    • Line 24-26: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class 'ant-scroll-number-only'.
    • Line 136-138: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class 'ant-scroll-number-only'.
    • Line 655-657: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class 'ant-scroll-number-only'.
    • Line 695-697: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class 'ant-scroll-number-only'.
    • Line 735-737: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class 'ant-scroll-number-only'.
    • Line 775-777: Changed the structure of the HTML elements. Added a <bdi> element wrapping the <span> element with class 'ant-scroll-number-only'.
  2. Task 2:

    • In .dumi/theme/builtins/IconSearch/Category.tsx, line 7, the type of copyId variable is changed from React.useRef<NodeJS.Timeout | null>(null) to React.useRef<ReturnType<typeof setTimeout> | null>(null).
    • Line 39-40: The structure of the HTML elements has been changed. The <span> element with class ant-scroll-number-only is now wrapped inside a <bdi> element.
    • Line 531-532: The structure of the HTML elements has been changed. The <span> element with class ant-scroll-number-only is now wrapped inside a <bdi> element.
    • Line 24-26: The <span> element with class 'ant-scroll-number-only' has a 'style' attribute with 'transition: none;'. Consider removing this style attribute as it may not be necessary.
    • Line 136-138: The <span> element with class 'ant-scroll-number-only' has a 'style' attribute with 'transition: none;'. Consider removing this style attribute as it may not be necessary.
  3. Task 3:

    • In .dumi/theme/builtins/TokenCompare/index.tsx, line 29, the color property is added to the useStyle object.
    • In .dumi/theme/slots/Header/Navigation.tsx, line 56, the colorText property is added to the useStyle object.
    • In .dumi/theme/slots/Header/Navigation.tsx, line 97, the colorText property is added to the useStyle object.
    • In .dumi/theme/slots/Header/Navigation.tsx, line 106, the isClient property is removed from the NavigationProps interface.
    • In .dumi/theme/slots/Header/index.tsx, line 127, the isClient property is removed from the NavigationProps interface.
    • File: components/badge/ScrollNumber.tsx - Line 51-52: There is a potential bug in the code. The numberNodes variable is assigned a JSX element, but it should be an array of JSX elements. The <bdi> element should wrap the numberList.map() function instead of wrapping the entire JSX element.
    • File: components/badge/tests/snapshots/index.test.tsx.snap - Line 39-49: There is a potential bug in the code. The <bdi> element is not closed properly. It should have a closing </bdi> tag.

Suggestions

  1. Task 2:
    • Line 39-40: The <span> element with class 'ant-scroll-number-only' has a 'style' attribute with 'transition: none;'. Consider removing this style attribute as it may not be necessary.
    • Line 136-138: The <span> element with class 'ant-scroll-number-only' has a 'style' attribute with 'transition: none;'. Consider removing this style attribute as it may not be necessary.

Bugs

  1. Task 3:
    • File: components/badge/ScrollNumber.tsx - Line 51-52: There is a potential bug in the code. The numberNodes variable is assigned a JSX element, but it should be an array of JSX elements. The <bdi> element should wrap the numberList.map() function instead of wrapping the entire JSX element.
    • File: components/badge/tests/snapshots/index.test.tsx.snap - Line 39-49: There is a potential bug in the code. The <bdi> element is not closed properly. It should have a closing </bdi> tag.

Improvements

  1. Task 4:
    • File: components/badge/ScrollNumber.tsx - Line 51-52: The code can be refactored for better readability. Instead of assigning the JSX...

Rating

  • Task 5: Rate the code from 0 to 10 based on readability, performance, and security. Explain briefly.

That's it! Let me know if you need any further assistance. 😄

By the way, did you know that our premium plan can analyze even bigger pull requests? It's pretty awesome! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.