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: hide disclaimer text in timespan #13931

Merged
merged 3 commits into from
May 2, 2022
Merged

Conversation

adamraine
Copy link
Member

Closes #13929

@adamraine adamraine requested a review from a team as a code owner April 27, 2022 17:17
@adamraine adamraine requested review from brendankenny and removed request for a team April 27, 2022 17:17
this.dom.safelySetHref(calculatorLink, this._getScoringCalculatorHref(category.auditRefs));

// Only add the disclaimer with the score calculator link if the category was rendered with a score gauge.
if (element.querySelector('.lh-gauge__wrapper')) {
Copy link
Member Author

Choose a reason for hiding this comment

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

I used this as the condition because the disclaimer + calculator seem to be tied to the category gauge. It's easy to make this condition depend on gather mode if that would make more sense.

Copy link
Member

Choose a reason for hiding this comment

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

yeah, I think the only downside is that it makes it a more indirect condition, but you're right that at least for now, it's exactly when we show a score gauge that we'd want this message

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

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

Can you add tests (and/or add assertions to existing tests)? Otherwise LGTM!

@adamraine adamraine merged commit 1ad0823 into master May 2, 2022
@adamraine adamraine deleted the hide-disclaimer-timespan branch May 2, 2022 17:11
@connorjclark connorjclark mentioned this pull request May 9, 2022
30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inaccurate timespan performance group description
3 participants