Enhance AssistantPage with new buttons and icon updates

Added new buttons for debugging and saving functionality, incorporating icons for better visual representation. Updated existing buttons to include icons, improving the overall user interface and interaction experience on the AssistantPage.
This commit is contained in:
Xin Wang
2026-06-07 09:21:20 +08:00
parent 02adf8991c
commit d090b49001

View File

@@ -11,13 +11,14 @@ import {
MoreHorizontal, MoreHorizontal,
Pencil, Pencil,
Plus, Plus,
Rocket,
Search, Search,
Sparkles, Sparkles,
Trash2, Trash2,
Workflow, Workflow,
ChevronLeft, ChevronLeft,
ChevronRight, ChevronRight,
Bug,
Save,
} from "lucide-react"; } from "lucide-react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
@@ -479,9 +480,10 @@ export function AssistantPage() {
<Button <Button
variant="outline" variant="outline"
size="lg" size="lg"
className="shrink-0 border-hairline-strong text-muted-foreground hover:text-foreground" className="shrink-0 gap-2 border-hairline-strong text-muted-foreground hover:text-foreground"
onClick={() => setView("list")} onClick={() => setView("list")}
> >
<ChevronLeft size={16} />
返回列表 返回列表
</Button> </Button>
</div> </div>
@@ -602,9 +604,10 @@ export function AssistantPage() {
<Button <Button
variant="outline" variant="outline"
size="lg" size="lg"
className="shrink-0 border-hairline-strong text-muted-foreground hover:text-foreground" className="shrink-0 gap-2 border-hairline-strong text-muted-foreground hover:text-foreground"
onClick={() => setView("list")} onClick={() => setView("list")}
> >
<ChevronLeft size={16} />
返回列表 返回列表
</Button> </Button>
</div> </div>
@@ -662,11 +665,22 @@ export function AssistantPage() {
className="gap-2 border-hairline-strong text-muted-foreground hover:text-foreground" className="gap-2 border-hairline-strong text-muted-foreground hover:text-foreground"
onClick={() => setView("list")} onClick={() => setView("list")}
> >
返回列表 <ChevronLeft size={16} />
返回
</Button> </Button>
<Button
variant="outline"
size="lg"
className="gap-2 border-hairline-strong text-muted-foreground hover:text-foreground"
>
<Bug size={16} />
调试
</Button>
<Button size="lg" className="gap-2"> <Button size="lg" className="gap-2">
<Rocket size={16} /> <Save size={16} />
创建助手 保存
</Button> </Button>
</div> </div>
</div> </div>