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

report(pwa): add tooltip to badge gauge #6689

Merged
merged 2 commits into from
Dec 10, 2018
Merged

report(pwa): add tooltip to badge gauge #6689

merged 2 commits into from
Dec 10, 2018

Conversation

brendankenny
Copy link
Member

last item in #6395!

Adds a tooltip as discussed in #6395 (comment) and comments below that.

screen shot 2018-11-29 at 18 57 01

Was a little more work than expected because we needed categoryGroups piped through to get their titles, but not too bad since they were mostly already nearby.

Copy link
Collaborator

@patrickhulce patrickhulce left a comment

Choose a reason for hiding this comment

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

LGTM % nits


const tips = [];
for (const groupId of groupIds) {
const groupAudits = auditRefs.filter(ref => ref.group === groupId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: groupAuditRefs or .map(ref => ref.result)

Copy link
Member Author

Choose a reason for hiding this comment

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

groupAuditRefs

done

assert.ok(gaugeElem.classList.contains('lh-badged--all'));

// All tooltips should have x/x audits passed.
const tips = gaugeElem.title.split(', ');
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we assert any length here?

Copy link
Member Author

Choose a reason for hiding this comment

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

should we assert any length here?

good idea, done

@paulirish
Copy link
Member

lg

@brendankenny brendankenny merged commit bc9c643 into master Dec 10, 2018
@brendankenny brendankenny deleted the pwatooltip branch December 10, 2018 19:52
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.

3 participants