refactor(Table): restore AutoFitColumnWidthCallback invoke method#8015
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRestores a JavaScript-invokable, but now obsolete, AutoFitColumnWidthCallback entry point that forwards to the existing ResizeColumnCallback, preserving backward compatibility for external callers without changing the new implementation path. Sequence diagram for restored AutoFitColumnWidthCallback delegationsequenceDiagram
participant JavaScript
participant Table
JavaScript->>Table: AutoFitColumnWidthCallback(fieldName, columnState)
Table->>Table: ResizeColumnCallback(fieldName, columnState)
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.
Pull request overview
Restores the previously removed AutoFitColumnWidthCallback JS-invokable method on Table as an obsolete shim that delegates to the new ResizeColumnCallback, preserving backward compatibility for callers/JS that still reference the old name. Also bumps the package version.
Changes:
- Re-add
AutoFitColumnWidthCallbackas a[JSInvokable],[Obsolete],[ExcludeFromCodeCoverage]wrapper callingResizeColumnCallback. - Bump version from
10.6.1-beta23to10.6.1-beta24.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/BootstrapBlazor/Components/Table/Table.razor.cs | Adds obsolete AutoFitColumnWidthCallback shim delegating to ResizeColumnCallback. |
| src/BootstrapBlazor/BootstrapBlazor.csproj | Version bump to 10.6.1-beta24. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8015 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 766 766
Lines 34123 34123
Branches 4692 4692
=========================================
Hits 34123 34123
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Link issues
fixes #8014
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
Restore a JavaScript-invokable callback entry point for auto-fitting table column widths while directing callers toward the newer resize callback API.
Bug Fixes:
Enhancements: