Skip to content

Conversation

@odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Jan 9, 2025

What do these changes do?

After introducing the "stranger-users" feature, when displaying a card (study, template, service), in order to populate the sharing icon's tooltip with the userName/groupName of the sharees, the frontend requests the information of the groups/strangers_group_id/users's metadata, which can be an expensive call if it's made in parallel by all shared resources represented in the cards.

This PR changes that logic and makes this information to be populated/requested only when it's required.

Lazy load on tooltip:
LazyLoadTooltip

Lazy load on members list:
LazyLoadList

Related issue/s

How to test

Dev-ops checklist

@odeimaiz odeimaiz self-assigned this Jan 9, 2025
@odeimaiz odeimaiz added t:enhancement Improvement or request on an existing feature a:frontend issue affecting the front-end (area group) labels Jan 9, 2025
@odeimaiz odeimaiz marked this pull request as ready for review January 10, 2025 12:29
@odeimaiz odeimaiz changed the title 🎨 [Frontend] Lazy load users' metadata 🎨 [Frontend] Lazy load stranger-users' metadata Jan 10, 2025
@matusdrobuliak66
Copy link
Collaborator

matusdrobuliak66 commented Jan 10, 2025

Thanks! Do you need to click on the tooltip to trigger it, or hover over it?

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

👍

@odeimaiz
Copy link
Member Author

odeimaiz commented Jan 10, 2025

Thanks! Do you need to click on the tooltip to trigger it, or can you just hover over it?

Just hovering the share icon will trigger the request and then populate the text 👍

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

🆗

@odeimaiz odeimaiz enabled auto-merge (squash) January 10, 2025 15:37
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

great!

@odeimaiz odeimaiz added this to the Singularity milestone Jan 13, 2025
@sonarqubecloud
Copy link

@odeimaiz odeimaiz merged commit ee36743 into ITISFoundation:master Jan 13, 2025
55 checks passed
@matusdrobuliak66 matusdrobuliak66 mentioned this pull request Jan 15, 2025
58 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a:frontend issue affecting the front-end (area group) t:enhancement Improvement or request on an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants