feat(webui): add initial webui with websocket chat flow

This commit is contained in:
Xubin Ren
2026-04-18 18:51:53 +00:00
parent 6bfb75ed03
commit 9ed3031a42
76 changed files with 7088 additions and 38 deletions
+26
View File
@@ -0,0 +1,26 @@
import { MessageSquarePlus } from "lucide-react";
import { Button } from "@/components/ui/button";
export function EmptyState({
onNewChat,
}: {
onNewChat: () => void;
}) {
return (
<div className="flex h-full flex-col items-center justify-center gap-4 text-center">
<MessageSquarePlus
className="h-10 w-10 text-muted-foreground"
aria-hidden
/>
<div className="space-y-1">
<p className="text-lg font-medium">No chats yet</p>
<p className="max-w-sm text-sm text-muted-foreground">
Start a conversation your sessions are stored locally on the nanobot
workspace and stay available across reloads.
</p>
</div>
<Button onClick={onNewChat}>New chat</Button>
</div>
);
}