Skip to content

Commit 3d22d27

Browse files
Merge pull request #14 from virtualcell/fix/ui-shorten-headers-10
Fix UI issues on /chat page and revamp onboarding modal with updated tools and new guidance section
2 parents 5b357ab + 43ff275 commit 3d22d27

File tree

2 files changed

+126
-207
lines changed

2 files changed

+126
-207
lines changed

frontend/app/chat/page.tsx

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
Search,
1010
FileText,
1111
BarChart3Icon as Diagram3,
12+
HelpCircle,
1213
} from "lucide-react";
1314
import { Button } from "@/components/ui/button";
1415
import { Alert, AlertDescription } from "@/components/ui/alert";
@@ -75,28 +76,27 @@ export default function ChatPage() {
7576
{/* Header */}
7677
<div className="mb-4 flex-shrink-0">
7778
<div className="flex items-center justify-between mb-1">
78-
<h1 className="text-2xl font-bold text-slate-900">AI Assistant</h1>
79-
<Button
80-
variant="outline"
81-
size="sm"
82-
onClick={() => setShowOnboarding(true)}
83-
className="flex items-center gap-2"
84-
>
85-
<MessageSquare className="h-4 w-4" />
86-
How to Use
87-
</Button>
79+
<div className="flex items-center gap-4 w-full">
80+
{/* Warning Alert - takes most of the space */}
81+
<Alert className="border-amber-200 bg-amber-50 py-2 flex-1">
82+
<AlertDescription className="text-amber-800 text-sm">
83+
<strong>⚠️ Important:</strong> Responses are AI generated and may contain errors, or hallucinations.
84+
</AlertDescription>
85+
</Alert>
86+
87+
<Button
88+
variant="outline"
89+
size="sm"
90+
onClick={() => setShowOnboarding(true)}
91+
className="flex items-center gap-2 flex-shrink-0"
92+
>
93+
<HelpCircle className="h-4 w-4" />
94+
How to Use
95+
</Button>
96+
</div>
8897
</div>
8998
</div>
9099

91-
{/* Persistent Warning */}
92-
<div className="mb-3 flex-shrink-0">
93-
<Alert className="border-amber-200 bg-amber-50 py-2">
94-
<AlertDescription className="text-amber-800 text-sm">
95-
<strong>⚠️ Important:</strong> Responses are AI generated and may contain errors, or hallucinations.
96-
</AlertDescription>
97-
</Alert>
98-
</div>
99-
100100
{/* Chat Interface - takes remaining space */}
101101
<div className="flex-1 w-full min-h-0">
102102
<ChatBox

0 commit comments

Comments
 (0)