Skip to content

Conversation

@ArtyomSavchenko
Copy link
Member

@ArtyomSavchenko ArtyomSavchenko commented Sep 2, 2025

No description provided.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@huly-github-staging
Copy link

Connected to Huly®: UBERF-13435

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes avatar display for user profile cards in the Home component by adding proper person lookup logic for UserProfile objects. Previously, user profile cards were not showing avatars because the code only looked up persons by PersonId, but UserProfile objects require a different lookup mechanism using their person reference.

  • Added import for getPersonByPersonRefStore and UserProfile type
  • Added conditional logic to handle UserProfile card types by looking up person references
  • Modified person lookup to fallback to person reference when PersonId lookup fails

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko changed the title Fix person avatars for user profile cards in Home Fix avatar for system user in Home Sep 2, 2025
Signed-off-by: Artem Savchenko <armisav@gmail.com>
@ArtyomSavchenko ArtyomSavchenko merged commit 04ee2c0 into develop Sep 2, 2025
35 of 37 checks passed
@aonnikov aonnikov deleted the qfix/person-ref branch September 4, 2025 07:26
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.

4 participants