Skip to content

[ShadcnAdminUi] Allow applications to provide a user menu avatar - #425

Merged
loic425 merged 2 commits into
Sylius:mainfrom
loic425:feat/shadcn-user-menu-avatar
Nov 27, 2026
Merged

loic425 merged 2 commits into
Sylius:mainfrom
loic425:feat/shadcn-user-menu-avatar

Conversation

@loic425

@loic425 loic425 commented Nov 27, 2026

Copy link
Copy Markdown
Member

Moved from Sylius/ShadcnAdminUi#2 (the package now lives in this monorepo). Original work by @Prometee, authorship kept on the commit.

Summary

  • Expose an optional avatar_url on the user dropdown component, resolved through an overridable resolveAvatarUrl() method, without assuming a specific user model or storage provider.
  • Render the avatar when a URL is provided, while keeping the initials when no image is configured or the image fails to load.
  • Cover the default, custom URL and fallback cases.

Fixes Sylius/ShadcnAdminUi#1

@loic425
loic425 merged commit c6f9280 into Sylius:main Nov 27, 2026
36 checks passed
@loic425
loic425 deleted the feat/shadcn-user-menu-avatar branch November 27, 2026 15:02
@loic425

loic425 commented Nov 27, 2026

Copy link
Copy Markdown
Member Author

Thx @Prometee 🎉

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.

Allow applications to display an avatar in the admin user menu

2 participants