Commit 8d48ff8
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>1 parent 15d6638 commit 8d48ff8
File tree
6 files changed
+82
-5
lines changed- front_end
- models/crux-manager
- panels/timeline/components
6 files changed
+82
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
352 | 354 | | |
353 | 355 | | |
354 | 356 | | |
| 357 | + | |
355 | 358 | | |
356 | 359 | | |
357 | 360 | | |
| |||
528 | 531 | | |
529 | 532 | | |
530 | 533 | | |
| 534 | + | |
531 | 535 | | |
532 | 536 | | |
533 | 537 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| 203 | + | |
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
| |||
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | | - | |
254 | | - | |
| 256 | + | |
| 257 | + | |
255 | 258 | | |
256 | | - | |
257 | | - | |
| 259 | + | |
| 260 | + | |
258 | 261 | | |
259 | 262 | | |
260 | 263 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
88 | 92 | | |
89 | 93 | | |
90 | 94 | | |
| |||
709 | 713 | | |
710 | 714 | | |
711 | 715 | | |
| 716 | + | |
712 | 717 | | |
713 | 718 | | |
714 | 719 | | |
| |||
800 | 805 | | |
801 | 806 | | |
802 | 807 | | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
803 | 835 | | |
804 | 836 | | |
805 | 837 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
840 | 848 | | |
841 | 849 | | |
842 | 850 | | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
843 | 877 | | |
844 | 878 | | |
845 | 879 | | |
| |||
851 | 885 | | |
852 | 886 | | |
853 | 887 | | |
| 888 | + | |
| 889 | + | |
854 | 890 | | |
855 | 891 | | |
856 | 892 | | |
857 | 893 | | |
858 | | - | |
| 894 | + | |
859 | 895 | | |
860 | 896 | | |
861 | 897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
0 commit comments