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: New audit group clump for audits with warnings #6974

Conversation

connorjclark
Copy link
Collaborator

fixes #5327

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.

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.
Copy link
Collaborator

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,
Copy link
Collaborator

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) {
Copy link
Collaborator

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,
Copy link
Member

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.

Copy link
Collaborator Author

@connorjclark connorjclark Jan 10, 2019

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

@connorjclark
Copy link
Collaborator Author

Abandoning for #6989

@connorjclark connorjclark deleted the issue-5327-expand-passed-audits-group-with-warnings-pass-2 branch July 11, 2019 23:12
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.

Report: make sure warnings within Passed Audits are visible
3 participants