Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class PerformanceInsightFormatter extends PerformanceTraceFormatter {
if (this.#insight instanceof Error) {
return false;
}
return this.#description().length > 0;
return typeof this.#description() === 'string';
}

getSuggestions(): ConversationSuggestions {
Expand Down Expand Up @@ -983,7 +983,7 @@ ${this.#links()}`;
}
}

#description(): string {
#description(): string | undefined {
switch (this.#insight.insightKey) {
case 'CLSCulprits':
return `Cumulative Layout Shifts (CLS) is a measure of the largest burst of layout shifts for every unexpected layout shift that occurs during the lifecycle of a page. This is a Core Web Vital and the thresholds for categorizing a score are:
Expand Down