Skip to content

MudTreeView: Move checkbox icon customization from item to treeview#8750

Merged
henon merged 1 commit intoMudBlazor:devfrom
henon:treeview-checkbox
Apr 21, 2024
Merged

MudTreeView: Move checkbox icon customization from item to treeview#8750
henon merged 1 commit intoMudBlazor:devfrom
henon:treeview-checkbox

Conversation

@henon
Copy link
Contributor

@henon henon commented Apr 19, 2024

Description

Follow-up to #8661

It just doesn't make sense to be able to set different per-item checkbox icons in a tree view, so I moved the checkbox icon parameters into MudTreeView. Also discovered some minor things we overlooked in #8661

How Has This Been Tested?

existing tests

Type of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (fix or improvement to the website or code docs)

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added breaking change This change will require consumer code updates PR: needs review labels Apr 19, 2024
@henon henon added API change Modifies the public API surface v7 and removed PR: needs review labels Apr 19, 2024
@codecov
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 90.02%. Comparing base (28bc599) to head (e2c410e).
Report is 1103 commits behind head on dev.

Files with missing lines Patch % Lines
...lazor/Components/TreeView/MudTreeViewItem.razor.cs 0.00% 0 Missing and 3 partials ⚠️

❌ Your patch status has failed because the patch coverage (50.00%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #8750      +/-   ##
==========================================
+ Coverage   89.82%   90.02%   +0.19%     
==========================================
  Files         412      419       +7     
  Lines       11878    12176     +298     
  Branches     2364     2399      +35     
==========================================
+ Hits        10670    10962     +292     
+ Misses        681      669      -12     
- Partials      527      545      +18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@henon henon requested a review from ScarletKuro April 19, 2024 12:30
@henon henon merged commit d8723e1 into MudBlazor:dev Apr 21, 2024
@henon henon deleted the treeview-checkbox branch April 22, 2024 01:36
public bool Loading { get; set; }
private string CheckedIcon => MudTreeRoot?.CheckedIcon ?? Icons.Material.Filled.CheckBox;

private string UncheckedIcon => MudTreeRoot?.CheckedIcon ?? Icons.Material.Filled.CheckBoxOutlineBlank;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This copypaste error is responsible for issue #8940

henon added a commit to henon/MudBlazor that referenced this pull request May 11, 2024
henon added a commit to henon/MudBlazor that referenced this pull request May 11, 2024
@danielchalmers danielchalmers added regression Previously worked and now doesn't and removed accidental break labels Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API change Modifies the public API surface breaking change This change will require consumer code updates regression Previously worked and now doesn't

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants