Skip to content
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

Fixed default sidebar avatars #689

Merged
merged 6 commits into from
Oct 4, 2023
Merged

Conversation

EricBAndrews
Copy link
Member

@EricBAndrews EricBAndrews commented Oct 3, 2023

Checklist

  • I have read CONTRIBUTING.md
  • I have described what this PR contains
  • This PR addresses one or more open issues that were assigned to me:
    - closes Sidebar avatars broken #688
  • If this PR alters the UI, I have attached pictures/videos

Pull Request Information

This PR fixes two problems relating to sidebar avatars, described in #688. It also takes the opportunity to rename CommunitySidebarHeaderAvatar to SidebarHeaderAvatar, since it is used for both, and increase code reuse around default avatars (extracted AvatarType to be a regular enum conforming to AssociatedIcon, and created a DefaultAvatarView to unify handling fallback avatars.

Current Incoming
oldUser newUser
oldCommunity newCommunity

@EricBAndrews EricBAndrews requested a review from a team as a code owner October 3, 2023 02:21
@EricBAndrews EricBAndrews requested review from JakeShirley and mormaer and removed request for a team October 3, 2023 02:21
Copy link
Contributor

@boscojwho boscojwho left a comment

Choose a reason for hiding this comment

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

Looks good:

  • Tested in user profiles with/without profile pic.
  • Community sidebar.

@EricBAndrews EricBAndrews merged commit 1d83d19 into dev Oct 4, 2023
4 checks passed
@EricBAndrews EricBAndrews deleted the eric/profile-default-avatar branch October 4, 2023 00:08
boscojwho added a commit that referenced this pull request Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidebar avatars broken
2 participants