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

Add LCP, TBT and FID to Distribution Graph #694

Merged
merged 2 commits into from Sep 22, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 22 additions & 4 deletions packages/server/src/ui/routes/project-dashboard/category-card.jsx
Expand Up @@ -129,17 +129,35 @@ const MetricDistributionGraphs = props => {
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['first-contentful-paint']}
/>
<MetricDistributionGraph
abbreviation={'SI'}
label={'Speed Index'}
statistics={stats('audit_speed-index_median')}
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['speed-index']}
abbreviation={'LCP'}
label={'First Contentful Paint'}
andrevandal marked this conversation as resolved.
Show resolved Hide resolved
statistics={stats('audit_largest-contentful-paint_median')}
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['largest-contentful-paint']}
/>
<MetricDistributionGraph
abbreviation={'TTI'}
label={'Time to Interactive'}
statistics={stats('audit_interactive_median')}
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['interactive']}
/>
<MetricDistributionGraph
abbreviation={'SI'}
label={'Speed Index'}
statistics={stats('audit_speed-index_median')}
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['speed-index']}
/>
<MetricDistributionGraph
abbreviation={'TBT'}
label={'Total Blocking Time'}
statistics={stats('audit_total-blocking-time_median')}
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['total-blocking-time']}
/>
<MetricDistributionGraph
abbreviation={'FID'}
label={'Max Potential FID'}
statistics={stats('audit_max-potential-fid_median')}
scoreLevels={SCORE_LEVEL_METRIC_THRESHOLDS['max-potential-fid']}
/>
</Fragment>
);
};
Expand Down