Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

feat: improve UX with tooltips, IME fix, and visual polish

Genereb7c857c0167
diff --git a/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx b/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx
index 7dee10855..94dcb436e 100644
--- a/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx
+++ b/src/web/src/app/(app)/w/[slug]/runtimes/page.tsx
@@ -454,14 +454,15 @@ export default function RuntimesPage() {
Bring this machine online:
</p>
<div
- className="rounded-md bg-muted px-2.5 py-1.5 font-mono text-[11px] text-muted-foreground cursor-pointer hover:bg-muted/80 transition-colors"
+ className="relative overflow-hidden rounded-md bg-muted px-2.5 py-1.5 font-mono text-[11px] text-muted-foreground cursor-pointer hover:bg-muted/80 transition-colors"
onClick={() => {
navigator.clipboard.writeText(`${CLI_CMD} daemon start`);
toast.success("Copied to clipboard");
}}
title="Click to copy"
>
- {CLI_CMD} daemon start
+ <span className="absolute inset-0 -translate-x-full animate-[shimmer_2.5s_infinite] bg-gradient-to-r from-transparent via-[var(--shimmer-peak)] to-transparent" />
+ <span className="relative">{CLI_CMD} daemon start</span>
</div>
</div>
)}
diff --git a/src/web/src/app/globals.css b/src/web/src/app/globals.css
index b7676edda..11d78e3a6 100644
--- a/src/web/src/app/globals.css
+++ b/src/web/src/app/globals.css
@@ -889,23 +889,23 @@
background: transparent;
}
.markdown-user code:not(pre code) {
- background: hsl(var(--primary-foreground) / 0.15);
+ background: oklch(from var(--primary-foreground) l c h / 0.15);
}
.markdown-user blockquote {
- border-left-color: hsl(var(--primary-foreground) / 0.4);
+ border-left-color: oklch(from var(--primary-foreground) l c h / 0.4);
color: inherit;
opacity: 0.85;
}
.markdown-user a {
color: inherit;
- text-decoration-color: hsl(var(--primary-foreground) / 0.6);
+ text-decoration-color: oklch(from var(--primary-foreground) l c h / 0.6);
}
.markdown-user th {
- background: hsl(var(--primary-foreground) / 0.1);
+ background: oklch(from var(--primary-foreground) l c h / 0.1);
}
.markdown-user th,
.markdown-user td {
- border-color: hsl(var(--primary-foreground) / 0.2);
+ border-color: oklch(from var(--primary-foreground) l c h / 0.2);
}
/* ── TipTap editor styles ── */
diff --git a/src/web/src/app/layout.tsx b/src/web/src/app/layout.tsx
index c112650a4..a72c1c912 100644
--- a/src/web/src/app/layout.tsx
+++ b/src/web/src/app/layout.tsx
@@ -10,6 +10,7 @@ import {
import { ThemeProvider } from "@/components/theme-provider";
import { ThemeScript } from "@/components/theme-script";
import { ToasterProvider } from "@/components/toaster-provider";
+import { TooltipProvider } from "@/components/ui/tooltip";
import "./globals.css";
const dmSans = DM_Sans({
@@ -82,7 +83,9 @@ export default function RootLayout({
</head>
<body className="min-h-full flex flex-col">
<ThemeProvider attribute="class" defaultTheme="system" enableSystem>
- {children}
+ <TooltipProvider>
+ {children}
+ </TooltipProvider>
<ToasterProvider />
</ThemeProvider>
</body>
diff --git a/src/web/src/components/agent-chat/agent-chat-view.tsx b/src/web/src/components/agent-chat/agent-chat-view.tsx
index 23274d0bc..0e6916ed5 100644
--- a/src/web/src/components/agent-chat/agent-chat-view.tsx
+++ b/src/web/src/components/agent-chat/agent-chat-view.tsx
@@ -25,6 +25,7 @@ import { useAgentContext } from "@/contexts/agent-context";
import { toast } from "sonner";
import { cn } from "@/lib/utils";
import { Skeleton } from "@/components/ui/skeleton";
+import { Tooltip, TooltipTrigger, TooltipContent } from "@/components/ui/tooltip";
import { ArrowUp, Box, FileText, Loader2, Mic, Paperclip, RotateCcw, Square, X } from "lucide-react";
import { useSpeechRecognition } from "@/hooks/use-speech-recognition";
import { ArtifactSheet, formatSize } from "@/components/agent-chat/artifact-sheet";
@@ -760,7 +761,7 @@ export function AgentChatView() {
};
const handleKeyDown = (e: React.KeyboardEvent) => {
- if (e.key === "Enter" && !e.shiftKey) {
+ if (e.key === "Enter" && !e.shiftKey && !e.nativeEvent.isComposing) {
e.preventDefault();
handleSend();
}
@@ -988,34 +989,42 @@ export function AgentChatView() {
<div className="flex items-center justify-between px-2 pb-2 pt-0.5">
<div className="flex items-center gap-1">
- <Button
- variant="ghost"
- size="icon-sm"
- onClick={handleReset}
- disabled={resetting || !conversation || messages.length === 0}
- className="rounded-lg text-muted-foreground/60 hover:text-foreground transition-colors duration-200"
- title="New conversation"
- >
- {resetting ? (
- <Loader2 className="size-3.5 animate-spin" />
- ) : (
- <RotateCcw className="size-3.5" />
- )}
- </Button>
- <Button
- variant="ghost"
- size="icon-sm"
- onClick={() => setArtifactSheetOpen(true)}
- className="relative rounded-lg text-muted-foreground/60 hover:text-foreground transition-colors duration-200"
- title="View artifacts"
- >
- <Box className="size-3.5" />
- {agentArtifacts.length > 0 && (
- <span className="absolute -top-0.5 -right-0.5 flex size-3.5 items-center justify-center rounded-full bg-primary text-[9px] font-medium text-primary-foreground">
- {agentArtifacts.length}
- </span>
- )}
- </Button>
+ <Tooltip>
+ <TooltipTrigger render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ onClick={handleReset}
+ disabled={resetting || !conversation || messages.length === 0}
+ className="rounded-lg text-muted-foreground/60 hover:text-foreground transition-colors duration-200"
+ />
+ }>
+ {resetting ? (
+ <Loader2 className="size-3.5 animate-spin" />
+ ) : (
+ <RotateCcw className="size-3.5" />
+ )}
+ </TooltipTrigger>
+ <TooltipContent side="top">New conversation</TooltipContent>
+ </Tooltip>
+ <Tooltip>
+ <TooltipTrigger render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ onClick={() => setArtifactSheetOpen(true)}
+ className="relative rounded-lg text-muted-foreground/60 hover:text-foreground transition-colors duration-200"
+ />
+ }>
+ <Box className="size-3.5" />
+ {agentArtifacts.length > 0 && (
+ <span className="absolute -top-0.5 -right-0.5 flex size-3.5 items-center justify-center rounded-full bg-primary text-[9px] font-medium text-primary-foreground">
+ {agentArtifacts.length}
+ </span>
+ )}
+ </TooltipTrigger>
+ <TooltipContent side="top">Artifacts</TooltipContent>
+ </Tooltip>
</div>
<div className="flex items-center gap-1">
<input
@@ -1025,62 +1034,80 @@ export function AgentChatView() {
className="hidden"
onChange={handleFileSelect}
/>
- <Button
- variant="ghost"
- size="icon-sm"
- onClick={() => fileInputRef.current?.click()}
- disabled={sending}
- className="rounded-lg text-muted-foreground/60 hover:text-foreground transition-colors duration-200"
- title="Attach files"
- >
- <Paperclip className="size-3.5" />
- </Button>
+ <Tooltip>
+ <TooltipTrigger render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ onClick={() => fileInputRef.current?.click()}
+ disabled={sending}
+ className="rounded-lg text-muted-foreground/60 hover:text-foreground transition-colors duration-200"
+ />
+ }>
+ <Paperclip className="size-3.5" />
+ </TooltipTrigger>
+ <TooltipContent side="top">Attach files</TooltipContent>
+ </Tooltip>
{speechSupported && (
- <Button
- variant="ghost"
- size="icon-sm"
- onClick={toggleSpeech}
- disabled={sending}
- className={cn(
- "rounded-lg transition-colors duration-200",
- listening
- ? "text-red-500 hover:text-red-600 bg-red-500/10"
- : "text-muted-foreground/60 hover:text-foreground"
- )}
- title={listening ? "Stop recording" : "Voice input"}
- >
- <Mic className={cn("size-3.5", listening && "animate-pulse")} />
- </Button>
+ <Tooltip>
+ <TooltipTrigger render={
+ <Button
+ variant="ghost"
+ size="icon-sm"
+ onClick={toggleSpeech}
+ disabled={sending}
+ className={cn(
+ "rounded-lg transition-colors duration-200",
+ listening
+ ? "text-red-500 hover:text-red-600 bg-red-500/10"
+ : "text-muted-foreground/60 hover:text-foreground"
+ )}
+ />
+ }>
+ <Mic className={cn("size-3.5", listening && "animate-pulse")} />
+ </TooltipTrigger>
+ <TooltipContent side="top">{listening ? "Stop recording" : "Voice input"}</TooltipContent>
+ </Tooltip>
)}
{isTaskActive && !input.trim() && !sending ? (
- <Button
- size="icon-sm"
- onClick={handleStop}
- disabled={cancelling}
- className="rounded-lg bg-red-500/10 text-red-500 hover:bg-red-500/20 transition-colors duration-200"
- >
- {cancelling ? (
- <Loader2 className="size-3.5 animate-spin" />
- ) : (
- <Square className="size-3.5 fill-current" />
- )}
- </Button>
+ <Tooltip>
+ <TooltipTrigger render={
+ <Button
+ size="icon-sm"
+ onClick={handleStop}
+ disabled={cancelling}
+ className="rounded-lg bg-red-500/10 text-red-500 hover:bg-red-500/20 transition-colors duration-200"
+ />
+ }>
+ {cancelling ? (
+ <Loader2 className="size-3.5 animate-spin" />
+ ) : (
+ <Square className="size-3.5 fill-current" />
+ )}
+ </TooltipTrigger>
+ <TooltipContent side="top">Stop task</TooltipContent>
+ </Tooltip>
) : (
- <Button
- size="icon-sm"
- onClick={handleSend}
- disabled={!input.trim() || sending}
- className={cn(
- "rounded-lg transition-opacity duration-200",
- !input.trim() && "opacity-40"
- )}
- >
- {sending ? (
- <Loader2 className="size-3.5 animate-spin" />
- ) : (
- <ArrowUp className="size-3.5" />
- )}
- </Button>
+ <Tooltip>
+ <TooltipTrigger render={
+ <Button
+ size="icon-sm"
+ onClick={handleSend}
+ disabled={!input.trim() || sending}
+ className={cn(
+ "rounded-lg transition-opacity duration-200",
+ !input.trim() && "opacity-40"
+ )}
+ />
+ }>
+ {sending ? (
+ <Loader2 className="size-3.5 animate-spin" />
+ ) : (
+ <ArrowUp className="size-3.5" />
+ )}
+ </TooltipTrigger>
+ <TooltipContent side="top">Send</TooltipContent>
+ </Tooltip>
)}
</div>
</div>
diff --git a/src/web/src/components/agent-form-fields.tsx b/src/web/src/components/agent-form-fields.tsx
index 2bd9a0334..1e562b87a 100644
--- a/src/web/src/components/agent-form-fields.tsx
+++ b/src/web/src/components/agent-form-fields.tsx
@@ -87,7 +87,7 @@ export function GeneralFields({
return (
<>
<div className="space-y-1.5">
- <Label htmlFor="agent-name">Name</Label>
+ <Label htmlFor="agent-name">Name <span className="text-destructive">*</span></Label>
<Input
id="agent-name"
value={name}
@@ -140,7 +140,7 @@ export function GeneralFields({
</div>
<div className="space-y-1.5">
- <Label htmlFor="agent-runtime">Runtime</Label>
+ <Label htmlFor="agent-runtime">Runtime <span className="text-destructive">*</span></Label>
<RuntimeSelect
value={runtimeId}
onValueChange={(newId) => {
diff --git a/src/web/src/components/app-sidebar.tsx b/src/web/src/components/app-sidebar.tsx
index 783400c66..ecab6efda 100644
--- a/src/web/src/components/app-sidebar.tsx
+++ b/src/web/src/components/app-sidebar.tsx
@@ -7,6 +7,7 @@ import { Logo } from "@/components/logo";
import { cn } from "@/lib/utils";
import { Monitor, SunMoon, Plus, LayoutGrid, CalendarDays, Settings, PinIcon, PinOffIcon } from "lucide-react";
import { Skeleton } from "@/components/ui/skeleton";
+import { Tooltip, TooltipTrigger, TooltipContent } from "@/components/ui/tooltip";
import { useTheme } from "next-themes";
import { NavUser } from "@/components/nav-user";
import {
@@ -20,7 +21,7 @@ export function AppSidebar({ onNavigate }: { onNavigate?: () => void } = {}) {
const router = useRouter();
const pathname = usePathname();
const searchParams = useSearchParams();
- const { agents, loading, pins, handlePinAgent, handleUnpinAgent } = useAgentContext();
+ const { agents, runtimes, loading, pins, handlePinAgent, handleUnpinAgent } = useAgentContext();
const { slug } = useWorkspace();
const { resolvedTheme, setTheme } = useTheme();
@@ -34,6 +35,7 @@ export function AppSidebar({ onNavigate }: { onNavigate?: () => void } = {}) {
.sort((a, b) => a.name.localeCompare(b.name));
const prefix = `/w/${slug}`;
+ const isHome = pathname === `${prefix}/home`;
const isRuntimes = pathname === `${prefix}/runtimes`;
const isCalendar = pathname === `${prefix}/calendar`;
const isSettings = pathname === `${prefix}/settings`;
@@ -115,80 +117,125 @@ export function AppSidebar({ onNavigate }: { onNavigate?: () => void } = {}) {
)}
{/* Create agent */}
- <button
- type="button"
- title="New agent"
- onClick={() => { router.push(`${prefix}/agents/new`); onNavigate?.(); }}
- className={cn(
- "flex shrink-0 items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
- "border border-dashed border-foreground/15 text-muted-foreground",
- "hover:border-foreground/30 hover:text-foreground hover:bg-accent",
- isCreateAgent &&
- "border-solid border-foreground/25 bg-accent text-foreground"
- )}
- >
- <Plus className="size-4" />
- </button>
+ {!loading && agents.length === 0 && runtimes.some(r => r.status === "online") ? (
+ <Tooltip open>
+ <TooltipTrigger
+ render={
+ <button
+ type="button"
+ onClick={() => { router.push(`${prefix}/agents/new`); onNavigate?.(); }}
+ className={cn(
+ "relative flex shrink-0 items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
+ "border border-dashed border-primary/50 text-primary",
+ "hover:border-primary hover:bg-primary/10",
+ "animate-pulse",
+ isCreateAgent && "border-solid border-primary bg-primary/10 animate-none"
+ )}
+ />
+ }
+ >
+ <Plus className="size-4" />
+ </TooltipTrigger>
+ <TooltipContent side="right" sideOffset={8}>
+ Create your first agent
+ </TooltipContent>
+ </Tooltip>
+ ) : (
+ <button
+ type="button"
+ title="New agent"
+ onClick={() => { router.push(`${prefix}/agents/new`); onNavigate?.(); }}
+ className={cn(
+ "flex shrink-0 items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
+ "border border-dashed border-foreground/15 text-muted-foreground",
+ "hover:border-foreground/30 hover:text-foreground hover:bg-accent",
+ isCreateAgent &&
+ "border-solid border-foreground/25 bg-accent text-foreground"
+ )}
+ >
+ <Plus className="size-4" />
+ </button>
+ )}
</div>
{/* Bottom section */}
<div className="flex flex-col items-center gap-1 pt-2 border-t border-border/50 mt-1">
- <button
- type="button"
- title="Workspaces"
- onClick={() => { router.push("/workspaces"); onNavigate?.(); }}
- className="flex items-center justify-center size-10 rounded-xl text-muted-foreground hover:text-foreground hover:bg-accent transition-colors duration-200 cursor-pointer"
- >
- <LayoutGrid className="size-4" />
- </button>
-
- <button
- type="button"
- title="Runtimes"
- onClick={() => { router.push(`${prefix}/runtimes`); onNavigate?.(); }}
- className={cn(
- "flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
- "text-muted-foreground hover:text-foreground hover:bg-accent",
- isRuntimes && "bg-accent text-foreground"
- )}
- >
- <Monitor className="size-4" />
- </button>
-
- <button
- type="button"
- title="Calendar"
- onClick={() => { router.push(`${prefix}/calendar`); onNavigate?.(); }}
- className={cn(
- "flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
- "text-muted-foreground hover:text-foreground hover:bg-accent",
- isCalendar && "bg-accent text-foreground"
- )}
- >
- <CalendarDays className="size-4" />
- </button>
-
- <button
- type="button"
- title="Settings"
- onClick={() => { router.push(`${prefix}/settings`); onNavigate?.(); }}
- className={cn(
- "flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
- "text-muted-foreground hover:text-foreground hover:bg-accent",
- isSettings && "bg-accent text-foreground"
- )}
- >
- <Settings className="size-4" />
- </button>
-
- <button
- type="button"
- title="Toggle theme"
- onClick={() => setTheme(resolvedTheme === "dark" ? "light" : "dark")}
- className="flex items-center justify-center size-10 rounded-xl text-muted-foreground hover:text-foreground hover:bg-accent transition-colors duration-200 cursor-pointer"
- >
- <SunMoon className="size-4" />
- </button>
+ <Tooltip>
+ <TooltipTrigger render={
+ <button
+ type="button"
+ onClick={() => { router.push("/workspaces"); onNavigate?.(); }}
+ className="flex items-center justify-center size-10 rounded-xl text-muted-foreground hover:text-foreground hover:bg-accent transition-colors duration-200 cursor-pointer"
+ />
+ }>
+ <LayoutGrid className="size-4" />
+ </TooltipTrigger>
+ <TooltipContent side="right">Workspaces</TooltipContent>
+ </Tooltip>
+
+ <Tooltip>
+ <TooltipTrigger render={
+ <button
+ type="button"
+ onClick={() => { router.push(`${prefix}/runtimes`); onNavigate?.(); }}
+ className={cn(
+ "flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
+ "text-muted-foreground hover:text-foreground hover:bg-accent",
+ isRuntimes && "bg-accent text-foreground"
+ )}
+ />
+ }>
+ <Monitor className="size-4" />
+ </TooltipTrigger>
+ <TooltipContent side="right">Runtimes</TooltipContent>
+ </Tooltip>
+
+ <Tooltip>
+ <TooltipTrigger render={
+ <button
+ type="button"
+ onClick={() => { router.push(`${prefix}/calendar`); onNavigate?.(); }}
+ className={cn(
+ "flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
+ "text-muted-foreground hover:text-foreground hover:bg-accent",
+ isCalendar && "bg-accent text-foreground"
+ )}
+ />
+ }>
+ <CalendarDays className="size-4" />
+ </TooltipTrigger>
+ <TooltipContent side="right">Calendar</TooltipContent>
+ </Tooltip>
+
+ <Tooltip>
+ <TooltipTrigger render={
+ <button
+ type="button"
+ onClick={() => { router.push(`${prefix}/settings`); onNavigate?.(); }}
+ className={cn(
+ "flex items-center justify-center size-10 rounded-xl transition-colors duration-200 cursor-pointer",
+ "text-muted-foreground hover:text-foreground hover:bg-accent",
+ isSettings && "bg-accent text-foreground"
+ )}
+ />
+ }>
+ <Settings className="size-4" />
+ </TooltipTrigger>
+ <TooltipContent side="right">Settings</TooltipContent>
+ </Tooltip>
+
+ <Tooltip>
+ <TooltipTrigger render={
+ <button
+ type="button"
+ onClick={() => setTheme(resolvedTheme === "dark" ? "light" : "dark")}
+ className="flex items-center justify-center size-10 rounded-xl text-muted-foreground hover:text-foreground hover:bg-accent transition-colors duration-200 cursor-pointer"
+ />
+ }>
+ <SunMoon className="size-4" />
+ </TooltipTrigger>
+ <TooltipContent side="right">Toggle theme</TooltipContent>
+ </Tooltip>
<NavUser />
</div>
diff --git a/src/web/src/components/task-stream.tsx b/src/web/src/components/task-stream.tsx
index 4e9d52d0a..5251eecea 100644
--- a/src/web/src/components/task-stream.tsx
+++ b/src/web/src/components/task-stream.tsx
@@ -113,6 +113,24 @@ function ToolCallBlock({ item, isRunning }: { item: ToolCallGroup; isRunning: bo
}
}, [item.input]);
+ if (!inputStr) {
+ return (
+ <div
+ className={cn(
+ "flex items-center gap-2 py-1 px-2 -mx-2 rounded-md",
+ "text-sm text-muted-foreground"
+ )}
+ >
+ <span className="font-medium text-foreground/80">
+ {formatToolName(item.tool)}
+ </span>
+ {isRunning && (
+ <span className="ml-auto size-1.5 rounded-full bg-primary/60 animate-pulse" />
+ )}
+ </div>
+ );
+ }
+
return (
<details className="group/tool">
<summary
@@ -123,9 +141,7 @@ function ToolCallBlock({ item, isRunning }: { item: ToolCallGroup; isRunning: bo
"[&::-webkit-details-marker]:hidden [&::marker]:hidden"
)}
>
- {inputStr && (
- <ChevronRight className="size-3 shrink-0 text-muted-foreground/60 transition-transform duration-150 group-open/tool:rotate-90" />
- )}
+ <ChevronRight className="size-3 shrink-0 text-muted-foreground/60 transition-transform duration-150 group-open/tool:rotate-90" />
<span className="font-medium text-foreground/80">
{formatToolName(item.tool)}
</span>
@@ -134,13 +150,11 @@ function ToolCallBlock({ item, isRunning }: { item: ToolCallGroup; isRunning: bo
)}
</summary>
- {inputStr && (
- <div className="mt-1 mb-2 ml-5">
- <pre className="task-stream-pre overflow-x-auto rounded-md bg-muted/40 p-2.5 font-mono text-xs leading-relaxed text-muted-foreground max-h-48 max-w-full min-w-0 overflow-y-auto">
- {inputStr}
- </pre>
- </div>
- )}
+ <div className="mt-1 mb-2 ml-5">
+ <pre className="task-stream-pre overflow-x-auto rounded-md bg-muted/40 p-2.5 font-mono text-xs leading-relaxed text-muted-foreground max-h-48 max-w-full min-w-0 overflow-y-auto">
+ {inputStr}
+ </pre>
+ </div>
</details>
);
}
@@ -148,6 +162,20 @@ function ToolCallBlock({ item, isRunning }: { item: ToolCallGroup; isRunning: bo
/* ── ThinkingBlock ── */
function ThinkingBlock({ item }: { item: ThinkingItem }) {
+ if (!item.content) {
+ return (
+ <div
+ className={cn(
+ "flex items-center gap-2 py-1 px-2 -mx-2 rounded-md",
+ "text-sm text-muted-foreground/60 italic"
+ )}
+ >
+ <Brain className="size-3 shrink-0" />
+ <span>Thinking...</span>
+ </div>
+ );
+ }
+
return (
<details className="group/think">
<summary
@@ -298,10 +326,10 @@ export function TaskStream({
{/* Tool stream zone — foldable, height-limited, scrollable */}
{toolItems.length > 0 && (
- <details className="group/stream">
+ <details className="group/stream pl-1">
<summary
className={cn(
- "flex items-center gap-2 py-1 cursor-pointer select-none",
+ "flex items-center gap-1.5 py-1 cursor-pointer select-none",
"text-xs text-muted-foreground transition-colors duration-150",
"hover:text-foreground",
"[&::-webkit-details-marker]:hidden [&::marker]:hidden"
diff --git a/src/web/src/components/ui/tooltip.tsx b/src/web/src/components/ui/tooltip.tsx
new file mode 100644
index 000000000..69e8a822c
--- /dev/null
+++ b/src/web/src/components/ui/tooltip.tsx
@@ -0,0 +1,66 @@
+"use client"
+
+import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip"
+
+import { cn } from "@/lib/utils"
+
+function TooltipProvider({
+ delay = 0,
+ ...props
+}: TooltipPrimitive.Provider.Props) {
+ return (
+ <TooltipPrimitive.Provider
+ data-slot="tooltip-provider"
+ delay={delay}
+ {...props}
+ />
+ )
+}
+
+function Tooltip({ ...props }: TooltipPrimitive.Root.Props) {
+ return <TooltipPrimitive.Root data-slot="tooltip" {...props} />
+}
+
+function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props) {
+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
+}
+
+function TooltipContent({
+ className,
+ side = "top",
+ sideOffset = 4,
+ align = "center",
+ alignOffset = 0,
+ children,
+ ...props
+}: TooltipPrimitive.Popup.Props &
+ Pick<
+ TooltipPrimitive.Positioner.Props,
+ "align" | "alignOffset" | "side" | "sideOffset"
+ >) {
+ return (
+ <TooltipPrimitive.Portal>
+ <TooltipPrimitive.Positioner
+ align={align}
+ alignOffset={alignOffset}
+ side={side}
+ sideOffset={sideOffset}
+ className="isolate z-50"
+ >
+ <TooltipPrimitive.Popup
+ data-slot="tooltip-content"
+ className={cn(
+ "z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
+ className
+ )}
+ {...props}
+ >
+ {children}
+ <TooltipPrimitive.Arrow className="z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" />
+ </TooltipPrimitive.Popup>
+ </TooltipPrimitive.Positioner>
+ </TooltipPrimitive.Portal>
+ )
+}
+
+export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }