Skip to content

DEV: Upgrade AvatarFlair to Glimmer, enhance avatar handling #33695

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

Merged
merged 6 commits into from
Jul 21, 2025

Conversation

megothss
Copy link
Contributor

@megothss megothss commented Jul 18, 2025

  • Migrates the AvatarFlair component from classic to Glimmer, refactoring its implementation and template for improved maintainability and performance.
  • Updates the PostAvatar component to use the new value transformer for avatar size.
  • Registers the "post-avatar-size" value transformer in the transformer registry.
  • Adds comprehensive integration tests for both AvatarFlair and PostAvatar components, ensuring correct behavior for icon/image rendering, style application, and avatar size/template transformation.

megothss added 3 commits July 17, 2025 21:01
…ests

Rewrote the `AvatarFlair` component using Glimmer, removing legacy `MountWidget` usage.

Improved maintainability with helper functions for styles and icon handling.

Added integration tests to ensure correct rendering for icon and image flair scenarios.
Introduced the `post-avatar-size` value transformer to allow dynamic size adjustments for the `PostAvatar` component.

 Updated relevant tests to cover the transformer behavior, ensuring accurate rendering of avatar dimensions based on transformed values.
@megothss megothss changed the title DEV: Upgrade AvatarFlair component to Glimmer and add tests DEV: Upgrade AvatarFlair to Glimmer, enhance avatar handling Jul 18, 2025
Removed fixed size attribute in `PostAvatar` test integration setups and adjusted assertions to match updated avatar URL format.
Replaced fixed avatar URL with a regex pattern in `PostAvatar` test assertion to allow flexibility in URL matching.
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
@megothss megothss merged commit 6698a02 into main Jul 21, 2025
16 checks passed
@megothss megothss deleted the dev/glimmer-avatar-flair branch July 21, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants