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

fix(comp:icon): update icons, add more and exit icon #1468

Merged
merged 1 commit into from Feb 23, 2023

Conversation

sallerli1
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

What is the new behavior?

更新部分图标, 新增 more 和 exit 图标

Other information

@idux-bot
Copy link

idux-bot bot commented Feb 22, 2023

This preview will be available after the AzureCI is passed.

@@ -137,6 +138,7 @@ export const allIcons = [
'mirror',
'mobile',
'monitor',
'more',
'move-file',
'move-group',
'move-list',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the code review:

First, it looks like the code patch is adding an additional icon to the list of icons at lines 70 and 138. The new icon being added is 'exit' and 'more'. It appears that the code is properly formatted and follows the correct syntax.

However, there are a few things we can look at to make sure that this code is as efficient as possible. First, we can check to see if the new icons are necessary, as they may already be in the list. Second, we can make sure that the new icons are in alphabetical order so that the list is easier to read and navigate. Third, we can check to make sure that the new icons are correctly spelled and formatted. Finally, we can check to make sure that the new icons are compatible with any existing code that may be using the list of icons.

Overall, it looks like the code patch is properly formatted and follows the correct syntax. However, it would be wise to do a few checks to make sure that the new icons are necessary and compatible with any existing code.

<svg viewBox="0 0 1024 1024" focusable="false"><path fill-rule="evenodd" d="M64 576v115.2c0 7.07 5.73 12.8 12.8 12.8H384v128h-51.2c-7.07 0-12.8 5.728-12.8 12.8v38.4c0 7.072 5.73 12.8 12.8 12.8h358.4c7.07 0 12.8-5.728 12.8-12.8v-38.4c0-7.072-5.73-12.8-12.8-12.8H640V704h307.2c7.072 0 12.8-5.73 12.8-12.8V76.8c0-7.07-5.728-12.8-12.8-12.8H76.8C69.73 64 64 69.73 64 76.8V576Zm64 0v64h768v-64H128Zm768-64V128H128v384h768ZM576 704H448v128h128V704Z"/></svg> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review:

The code patch looks good and does not have any major bugs. However, there are a few improvements that can be made in order to make the code more robust and easier to maintain.

  1. The first improvement is to replace the fill-rule attribute with a more specific value such as "nonzero". This will make the code more efficient and prevent issues that can arise when using the default fill-rule value.

  2. Another improvement is to add comments to the code patch to explain what each line of code is doing. This will make it easier for other developers to understand the code and help them identify any potential issues.

  3. Finally, it would be beneficial to add some unit tests to the code patch to make sure that it works properly on different platforms and browsers. This will ensure that the code patch is reliable and can be used in different environments.

Overall, the code patch looks good and should work well. With the improvements listed above, it will become even more robust and easier to maintain.

<svg viewBox="0 0 1024 1024" focusable="false"><path fill-rule="evenodd" d="M916.741 210.766c4.999-4.999 4.999-13.103 0-18.102l-45.255-45.255c-4.999-4.999-13.103-4.999-18.102 0L532.073 468.721 210.766 147.414c-4.999-5-13.103-5-18.102 0l-45.255 45.254c-4.999 5-4.999 13.104 0 18.102l321.307 321.307-321.307 321.307c-5 5.001-4.999 13.103 0 18.102l45.255 45.255c4.999 4.999 13.101 5 18.102 0l321.307-321.307 321.311 321.312c5.001 5 13.103 4.999 18.102 0l45.255-45.255c4.999-4.999 5-13.101 0-18.102L595.43 532.077l321.31-321.311Z"/></svg> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

our code review:

  1. The code patch seems to update an SVG element. It looks like the only change is that the line 'L595.43 532.077 916.74 210.766Z' was changed to 'L595.43 532.077l321.31-321.311Z'.

  2. We can't be sure without more context what this change does, but it appears to be a minor modification intended to improve the visual appearance of the SVG element.

  3. There don't appear to be any obvious bugs or risks with this code patch. However, without knowing more about the context in which it is used, it is impossible to give a comprehensive review.

<svg viewBox="0 0 1024 1024" focusable="false"><path d="m294.777 395.325 208.172 208.172c4.999 5 13.103 5 18.102 0l208.172-208.172c4.999-4.999 13.103-4.999 18.102 0l27.153 27.153c4.999 4.999 4.999 13.103 0 18.102L521.051 694.007c-4.999 4.999-13.103 4.999-18.102 0L249.522 440.58c-4.999-4.999-4.999-13.103 0-18.102l27.153-27.153c4.999-4.999 13.103-4.999 18.102 0Z"/></svg> No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with the code patch review.

The code patch adds a path element to an SVG element. The new path element looks correct and does not have any bugs. However, there is an improvement suggestion that can be made. The new path element could be optimised to reduce the size of the SVG element. This could be done by reducing the number of points in the path element or by using more efficient path notation.

@codecov
Copy link

codecov bot commented Feb 22, 2023

Codecov Report

Merging #1468 (ff3c97d) into main (f870a84) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head ff3c97d differs from pull request most recent head 55f352a. Consider uploading reports for the commit 55f352a to get more accurate results

@@           Coverage Diff           @@
##             main    #1468   +/-   ##
=======================================
  Coverage   92.74%   92.74%           
=======================================
  Files         327      327           
  Lines       30399    30409   +10     
  Branches     3495     3497    +2     
=======================================
+ Hits        28193    28203   +10     
  Misses       2206     2206           
Impacted Files Coverage Δ
packages/components/icon/src/definitions.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm danranVm merged commit 78918ae into IDuxFE:main Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants