Skip to content

Commit c6350b8

Browse files
authored
[ez][HUD] Fix metrics page layout after #6956 (#6965)
Metrics page very unaligned after #6956 Old: <img width="1719" height="783" alt="image" src="https://github.com/user-attachments/assets/42423730-38df-42af-a56a-6093a1ab8c1f" /> New: <img width="1720" height="792" alt="image" src="https://github.com/user-attachments/assets/23079b61-2453-4206-becf-9b1c7c50080a" />
1 parent 53cff80 commit c6350b8

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

torchci/pages/metrics.tsx

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -752,28 +752,6 @@ export default function Page() {
752752
</Stack>
753753
</Grid2>
754754

755-
<Grid2
756-
container
757-
size={{ xs: 6, md: 3, lg: 2 }}
758-
justifyContent={"stretch"}
759-
>
760-
<Stack
761-
justifyContent={"space-between"}
762-
flexGrow={1}
763-
flexWrap="wrap"
764-
spacing={1}
765-
>
766-
<ScalarPanel
767-
title={"PR landing time (avg)"}
768-
queryName={"pr_landing_time_avg"}
769-
metricName={"avg_hours"}
770-
valueRenderer={(value) => value.toFixed(1) + "h"}
771-
queryParams={timeParams}
772-
badThreshold={(value) => value > 24} // 24 hours
773-
/>
774-
</Stack>
775-
</Grid2>
776-
777755
<Grid2
778756
container
779757
size={{ xs: 6, md: 3, lg: 2 }}
@@ -793,6 +771,14 @@ export default function Page() {
793771
queryParams={timeParams}
794772
badThreshold={(value) => value > 2.0} // 2.0 average retries
795773
/>
774+
<ScalarPanel
775+
title={"PR landing time (avg)"}
776+
queryName={"pr_landing_time_avg"}
777+
metricName={"avg_hours"}
778+
valueRenderer={(value) => value.toFixed(1) + "h"}
779+
queryParams={timeParams}
780+
badThreshold={(value) => value > 24} // 24 hours
781+
/>
796782
</Stack>
797783
</Grid2>
798784

0 commit comments

Comments
 (0)