-
Notifications
You must be signed in to change notification settings - Fork 81
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
RoleRatings, CollectionRatings - display scores on role list/detail and collection detail #4283
Conversation
dacfdd1
to
4b8550c
Compare
various changes that don't belong in ansible#4283 No-Issue
41cda78
to
dead73b
Compare
various changes that don't belong in #4283 No-Issue
59055d4
to
466e250
Compare
…res/ so that fetch('/static/scores/collection.json') works the same as on beta-galaxy
…nd collection detail, when available Issue: AAH-2289 Issue: AAH-2652
const collectionRatings = require('../static/scores/collection.json'); | ||
const roleRatings = require('../static/scores/role.json'); |
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.
So you are using only these 2 files? in the next update I can include only the 2?
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.
As long as they stay small enough, absolutely :)
Chrome reports the transferred size (gzipped) as 16.8 kB and 40.9 kB, so it's faster to download and cache the whole thing than do per-item requests.
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.
@himdel There is a cypress test failing. Not sure if this one is relevant. Other than that good job.
AAH-2289 & AAH-2652
When available, display rating scores on role list detail & collection detail screens.
Role list:
Ratings tooltip (on hover):
Ratings popover (on click):
Role detail header:
Collection list (item only, not card):
Collection detail header: