-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Lazy load stranger-users' metadata #7021
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
🎨 [Frontend] Lazy load stranger-users' metadata #7021
Conversation
|
Thanks! Do you need to click on the tooltip to trigger it, or hover over it? |
GitHK
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Just hovering the share icon will trigger the request and then populate the text 👍 |
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆗
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great!
|



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:

Lazy load on members list:

Related issue/s
How to test
Dev-ops checklist