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

Refactor IconStore. Add missing icon. Add tests. #2667

Conversation

kooliokey
Copy link
Contributor

@kooliokey kooliokey commented Sep 3, 2022

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • Bundle size optimization
  • Performance optimization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Other (about what?)

🔗 Related issue link

#2644

💡 Background and solution

Refactored icons code to remove having the names of icons in multiple places. All spots now use the class that lists icon names. Used a Lazy object for all icon names to avoid using reflection every time the list is needed.

📝 Changelog

Language Changelog
🇺🇸 English Add missing ZoomOut outline icon
🇨🇳 Chinese

☑️ Self Check before Merge

⚠️ Please check all items below before review. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions
Copy link

github-actions bot commented Sep 3, 2022

@kooliokey kooliokey force-pushed the pullrequest/refactor-and-test-icons branch from b9264ed to 8a1d6ab Compare September 4, 2022 04:15
@codecov
Copy link

codecov bot commented Sep 4, 2022

Codecov Report

Merging #2667 (2a7b5d4) into master (0dbde95) will increase coverage by 8.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2667      +/-   ##
==========================================
+ Coverage   31.87%   39.97%   +8.09%     
==========================================
  Files         505      543      +38     
  Lines       34374    25666    -8708     
  Branches        0      260     +260     
==========================================
- Hits        10956    10259     -697     
+ Misses      23418    15367    -8051     
- Partials        0       40      +40     
Impacted Files Coverage Δ
components/icon/internal/IconStore.cs 99.81% <ø> (+79.22%) ⬆️
components/icon/IconService.cs 48.83% <100.00%> (+13.54%) ⬆️
components/icon/IconType.cs 100.00% <100.00%> (+100.00%) ⬆️
components/list/ListItemLayout.cs 0.00% <0.00%> (-100.00%) ⬇️
components/list/ListItem.razor 0.00% <0.00%> (-88.89%) ⬇️
components/list/AntList.razor 0.00% <0.00%> (-83.88%) ⬇️
...omponents/form/Validate/Rule/FormRulesValidator.cs 0.00% <0.00%> (-78.95%) ⬇️
components/list/AntList.razor.cs 0.00% <0.00%> (-77.78%) ⬇️
components/list/ListItem.razor.cs 0.00% <0.00%> (-68.75%) ⬇️
components/form/Form.razor.cs 36.02% <0.00%> (-31.42%) ⬇️
... and 447 more

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

@ElderJames ElderJames merged commit 40e7aa7 into ant-design-blazor:master Sep 4, 2022
@kooliokey kooliokey deleted the pullrequest/refactor-and-test-icons branch September 6, 2022 01:01
ElderJames added a commit that referenced this pull request Sep 6, 2022
…tor IconStore. Add tests for IconService. (#2667)

Co-authored-by: James Yeung <shunjiey@hotmail.com>
@ElderJames ElderJames mentioned this pull request Oct 10, 2022
62 tasks
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.

None yet

2 participants