-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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: New audit group clump for audits with warnings #6974
report: New audit group clump for audits with warnings #6974
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.
screenshot? :D
const expandable = clumpInfo.expandable; | ||
const expandByDefault = clumpInfo.expandByDefault; | ||
|
||
if (!expandable) { | ||
// Failed audit clump is always expanded and not nested in an lh-audit-group. |
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.
update comment and names now then?
const elements = this._renderGroupedAudits(auditRefs, groupDefinitions, {expandable: false}); | ||
const elements = this._renderGroupedAudits(auditRefs, groupDefinitions, { | ||
expandable: false, | ||
expandByDefault: false, |
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.
this one is a bit confusing since won't it be expanded by default? how else would you expand it? maybe this value shouldn't matter when expandable
is false
@@ -196,6 +211,9 @@ class CategoryRenderer { | |||
if (expandable) { | |||
const chevronEl = summaryInnerEl.appendChild(this._createChevron()); | |||
chevronEl.title = Util.UIStrings.auditGroupExpandTooltip; | |||
if (opts.expandByDefault) { |
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.
seems like this is ripe for some cleanup like our boolean traps over in page load.
WDYT about an enum instead of the two booleans type ExpansionBehavior = 'open-permanent' | 'closed-expandable' | 'open-expandable'
or something like that?
className: 'lh-clump--failed', | ||
expandable: false, | ||
expandByDefault: false, |
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.
arg, sorry, I was hoping you'd wait for #6930. I think a lot of this file can be deleted. I'm not sure it even makes sense to have clumps anymore since groups and clumps won't be at all alike anymore.
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.
ok, i'll wait for that. third time's a charm
Abandoning for #6989 |
fixes #5327