Previously, the web UI was hard-coded to be served at `/` but applications which are *embedding* the ui are unlikely to host it there. This change makes the links between the various ui pages relative, addressing this problem. To make sure this doesn't rot, the internal http server now serves the ui at /ui/ (redirecting there from the root). I think we can all agree that the ui code and JavaScript is kind of a haphazard affair. I performed a great deal of clicking around to make sure the semantics didn't change and interestingly spent some time trying to fix semantics I later realized weren't actually there: I thought that when navigating to another page from a focused search (say `flamegraph?f=x`) the focus would be carried over. This doesn't seem to be the case, however. The point being, there's no test coverage and setting it up is way beyond what I can do here. I'm happy to manually verify whatever sequence of clicks is suggested, though. Touches https://github.com/cockroachdb/cockroach/pull/24145.
|
|
||
92 |
|
92 |
|
93 |
|
93 |
|
94 |
|
94 |
|
95 |
|
|
|
|
95 |
|
|
96 |
|
96 |
|
97 |
|
97 |
|
98 |
|
98 |
|
|
|
||
233 |
|
233 |
|
234 |
|
234 |
|
235 |
|
235 |
|
236 |
|
|
|
|
236 |
|
|
237 |
|
237 |
|
238 |
|
238 |
|
239 |
|
239 |
|
|
|
||
242 |
|
242 |
|
243 |
|
243 |
|
244 |
|
244 |
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
|
|
245 |
|
|
|
246 |
|
|
|
247 |
|
|
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
251 |
|
251 |
|
252 |
|
252 |
|
253 |
|
253 |
|
|
|
||
257 |
|
257 |
|
258 |
|
258 |
|
259 |
|
259 |
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
|
|
|
|
260 |
|
|
|
261 |
|
|
|
262 |
|
|
|
263 |
|
|
264 |
|
264 |
|
265 |
|
|
|
|
265 |
|
|
266 |
|
266 |
|
267 |
|
267 |
|
268 |
|
268 |
|
|
|
||
295 |
|
295 |
|
296 |
|
296 |
|
297 |
|
297 |
|
298 |
|
|
|
|
298 |
|
|
299 |
|
299 |
|
300 |
|
300 |
|
301 |
|
301 |
|
|
|
||
597 |
|
597 |
|
598 |
|
598 |
|
599 |
|
599 |
|
600 |
|
|
|
|
600 |
|
|
601 |
|
601 |
|
602 |
|
602 |
|
603 |
|
603 |
|
|
|
||
963 |
|
963 |
|
964 |
|
964 |
|
965 |
|
965 |
|
966 |
|
|
|
|
966 |
|
|
967 |
|
967 |
|
968 |
|
968 |
|
969 |
|
969 |
|
|
|
||
986 |
|
986 |
|
987 |
|
987 |
|
988 |
|
988 |
|
989 |
|
|
|
|
989 |
|
|
990 |
|
990 |
|
991 |
|
991 |
|
992 |
|
992 |
|
|
|
||
1007 |
|
1007 |
|
1008 |
|
1008 |
|
1009 |
|
1009 |
|
1010 |
|
|
|
|
1010 |
|
|
1011 |
|
1011 |
|
1012 |
|
1012 |
|
1013 |
|
1013 |
|
|
|
||
1044 |
|
1044 |
|
1045 |
|
1045 |
|
1046 |
|
1046 |
|
1047 |
|
|
|
|
1047 |
|
|
1048 |
|
1048 |
|
1049 |
|
1049 |
|
1050 |
|
1050 |
|
|
|
||
69 |
|
69 |
|
70 |
|
70 |
|
71 |
|
71 |
|
72 |
|
|
|
73 |
|
72 |
|
74 |
|
73 |
|
75 |
|
74 |
|
|
|
||
172 |
|
171 |
|
173 |
|
172 |
|
174 |
|
173 |
|
175 |
|
|
|
|
174 |
|
|
|
175 |
|
|
|
176 |
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
176 |
|
183 |
|
177 |
|
184 |
|
178 |
|
185 |
|
|
|
||
248 |
|
255 |
|
249 |
|
256 |
|
250 |
|
257 |
|
251 |
|
|
|
|
258 |
|
|
252 |
|
259 |
|
253 |
|
260 |
|
254 |
|
261 |
|
255 |
|
|
|
256 |
|
262 |
|
257 |
|
263 |
|
258 |
|
264 |
|
|
|
||
297 |
|
303 |
|
298 |
|
304 |
|
299 |
|
305 |
|
300 |
|
|
|
|
306 |
|
|
301 |
|
307 |
|
302 |
|
308 |
|
303 |
|
309 |
|
|
|
||
332 |
|
338 |
|
333 |
|
339 |
|
334 |
|
340 |
|
335 |
|
|
|
|
341 |
|
|
336 |
|
342 |
|
337 |
|
343 |
|
338 |
|
344 |
|
|
|
||
354 |
|
360 |
|
355 |
|
361 |
|
356 |
|
362 |
|
357 |
|
|
|
|
363 |
|
|
358 |
|
364 |
|
359 |
|
365 |
|
360 |
|
366 |
|
|
|
||
378 |
|
384 |
|
379 |
|
385 |
|
380 |
|
386 |
|
381 |
|
|
|
|
387 |
|
|
382 |
|
388 |
|
383 |
|
389 |
|
384 |
|
390 |
|
|
|
||
399 |
|
405 |
|
400 |
|
406 |
|
401 |
|
407 |
|
402 |
|
|
|
|
408 |
|
|
403 |
|
409 |
|
404 |
|
410 |
|
405 |
|
411 |
|