Add avatar and avatar list group components - Close #46, Close #47#50
Merged
Add avatar and avatar list group components - Close #46, Close #47#50
Conversation
Fixed avatar docs path
Params: - ignore push on main - triggered by pull request on main - triggered manually
Updated deprecated action from v2 to v3 Ref: https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
Params: - triggered pull request on main - triggered manually
Set the correct SDK version Removed NerdBank Git Versioning step
Added some tests for edge cases
albx
requested changes
Oct 13, 2025
Owner
There was a problem hiding this comment.
Please, check the warnings. Some InlineData on not null properties can be removed
|
|
||
| @if (HasUserStatus()) | ||
| { | ||
| <div class="avatar-status @GetUserStatusClass()"> |
Owner
There was a problem hiding this comment.
In this case I would add a ComputeUserStatusClasses() in which specify also the avatar-status class using the CssClassBuilder
|
|
||
| @if (HasPresenceStatus()) | ||
| { | ||
| <div class="avatar-presence @GetPresenceStatusClass()"> |
Owner
There was a problem hiding this comment.
In this case I would add a ComputeUserPresenceClasses() in which specify also the avatar-presence class using the CssClassBuilder
| return statusClass; | ||
| } | ||
|
|
||
| private string GetPresenceStatusClass() |
Owner
There was a problem hiding this comment.
as wrote in the .razor file in this case I'd rename this method in ComputeUserPresenceClasses and use the CssClassBuilder adding the base class too
albx
approved these changes
Oct 17, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New Avatar Component
Added the BitAvatar component to src/BitBlazor/Avatar/BitAvatar.razor and its logic to .razor.cs
Added the BitAvatarGroup component to src/BitBlazor/Avatar/BitAvatarGroup.razor and its logic to .razor.cs
Added the BitAvatarGroupItem component to src/BitBlazor/Avatar/BitAvatarGroup.razor and its logic to .razor.cs
Documentation and Sample Updates
Storybook Navigation
Close #46 , Close #47