-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Conversation
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.
LGTM % nits
|
||
const tips = []; | ||
for (const groupId of groupIds) { | ||
const groupAudits = auditRefs.filter(ref => ref.group === groupId); |
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.
nit: groupAuditRefs
or .map(ref => ref.result)
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.
groupAuditRefs
done
assert.ok(gaugeElem.classList.contains('lh-badged--all')); | ||
|
||
// All tooltips should have x/x audits passed. | ||
const tips = gaugeElem.title.split(', '); |
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.
should we assert any length here?
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.
should we assert any length here?
good idea, done
lg |
last item in #6395!
Adds a tooltip as discussed in #6395 (comment) and comments below that.
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.