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 #16

Merged
merged 20 commits into from
Aug 5, 2023

Conversation

pull[bot]
Copy link

@pull pull bot commented Aug 3, 2023

See Commits and Changes for more details.


Created by pull[bot]

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

MadCcc and others added 9 commits August 3, 2023 14:45
* perf: better async component

* feat: useFetch

* chore: code clean

* chore: code clean

* chore: fix lint

* type: enhance
* docs: fix log check logic

* docs: update changelog
* docs: fix misdocumented component token meta

* Apply suggestions from code review

Signed-off-by: MadCcc <[email protected]>

---------

Signed-off-by: MadCcc <[email protected]>
Co-authored-by: cty <>
Co-authored-by: MadCcc <[email protected]>
* chore: adjust Form renderProps def

* chore: fix compile
* site: add full changelog link

* chore: update Link

* Apply suggestions from code review

Signed-off-by: MadCcc <[email protected]>

---------

Signed-off-by: MadCcc <[email protected]>
Co-authored-by: MadCcc <[email protected]>
* type(menu): use React.isValidElement replace any

* fix
@restack-app
Copy link

restack-app bot commented Aug 3, 2023

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

@pr-code-reviewer
Copy link

pr-code-reviewer bot commented Aug 3, 2023

👋 Hi there!

  1. Update the function signature to include a generic type parameter T for better type safety.
  2. Replace references to promise with internal within the function body to ensure consistent use of the modified object.
  3. Add type annotations to the properties in the internal object for clarity and maintainability.


Automatically generated with the help of gpt-3.5-turbo.
Feedback? Please don't hesitate to drop me an email at [email protected].

@instapr
Copy link

instapr bot commented Aug 3, 2023

The changes look good overall. One clarification:

  • In file1.py, can we rename the variable x to something more descriptive? Maybe num_items?

Thanks!

@pr-explainer-bot
Copy link

Pull Request Review

Hey there! 👋 I've summarized the previous results for you to write a Pull Request review markdown doc. Let's get started!

Changes

  1. TypeScript optimizations:

    • Improved type declaration of GroupSizeContext in Button.ButtonGroup. #43439
    • Optimize Select-like component popup logic (e.g. Select, TreeSelect, Cascader). Now always try to display it in the visible area first to reduce the user's extra scrolling cost. #41619
    • 🤖 优化 Button DropDown Modal Popconfirm Select Transfer 鼠标事件类型定义。#39533
    • 🤖 新增 FloatButton 导出类型 FloatButtonGroupProps#39553
    • 🤖 修复 Space 的 SpaceContext 没有正确导出的问题。#43501 @VovkaGoodwin
    • 🤖 优化 AutoComplete 组件 TS 定义实现。#43581 @thinkasany
    • 🤖 优化 Select 和 List 组件 TS 定义实现。#43545 @thinkasany
    • 🤖 优化 Button 组件 TS 定义实现。#43588 #43629 @thinkasany
  2. Suggestions to improve the code:

    • In .dumi/hooks/use.ts, lines 1-28, the use function can be refactored to improve readability. Instead of using a conditional statement for each status, you can use a switch statement to handle different cases.
    • In .dumi/hooks/useFetch/cache.ts, lines 1-21, the FetchCache class can be refactored to use a Map instead of an object for better performance and easier manipulation of cached values.
    • In .dumi/hooks/useFetch/index.ts, lines 1-20, the useFetch function can be refactored to use a more descriptive variable name for the options parameter, such as fetchOptions.
    • In .dumi/pages/index/components/util.ts, lines 1-6, the useFetch import can be removed since it is not used in the code.
    • In .dumi/theme/common/ComponentChangelog/ComponentChangelog.tsx, lines 1-9, the React import can be removed since it is not used in the code.
    • In .dumi/theme/common/ComponentChangelog/index.tsx, lines 1-7, the React import can be removed since it is not used in the code.
    • In the file components/anchor/style/index.ts, the comments for linkPaddingBlock and linkPaddingInlineStart are incorrect. The descriptions should be swapped.
    • In the file components/drawer/style/index.ts, the comments for footerPaddingBlock and footerPaddingInline are incorrect. The descriptions should be swapped.
  3. Potential bugs:

    • In .dumi/hooks/use.ts, lines 1-28, the use function does not handle the case when the promise parameter is undefined. This can lead to a runtime error if promise is not provided.
  4. Code improvements:

    • In the file components/anchor/style/index.ts, the comments for linkPaddingBlock and linkPaddingInlineStart can be refactored for better readability. Here's the improved code snippet:
      export interface ComponentToken {
        /**
         * @desc Vertical padding of link
         * @descEN Vertical padding of link
         */
        linkPaddingBlock: number;
        /**
         * @desc Horizontal padding of link
         * @descEN Horizontal padding of link
         */
        linkPaddingInlineStart: number;
      }

Rating

Rating: 7/10

Criteria:

  • Readability: The code is generally readable, but there are some comments with incorrect descriptions that can be improved.
  • Performance: The code does not have any performance-related issues.
  • Security: The code does not have any security vulnerabilities.

That's it! You're all set to write your Pull Request review markdown doc. Good luck! 🚀

P.S. Did you know that our premium plan can analyze even bigger pull requests? Just something to keep in mind! 😉

@pull pull bot added the ⤵️ pull label Aug 3, 2023
kiner-tang and others added 11 commits August 3, 2023 23:28
* chore: fix checkbox

* chore: checkbox support disabled

* chore: radio support wave

* test: update test case

* chore: fix lint

* test: update snapshot

* test: update snapshot

* test: fix test case

* test: update test case
* type: remove useless any

* revert:treeIcon as any}
* respect allowClear===false in date picker

* remove clear icon from snapshot

reflects actual desired outcome when allowClear is false

* test allowClear undefined and false scenarios

* use nested clearIcon if passed

* vanilla parameters, more robust merge

* no need to check allowClear for truthyness
* feat: update tag demo

* feat: update tag demo

* feat: update tag demo

* feat: update snap
* site: fix error Tabs.TabPane is deprecated use `items` directly

* fiux
* style: addon size should inherit from props

* fix: do not inherit when size equals small
* docs: react docs arrange

* chore: code clean

* docs: arrange docs en

* docs: update

* docs: update

* docs: update en doc

* docs: update
@ammar-ahmed-butt ammar-ahmed-butt merged commit c354ae2 into ammar-knowledge:master Aug 5, 2023
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.

10 participants