-
-
Notifications
You must be signed in to change notification settings - Fork 331
feat(TreeView): add ShowToolbar parameter #5628
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
Conversation
Reviewer's Guide by SourceryThis pull request introduces a new No diagrams generated as the changes look simple and do not need a visual representation. File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ArgoZhang - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider adding a sample demonstrating the
ShowToolbarCallback
functionality to showcase its dynamic behavior. - The new
TreeViewRow
component introduces a lot of new parameters; consider grouping related parameters together for better readability.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟡 Complexity: 1 issue found
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5628 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 650 653 +3
Lines 29626 29344 -282
Branches 4166 4176 +10
==========================================
- Hits 29626 29344 -282 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #5627
Summary By Copilot
This pull request introduces several new features and improvements to the
TreeView
component in theBootstrapBlazor
project. The changes include adding a toolbar to theTreeView
, updating localization files, and refactoring the rendering logic for tree nodes.New Features:
TreeView
component, which can be enabled by setting theShowToolbar
parameter totrue
. The toolbar functionality can be customized, and data updates can be handled using theOnUpdateCallbackAsync
callback method. (src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor
[1] [2]src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs
[3] [4]Localization Updates:
en-US.json
) and Chinese (zh-CN.json
) localization files to include new entries for the toolbar feature in theTreeView
component. (src/BootstrapBlazor.Server/Locales/en-US.json
[1]src/BootstrapBlazor.Server/Locales/zh-CN.json
[2]Code Refactoring:
RenderTreeRow
method with theRenderRow
method, which uses the newTreeViewRow
component. This change simplifies the code and improves readability. (src/BootstrapBlazor/Components/TreeView/TreeView.razor
[1] [2]TreeView
component's code-behind file, and updated the documentation comments to be more consistent and clear. (src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs
[1] [2] [3] [4]Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Adds a toolbar to the TreeView component, allowing for customization and data updates via the OnUpdateCallbackAsync callback method.
New Features: