-
-
Notifications
You must be signed in to change notification settings - Fork 362
feat(CardUpload): add ActionButtonTemplate parameter #7027
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 (collapsed on small PRs)Reviewer's GuideThis PR enhances the CardUpload component by introducing an ActionButtonTemplate parameter and updating its Razor markup to render custom action buttons when provided. Class diagram for updated CardUpload componentclassDiagram
class CardUpload {
+RenderFragment<UploadFile>? IconTemplate
+RenderFragment<UploadFile>? ActionButtonTemplate
+string? NewIcon
}
CardUpload <|-- UploadFile
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.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7027 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 743 743
Lines 32453 32458 +5
Branches 4498 4499 +1
=========================================
+ Hits 32453 32458 +5
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:
|
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.
Pull Request Overview
This PR adds extensibility to the CardUpload component by introducing a customizable action button template. This allows developers to inject custom action buttons into the upload card's action area.
- Adds
ActionButtonTemplateparameter to CardUpload component - Renders custom action buttons before the built-in buttons (zoom, download, cancel)
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| CardUpload.razor.cs | Adds the ActionButtonTemplate parameter property with XML documentation |
| CardUpload.razor | Implements rendering logic for the custom action button template |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Link issues
fixes #7026
Summary By Copilot
Regression?
Risk
Verification
Packaging changes reviewed?
☑️ Self Check before Merge
Summary by Sourcery
New Features: