Skip to content

doc(TableToolbarButton): update xml documentation#7635

Merged
ArgoZhang merged 4 commits intomainfrom
dev-xml
Feb 6, 2026
Merged

doc(TableToolbarButton): update xml documentation#7635
ArgoZhang merged 4 commits intomainfrom
dev-xml

Conversation

@ArgoZhang
Copy link
Copy Markdown
Member

@ArgoZhang ArgoZhang commented Feb 6, 2026

Link issues

fixes #7634

Summary By Copilot

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

☑️ 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
  • Merge the latest code from the main branch

Summary by Sourcery

Align table-related components’ XML documentation with their interface contracts and clarify toolbar visibility usage.

Documentation:

  • Replace ad-hoc or bilingual XML comments with interface-based references across InternalTableColumn and table toolbar components to keep documentation consistent and centralized.
  • Document that IToolbarComponent.IsShow can be used for permission-based control of button visibility.

Copilot AI review requested due to automatic review settings February 6, 2026 08:28
@bb-auto bb-auto bot added the documentation Improvements or additions to documentation label Feb 6, 2026
@bb-auto bb-auto bot added this to the v10.3.0 milestone Feb 6, 2026
@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai bot commented Feb 6, 2026

Reviewer's Guide

Standardizes and centralizes XML documentation for table-related components by replacing ad-hoc or bilingual comments with explicit cref-based references to their interface contracts, and adds a remark on toolbar visibility usage.

File-Level Changes

Change Details Files
Align InternalTableColumn XML docs with its interface contracts using cref-based inheritdoc.
  • Replaced bilingual, hand-written XML comments with <summary><inheritdoc cref="..."/></summary> pointing to corresponding ITableColumn, IEditorItem, and ILookup members.
  • Added missing documentation to previously undocumented properties such as Sortable, DefaultSort, DefaultSortOrder, TextWrap, TextEllipsis, and EditTemplate.
  • Ensured all editor, lookup, visibility, validation, formatting, and callback-related members consistently inherit documentation from their interfaces.
src/BootstrapBlazor/Components/Table/InternalTableColumn.cs
Make toolbar button and component parameters explicitly inherit documentation from ITableToolbarButton and IToolbarComponent.
  • Updated TableToolbarButton to reference specific ITableToolbarButton and IToolbarComponent members in its XML <inheritdoc cref="..."/> tags.
  • Updated TableToolbarPopConfirmButton parameter docs to inherit from IToolbarComponent.IsShow and ITableToolbarButton.IsEnableWhenSelectedOneRow/IsDisabledCallback.
  • Updated TableToolbarComponent to use cref-based inheritdoc for IsShow, tying it directly to IToolbarComponent.IsShow.
src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs
src/BootstrapBlazor/Components/Table/TableToolbarButton.cs
src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs
Extend IToolbarComponent.IsShow XML documentation with usage guidance.
  • Added a <remarks> tag to IToolbarComponent.IsShow explaining that it can be used for permission-based control of button visibility.
src/BootstrapBlazor/Components/Table/IToolbarComponent.cs

Assessment against linked issues

Issue Objective Addressed Explanation
#7634 Update XML documentation for Table toolbar-related components (including TableToolbarButton and related types) so that their properties correctly reference interface documentation via or equivalent.
#7634 Add sample code demonstrating how to use the TableToolbarButton (and/or related toolbar components) in documentation. The PR only modifies XML comments and adds and a remark on IsShow; it does not add any sample code files or documentation snippets.

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - I've left some high level feedback:

  • The XML comments that wrap <inheritdoc cref="..." /> inside a <summary> element (e.g., in InternalTableColumn and toolbar components) likely won’t be processed as intended by tooling; consider replacing them with a single top-level /// <inheritdoc cref="..." /> to ensure proper documentation inheritance.
  • For IToolbarComponent.IsShow, the new <remarks> is only in Chinese whereas the <summary> is bilingual; consider mirroring the bilingual pattern in the remarks to keep the documentation consistent for both language audiences.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The XML comments that wrap `<inheritdoc cref="..." />` inside a `<summary>` element (e.g., in `InternalTableColumn` and toolbar components) likely won’t be processed as intended by tooling; consider replacing them with a single top-level `/// <inheritdoc cref="..." />` to ensure proper documentation inheritance.
- For `IToolbarComponent.IsShow`, the new `<remarks>` is only in Chinese whereas the `<summary>` is bilingual; consider mirroring the bilingual pattern in the remarks to keep the documentation consistent for both language audiences.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (3508958) to head (fc04544).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #7635   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          749       749           
  Lines        33018     33040   +22     
  Branches      4581      4583    +2     
=========================================
+ Hits         33018     33040   +22     
Flag Coverage Δ
BB 100.00% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates XML documentation for TableToolbarButton components and related classes, transitioning from bilingual (Chinese/English) inline documentation to inheritdoc references that point to interface definitions. This improves maintainability by centralizing documentation at the interface level.

Changes:

  • Replaced inline bilingual documentation with <inheritdoc cref="Interface.Member"/> references in TableToolbarButton, TableToolbarPopConfirmButton, TableToolbarComponent, and InternalTableColumn classes
  • Added a <remarks> tag to IToolbarComponent.IsShow explaining its usage for permission control
  • All changes follow the established codebase convention for XML documentation

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
IToolbarComponent.cs Added remarks to IsShow property documenting its use for permission control
TableToolbarButton.cs Updated three property documentation blocks to use inheritdoc references
TableToolbarPopConfirmButton.cs Updated three property documentation blocks to use inheritdoc references
TableToolbarComponent.cs Updated IsShow property documentation to use inheritdoc reference
InternalTableColumn.cs Updated documentation for ~100+ properties to use inheritdoc references pointing to ITableColumn, IEditorItem, and ILookup interfaces

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ArgoZhang ArgoZhang merged commit 3828963 into main Feb 6, 2026
6 checks passed
@ArgoZhang ArgoZhang deleted the dev-xml branch February 6, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

doc(TableToolbarButton): update xml documentation

2 participants