Skip to content

Commit 260f1c5

Browse files
Website: re-order things in the top details bar (#111)
Re-ordered the items in this top bar: ![image](https://github.com/user-attachments/assets/3ddca888-e309-4f29-a1cf-8663c5294199) Also, I changed the icon for timeout to be more "time" related. But in the future, can we find something more appropriate, like an hourglass?
1 parent 8acc585 commit 260f1c5

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

website-nextjs/src/components/admin/DetailSection.tsx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {
44
AppIcon,
55
DatabaseIcon,
66
GraphBarIcon,
7+
HistoryIcon,
78
LayoutGroupIcon,
89
VectorSquareIcon,
910
} from "@/assets/icons"
@@ -44,6 +45,20 @@ const DetailSection = () => {
4445
)
4546

4647
const detailData = [
48+
{
49+
label: "Benchmarks",
50+
value: availableBenchmarksCount,
51+
icon: <GraphBarIcon />,
52+
generateLabel: () => (
53+
<>
54+
Benchmarks:{" "}
55+
<span className="font-bold">
56+
{availableBenchmarksCount} {`(${avaliableInstance.length}`} instances
57+
{")"}
58+
</span>
59+
</>
60+
),
61+
},
4762
{
4863
label: "Solvers",
4964
value: availableSolvers.length,
@@ -59,23 +74,14 @@ const DetailSection = () => {
5974
),
6075
},
6176
{
62-
label: "Iteration",
77+
label: "Iterations",
6378
value: "1",
6479
icon: <LayoutGroupIcon />,
6580
},
6681
{
67-
label: "Benchmarks",
68-
value: availableBenchmarksCount,
69-
icon: <GraphBarIcon />,
70-
generateLabel: () => (
71-
<>
72-
Benchmarks:{" "}
73-
<span className="font-bold">
74-
{availableBenchmarksCount} {`(${avaliableInstance.length}`} instances
75-
{")"}
76-
</span>
77-
</>
78-
),
82+
label: "vCPUs",
83+
value: "2 (1 core)",
84+
icon: <AppIcon />,
7985
},
8086
{
8187
label: "Memory",
@@ -85,12 +91,7 @@ const DetailSection = () => {
8591
{
8692
label: "Timeout",
8793
value: "10 min",
88-
icon: <DatabaseIcon />,
89-
},
90-
{
91-
label: "vCPUs",
92-
value: "2 (1 core)",
93-
icon: <AppIcon />,
94+
icon: <HistoryIcon />,
9495
},
9596
]
9697

0 commit comments

Comments
 (0)