Skip to content

Commit d0fc151

Browse files
committed
Tweaks
1 parent 201313a commit d0fc151

File tree

8 files changed

+23
-12
lines changed

8 files changed

+23
-12
lines changed

benchmark/apps/web/src/app/globals.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
}
136136
body {
137137
@apply bg-background text-foreground;
138-
scrollbar-color: var(--color-background) transparent; /* Firefox */
138+
scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* Firefox */
139+
scrollbar-width: thin;
139140
}
140141
}

benchmark/apps/web/src/app/home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function Home({ runs }: { runs: (Run & { taskMetrics: TaskMetrics | null
1616

1717
return (
1818
<>
19-
<Table className="border">
19+
<Table className="border border-t-0">
2020
<TableHeader>
2121
<TableRow>
2222
<TableHead>ID</TableHead>

benchmark/apps/web/src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ export default function RootLayout({
2020
}>) {
2121
return (
2222
<html lang="en">
23-
<body className={`${fontSans.variable} ${fontMono.variable} font-sans antialiased`}>
23+
<body className={`${fontSans.variable} ${fontMono.variable} font-sans antialiased pb-12`}>
2424
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
2525
<ReactQueryProvider>
2626
<Header />
27-
<div className="max-w-3xl mx-auto pb-12">{children}</div>
27+
{children}
2828
</ReactQueryProvider>
2929
</ThemeProvider>
3030
</body>

benchmark/apps/web/src/app/runs/[id]/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@ import { Run } from "./run"
55
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
66
const { id } = await params
77
const run = await findRun(Number(id))
8-
return <Run run={run} />
8+
9+
return (
10+
<div className="max-w-3xl mx-auto px-12 p-12">
11+
<Run run={run} />
12+
</div>
13+
)
914
}

benchmark/apps/web/src/app/runs/new/new-run.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use client"
22

3-
import { useCallback, useEffect, useRef, useState } from "react"
3+
import { useCallback, useRef, useState } from "react"
44
import { useRouter } from "next/navigation"
55
import { useForm, FormProvider } from "react-hook-form"
66
import { zodResolver } from "@hookform/resolvers/zod"
@@ -151,7 +151,6 @@ export function NewRun() {
151151
</Command>
152152
</PopoverContent>
153153
</Popover>
154-
155154
<FormMessage />
156155
</FormItem>
157156
)}
@@ -189,6 +188,7 @@ export function NewRun() {
189188
variant="inverted"
190189
maxCount={4}
191190
/>
191+
<FormMessage />
192192
</FormItem>
193193
)}
194194
/>
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { NewRun } from "./new-run"
22

3-
export default async function Page() {
4-
return <NewRun />
3+
export default function Page() {
4+
return (
5+
<div className="max-w-3xl mx-auto px-12 p-12">
6+
<NewRun />
7+
</div>
8+
)
59
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { HoppingLogo } from "./logo"
22

33
export const Header = () => (
4-
<div className="flex items-center justify-between border-b px-12 py-6 mb-12">
4+
<div className="flex items-center justify-between border-b px-12 py-6">
55
<HoppingLogo />
66
</div>
77
)

benchmark/apps/web/src/lib/schemas.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ import { z } from "zod"
66

77
export const createRunSchema = z
88
.object({
9-
model: z.string().min(1),
9+
model: z.string().min(1, { message: "Model is required." }),
1010
description: z.string().optional(),
1111
suite: z.enum(["full", "partial"]),
1212
exercises: z.array(z.string()).optional(),
1313
})
1414
.refine((data) => data.suite === "full" || (data.exercises || []).length > 0, {
15-
message: "Exercises are required for partial suite.",
15+
message: "Exercises are required when running a partial suite.",
16+
path: ["exercises"],
1617
})
1718

1819
export type CreateRun = z.infer<typeof createRunSchema>

0 commit comments

Comments
 (0)