You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add CrUX Vis link to live metrics view (perf panel landing page).
This adds a link to the CrUX Vis viewer
(https://cruxvis.withgoogle.com/) for field data to the live metrics
view.
To be consistent with PageSpeed Insights, the link is placed in
parenthesis after the collection period. E.g.,
Collection period: Sep 15, 2025 - Oct 12, 2025 (View more history)
Note that when the collection period begin / end aren't rendered, then
this "(View more history)" link also won't be rendered. Also, the actual
link will use the same "scope" that the user has made in the panel, that
is url-level vs. origin level data as well as device type.
To get this done I added a normalizedUrl field to the CrUXManager; this
makes it so that we use the same URL for CrUX vis that we're using to
make CrUX API requests.
Bug: 405467537
Change-Id: I63271c6eab7ba30c69b948a07954b09a6e807a8c
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/7040531
Commit-Queue: Johannes Henkel <johannes@chromium.org>
Reviewed-by: Connor Clark <cjamcl@chromium.org>
Auto-Submit: Johannes Henkel <johannes@chromium.org>
Reviewed-by: Paul Irish <paulirish@chromium.org>
Copy file name to clipboardExpand all lines: front_end/panels/timeline/components/LiveMetricsView.ts
+37-1Lines changed: 37 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,14 @@ const UIStrings = {
58
58
* @description Title of a view that shows performance metrics from the local environment.
59
59
*/
60
60
localMetrics: 'Local metrics',
61
+
/**
62
+
*@description Text for the link to the historical field data for the specific URL or origin that is shown. This link text appears in parenthesis after the collection period information in the field data dialog. The link opens the CrUX Vis viewer (https://cruxvis.withgoogle.com).
63
+
*/
64
+
fieldDataHistoryLink: 'View history',
65
+
/**
66
+
*@description Tooltip for the CrUX Vis viewer link which shows the history of the field data for the specific URL or origin.
67
+
*/
68
+
fieldDataHistoryTooltip: 'View field data history in CrUX Vis',
61
69
/**
62
70
* @description Accessible label for a section that logs user interactions and layout shifts. A layout shift is an event that shifts content in the layout of the page causing a jarring experience for the user.
63
71
*/
@@ -840,6 +848,32 @@ export class LiveMetricsView extends LegacyWrapper.LegacyWrapper.WrappableCompon
0 commit comments