Add missing new Icon parameter to BitPersona (#12230)#12231
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughThe BitPersona component now supports configurable icons for unknown personas. New parameters Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds support for customizing the “unknown persona” coin icon in BitPersona, aligning it with other Bit.BlazorUI components that support BitIconInfo-based icon overrides.
Changes:
- Added
UnknownIcon(BitIconInfo?) andUnknownIconName(string?) parameters toBitPersona(withUnknownIcontaking precedence). - Updated
BitPersonarendering to resolve unknown icon CSS classes viaBitIconInfo.From(...). - Updated the demo parameter metadata to include the new parameters.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/BlazorUI/Bit.BlazorUI/Components/Notifications/Persona/BitPersona.razor.cs | Introduces the new public parameters for configuring the unknown persona icon. |
| src/BlazorUI/Bit.BlazorUI/Components/Notifications/Persona/BitPersona.razor | Uses BitIconInfo.From to render unknown icon classes instead of a hard-coded Help icon. |
| src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/Pages/Components/Notifications/Persona/BitPersonaDemo.razor.cs | Documents the new parameters in the demo component parameter list. |
closes #12230
Summary by CodeRabbit
Release Notes