Skip to content

Commit 334e5a2

Browse files
fix(site): refine trajectory page UI and update base URL
- Update `getServerBaseUrl` to use `fletch.getpochi.com` - Refine `Tabs` and `TabsTrigger` styles for better consistency - Remove hardcoded theme variables and use standard background/border 🤖 Generated with [Pochi](https://getpochi.com) | [Task](https://app.getpochi.com/share/p-38aa4ccfc3104a4882e62b1b244decc0) Co-Authored-By: Pochi <noreply@getpochi.com>
1 parent c1ef193 commit 334e5a2

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

site/app/tasks/[name]/[jobId]/trajectory/components/trajectory-page.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,25 +60,25 @@ export function TrajectoryPage({
6060
<Tabs
6161
value={activeTab}
6262
onValueChange={setActiveTab}
63-
className="h-full gap-0 overflow-hidden rounded-xl border border-border/60 bg-background/70 backdrop-blur-sm shadow-sm"
63+
className="h-full gap-0 overflow-hidden rounded-xl border border-border bg-background/70 backdrop-blur-sm shadow-sm"
6464
>
65-
<div className="border-b border-border/50 bg-background/50 px-3 py-3 sm:px-4">
66-
<TabsList className="grid h-11 w-[300px] max-w-full grid-cols-3 items-stretch gap-1 border border-border/40 bg-background/60 p-1">
65+
<div className="border-b border-border bg-background/40 px-3 py-3 sm:px-4">
66+
<TabsList className="grid h-11 w-[300px] max-w-full grid-cols-3 items-stretch gap-1 rounded-xl bg-muted/30 p-1">
6767
<TabsTrigger
6868
value="trajectory"
69-
className="h-full w-full cursor-pointer border border-transparent py-0 leading-none text-muted-foreground transition-colors hover:bg-primary/10 hover:text-foreground data-[state=active]:border-primary/35 data-[state=active]:bg-primary/18 data-[state=active]:text-foreground data-[state=active]:shadow-none"
69+
className="h-full w-full cursor-pointer rounded-lg border-0 py-0 leading-none text-muted-foreground transition-colors hover:bg-primary/10 hover:text-foreground data-[state=active]:bg-primary/18 data-[state=active]:text-foreground data-[state=active]:shadow-none"
7070
>
7171
Trajectory
7272
</TabsTrigger>
7373
<TabsTrigger
7474
value="log"
75-
className="h-full w-full cursor-pointer border border-transparent py-0 leading-none text-muted-foreground transition-colors hover:bg-primary/10 hover:text-foreground data-[state=active]:border-primary/35 data-[state=active]:bg-primary/18 data-[state=active]:text-foreground data-[state=active]:shadow-none"
75+
className="h-full w-full cursor-pointer rounded-lg border-0 py-0 leading-none text-muted-foreground transition-colors hover:bg-primary/10 hover:text-foreground data-[state=active]:bg-primary/18 data-[state=active]:text-foreground data-[state=active]:shadow-none"
7676
>
7777
Log
7878
</TabsTrigger>
7979
<TabsTrigger
8080
value="test"
81-
className="h-full w-full cursor-pointer border border-transparent py-0 leading-none text-muted-foreground transition-colors hover:bg-primary/10 hover:text-foreground data-[state=active]:border-primary/35 data-[state=active]:bg-primary/18 data-[state=active]:text-foreground data-[state=active]:shadow-none"
81+
className="h-full w-full cursor-pointer rounded-lg border-0 py-0 leading-none text-muted-foreground transition-colors hover:bg-primary/10 hover:text-foreground data-[state=active]:bg-primary/18 data-[state=active]:text-foreground data-[state=active]:shadow-none"
8282
>
8383
Test
8484
</TabsTrigger>

site/app/tasks/[name]/[jobId]/trajectory/page.tsx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import type { CSSProperties } from "react";
21
import tasksData from "@/tasks.json";
32
import { TrajectoryPage } from "./components/trajectory-page";
43
import zealtConfig from "@/../zealt.json";
@@ -148,7 +147,7 @@ function splitTrialName(trialName: string): { taskName: string; jobId: string }
148147
}
149148

150149
function getServerBaseUrl() {
151-
return process.env.CLIPS_BASE_URL || 'https://cc.getpochi.com';
150+
return process.env.CLIPS_BASE_URL || 'https://fletch.getpochi.com';
152151
}
153152

154153
function getGithubOwnerRepo(): string {
@@ -279,15 +278,11 @@ export default async function TrajectoryRoutePage({
279278
}
280279
const stderrText = trialEntry?.stderr_text ?? null;
281280
const verifierText = trialEntry?.verifier_text ?? null;
282-
const pageThemeVars = {
283-
"--background": "oklch(0.268 0.004 106.643)",
284-
"--border": "oklch(0.362 0.01 106.893)",
285-
} as CSSProperties;
286281

287282
return (
288-
<div style={pageThemeVars} className="w-full h-screen bg-background text-foreground font-sans selection:bg-primary/20 overflow-hidden">
283+
<div className="w-full h-screen bg-background text-foreground font-sans selection:bg-primary/20 overflow-hidden">
289284
<div className="fixed inset-0 -z-10 h-full w-full bg-background bg-[radial-gradient(#2a2a2a_1px,transparent_1px)] [background-size:16px_16px] [mask-image:radial-gradient(ellipse_50%_50%_at_50%_50%,#000_70%,transparent_100%)] opacity-20 dark:opacity-40"></div>
290-
<div className="fixed inset-x-0 top-0 z-40 border-b border-border/50 bg-background/85 backdrop-blur-sm">
285+
<div className="fixed inset-x-0 top-0 z-40 bg-background/85 backdrop-blur-sm">
291286
<div className="mx-auto w-full max-w-[1400px] px-4 py-4 sm:px-7 lg:px-10">
292287
<div className="flex flex-col gap-1">
293288
<h1 className="truncate whitespace-nowrap font-bold text-2xl">

0 commit comments

Comments
 (0)