Skip to content
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

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Sep 20, 2023

AAH-2289 & AAH-2652

When available, display rating scores on role list detail & collection detail screens.

Role list:

20230927015224

Ratings tooltip (on hover):

20230927015312

Ratings popover (on click):

20230927015317

Role detail header:

20230927015343

Collection list (item only, not card):

20230927020657

Collection detail header:

20230927021325

@github-actions github-actions bot added backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) labels Sep 20, 2023
@himdel himdel added community comunity mode feature and removed backport-4.7 This PR should be backported to stable-4.7 (2.4) backport-4.8 This PR should be backported to stable-4.8 (2.4) labels Sep 20, 2023
@himdel himdel force-pushed the ratings branch 7 times, most recently from dacfdd1 to 4b8550c Compare September 27, 2023 00:51
himdel added a commit to himdel/ansible-hub-ui that referenced this pull request Sep 27, 2023

Verified

This commit was signed with the committer’s verified signature.
himdel Martin Hradil
various changes that don't belong in ansible#4283

No-Issue
@himdel himdel force-pushed the ratings branch 2 times, most recently from 41cda78 to dead73b Compare September 27, 2023 01:52
himdel added a commit that referenced this pull request Sep 27, 2023

Verified

This commit was created on github.com and signed with GitHub’s verified signature. The key has expired.
various changes that don't belong in #4283

No-Issue
@himdel himdel force-pushed the ratings branch 2 times, most recently from 59055d4 to 466e250 Compare September 27, 2023 01:59

Verified

This commit was signed with the committer’s verified signature.
himdel Martin Hradil
…res/

so that fetch('/static/scores/collection.json') works the same as on beta-galaxy

Verified

This commit was signed with the committer’s verified signature.
himdel Martin Hradil
…nd collection detail, when available

Issue: AAH-2289
Issue: AAH-2652
@himdel himdel marked this pull request as ready for review September 27, 2023 02:16
Comment on lines +3 to +4
const collectionRatings = require('../static/scores/collection.json');
const roleRatings = require('../static/scores/role.json');
Copy link
Member

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?

Copy link
Collaborator Author

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.

Copy link
Contributor

@nixocio nixocio left a 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.

image

@himdel
Copy link
Collaborator Author

himdel commented Sep 27, 2023

Thanks, yup, but this time it's a non-change:

screenshot screenshots-main/__signature-keys.png changed: 292
292.555

diff--__signature-keys.png:

diff--__signature-keys

(webpack-config also expected to fail since there's an actual webpack config change for dev mode)

@himdel himdel merged commit ad1280c into ansible:master Sep 27, 2023
@himdel himdel deleted the ratings branch September 27, 2023 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community comunity mode feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants