Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(web): add missing cursor-pointer styling to dropdowns and interactive buttons (#5716)
naMqebe01b287b92b
diff --git a/apps/web/src/components/RightPanelTabs.tsx b/apps/web/src/components/RightPanelTabs.tsxindex 0b1700e73..5fa0d6c1c 100644--- a/apps/web/src/components/RightPanelTabs.tsx+++ b/apps/web/src/components/RightPanelTabs.tsx@@ -185,7 +185,7 @@ function RightPanelEmptyState(props: {key={action.label}type="button"onClick={action.onClick}- className="flex min-h-28 w-full flex-col items-start rounded-lg border border-border/80 bg-card p-4 text-left transition hover:border-border hover:bg-accent/60 dark:border-transparent dark:shadow-none dark:inset-ring-1 dark:inset-ring-white/5"+ className="cursor-pointer flex min-h-28 w-full flex-col items-start rounded-lg border border-border/80 bg-card p-4 text-left transition hover:border-border hover:bg-accent/60 dark:border-transparent dark:shadow-none dark:inset-ring-1 dark:inset-ring-white/5">{content}</button>@@ -413,7 +413,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {onAuxClick={(event) => handleTabAuxClick(event, surface)}onContextMenu={(event) => void handleTabContextMenu(event, surface)}className={cn(- "group/tab flex h-6 max-w-36 shrink-0 items-center gap-0.5 rounded-md pr-2 pl-1.5 text-xs",+ "cursor-pointer group/tab flex h-6 max-w-36 shrink-0 items-center gap-0.5 rounded-md pr-2 pl-1.5 text-xs",active? "bg-accent text-foreground": "text-muted-foreground hover:bg-accent/60 hover:text-foreground",@@ -421,7 +421,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {><buttontype="button"- className="group/close relative flex size-4 shrink-0 items-center justify-center rounded-sm hover:bg-muted"+ className="cursor-pointer group/close relative flex size-4 shrink-0 items-center justify-center rounded-sm hover:bg-muted"aria-label={`Close ${title}`}onClick={() => props.onCloseSurface(surface)}>@@ -445,7 +445,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {render={<buttontype="button"- className="flex min-w-0 items-center"+ className="cursor-pointer flex min-w-0 items-center"onClick={() => props.onActivate(surface)}><span className="truncate">{title}</span>@@ -460,7 +460,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {{props.surfaces.length > 0 ? (<Menu><MenuTrigger- className="relative inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground"+ className="cursor-pointer relative inline-flex size-6 shrink-0 items-center justify-center rounded-md text-muted-foreground hover:bg-accent hover:text-foreground"aria-label="Add panel surface"><Plus className="size-3.5" />diff --git a/apps/web/src/components/settings/DiagnosticsSettings.tsx b/apps/web/src/components/settings/DiagnosticsSettings.tsxindex adce508f7..9ae5f8226 100644--- a/apps/web/src/components/settings/DiagnosticsSettings.tsx+++ b/apps/web/src/components/settings/DiagnosticsSettings.tsx@@ -103,7 +103,7 @@ function StatBlock({render={<buttontype="button"- className="inline-flex size-3.5 shrink-0 items-center justify-center rounded-sm text-muted-foreground/60 hover:text-foreground"+ className="cursor-pointer inline-flex size-3.5 shrink-0 items-center justify-center rounded-sm text-muted-foreground/60 hover:text-foreground"aria-label={`${label} details`}><InfoIcon className="size-3" />@@ -187,7 +187,7 @@ function ExpandableText({{canExpand ? (<buttontype="button"- className="mt-1 text-[11px] font-medium text-foreground/70 underline-offset-2 hover:text-foreground hover:underline"+ className="cursor-pointer mt-1 text-[11px] font-medium text-foreground/70 underline-offset-2 hover:text-foreground hover:underline"onClick={() => setExpanded((value) => !value)}>{expanded ? "Show less" : expandLabel}@@ -274,7 +274,7 @@ function TraceIdCell({ traceId }: { traceId: string }) {render={<buttontype="button"- className="inline-flex size-5 shrink-0 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"+ className="cursor-pointer inline-flex size-5 shrink-0 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"aria-label={copied ? "Copied trace ID" : "Copy trace ID"}onClick={() => copyToClipboard(traceId)}>@@ -323,7 +323,7 @@ function ProcessNameCell({{hasChildren ? (<buttontype="button"- className="inline-flex size-5 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"+ className="cursor-pointer inline-flex size-5 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"aria-label={isExpanded ? `Collapse ${name}` : `Expand ${name}`}onClick={() => onToggle(process.pid)}>@@ -365,7 +365,7 @@ function ProcessSignalActions({<buttontype="button"disabled={isSignaling}- className="text-[11px] font-medium text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:pointer-events-none disabled:opacity-50"+ className="cursor-pointer text-[11px] font-medium text-muted-foreground underline-offset-2 hover:text-foreground hover:underline disabled:pointer-events-none disabled:opacity-50"onClick={() => onSignal(process.pid, "SIGINT")}>INT@@ -380,7 +380,7 @@ function ProcessSignalActions({<buttontype="button"disabled={isSignaling}- className="text-[11px] font-medium text-destructive underline-offset-2 hover:underline disabled:pointer-events-none disabled:opacity-50"+ className="cursor-pointer text-[11px] font-medium text-destructive underline-offset-2 hover:underline disabled:pointer-events-none disabled:opacity-50"onClick={() => onSignal(process.pid, "SIGKILL")}>KILL@@ -640,7 +640,7 @@ function ResourceHistoryWindowSelector({key={option.windowMs}type="button"className={cn(- "h-6 rounded-sm px-2 text-[11px] font-medium text-muted-foreground hover:text-foreground",+ "cursor-pointer h-6 rounded-sm px-2 text-[11px] font-medium text-muted-foreground hover:text-foreground",selectedWindowMs === option.windowMs && "bg-muted text-foreground",)}onClick={() => onSelect(option.windowMs)}diff --git a/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx b/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsxindex d831c7637..b4f2b09c6 100644--- a/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx+++ b/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx@@ -383,7 +383,7 @@ function HistoryWindowSelector({key={option.windowMs}type="button"className={cn(- "h-6 rounded-sm px-2 text-[11px] font-medium text-muted-foreground hover:text-foreground",+ "cursor-pointer h-6 rounded-sm px-2 text-[11px] font-medium text-muted-foreground hover:text-foreground",selectedWindowMs === option.windowMs && "bg-muted text-foreground",)}onClick={() => onSelect(option.windowMs)}@@ -487,7 +487,7 @@ function ProcessTreeName({{hasChildren ? (<buttontype="button"- className="inline-flex size-5 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"+ className="cursor-pointer inline-flex size-5 items-center justify-center rounded-sm text-muted-foreground hover:bg-accent hover:text-foreground"onClick={() => onToggle(process)}aria-label={collapsed ? `Expand ${name}` : `Collapse ${name}`}>@@ -538,7 +538,7 @@ function ProcessActions({<buttontype="button"disabled={isSignaling}- className="text-[10px] font-semibold text-muted-foreground hover:text-foreground disabled:opacity-50"+ className="cursor-pointer text-[10px] font-semibold text-muted-foreground hover:text-foreground disabled:opacity-50"onClick={() => onSignal(process, "SIGINT")}>INT@@ -546,7 +546,7 @@ function ProcessActions({<buttontype="button"disabled={isSignaling}- className="text-[10px] font-semibold text-destructive hover:underline disabled:opacity-50"+ className="cursor-pointer text-[10px] font-semibold text-destructive hover:underline disabled:opacity-50"onClick={() => onSignal(process, "SIGKILL")}>KILLdiff --git a/apps/web/src/components/ui/combobox.tsx b/apps/web/src/components/ui/combobox.tsxindex 421eaa030..528f4bee1 100644--- a/apps/web/src/components/ui/combobox.tsx+++ b/apps/web/src/components/ui/combobox.tsx@@ -200,7 +200,7 @@ function ComboboxItem({return (<ComboboxPrimitive.ItemclassName={cn(- "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center rounded-sm px-2 py-1 text-base outline-none hover:bg-accent data-disabled:pointer-events-none data-selected:bg-foreground/[0.08] data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-pointer items-center rounded-sm px-2 py-1 text-base outline-none hover:bg-accent data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-selected:bg-foreground/[0.08] data-selected:text-foreground data-highlighted:bg-accent data-highlighted:text-accent-foreground [&[data-highlighted][data-selected]]:bg-accent [&[data-highlighted][data-selected]]:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",className,)}data-slot="combobox-item"diff --git a/apps/web/src/components/ui/menu.tsx b/apps/web/src/components/ui/menu.tsxindex efd7af880..5c4fc91fe 100644--- a/apps/web/src/components/ui/menu.tsx+++ b/apps/web/src/components/ui/menu.tsx@@ -78,7 +78,7 @@ function MenuItem({return (<MenuPrimitive.ItemclassName={cn(- "[&>svg]:-mx-0.5 flex min-h-8 cursor-default select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-inset:ps-8 data-[variant=destructive]:text-destructive-foreground data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&>svg:not([class*='opacity-'])]:opacity-80 [&>svg:not([class*='size-'])]:size-4.5 sm:[&>svg:not([class*='size-'])]:size-4 [&>svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:[&>svg:not([class*='text-'])]:text-current [&>svg]:pointer-events-none [&>svg]:shrink-0",+ "[&>svg]:-mx-0.5 flex min-h-8 cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1 text-base text-foreground outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-highlighted:bg-accent data-inset:ps-8 data-[variant=destructive]:text-destructive-foreground data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&>svg:not([class*='opacity-'])]:opacity-80 [&>svg:not([class*='size-'])]:size-4.5 sm:[&>svg:not([class*='size-'])]:size-4 [&>svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:[&>svg:not([class*='text-'])]:text-current [&>svg]:pointer-events-none [&>svg]:shrink-0",className,)}data-inset={inset}@@ -102,7 +102,7 @@ function MenuCheckboxItem({<MenuPrimitive.CheckboxItemchecked={checked}className={cn(- "grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center gap-2 rounded-sm py-1 ps-2 text-base text-foreground outline-none data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ "grid min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-pointer items-center gap-2 rounded-sm py-1 ps-2 text-base text-foreground outline-none data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",variant === "switch" ? "grid-cols-[1fr_auto] gap-4 pe-1.5" : "grid-cols-[1rem_1fr] pe-4",className,)}@@ -158,7 +158,7 @@ function MenuRadioItem({return (<MenuPrimitive.RadioItemclassName={cn(- "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center rounded-sm px-2 py-1 text-base text-foreground outline-none data-checked:bg-foreground/[0.08] data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-pointer items-center rounded-sm px-2 py-1 text-base text-foreground outline-none data-checked:bg-foreground/[0.08] data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",className,)}data-slot="menu-radio-item"diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsxindex 9a589c8d8..9f01359b6 100644--- a/apps/web/src/components/ui/select.tsx+++ b/apps/web/src/components/ui/select.tsx@@ -185,7 +185,7 @@ function SelectItem({return (<SelectPrimitive.ItemclassName={cn(- "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-default items-center rounded-sm px-2 py-1 text-base outline-none data-selected:bg-foreground/[0.08] data-disabled:pointer-events-none data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",+ "flex min-h-8 in-data-[side=none]:min-w-[calc(var(--anchor-width)+1.25rem)] cursor-pointer items-center rounded-sm px-2 py-1 text-base outline-none data-selected:bg-foreground/[0.08] data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-highlighted:bg-accent data-highlighted:text-accent-foreground data-disabled:opacity-64 sm:min-h-7 sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",className,)}data-slot="select-item"diff --git a/apps/web/src/components/usage/UsagePage.tsx b/apps/web/src/components/usage/UsagePage.tsxindex 2f3ab4b57..417e490d3 100644--- a/apps/web/src/components/usage/UsagePage.tsx+++ b/apps/web/src/components/usage/UsagePage.tsx@@ -71,7 +71,7 @@ export function UsagePage() {type="button"onClick={() => setWindowDays(option.days)}className={cn(- "px-3 py-1.5 text-xs",+ "cursor-pointer px-3 py-1.5 text-xs",option.days === windowDays? "bg-muted text-foreground": "text-muted-foreground hover:text-foreground",@@ -85,7 +85,7 @@ export function UsagePage() {type="button"onClick={refresh}aria-label="Refresh usage"- className="rounded-md border border-border p-2 text-muted-foreground hover:text-foreground"+ className="cursor-pointer rounded-md border border-border p-2 text-muted-foreground hover:text-foreground"><RefreshCwIcon className="size-3.5" /></button>@@ -173,7 +173,7 @@ export function UsagePage() {type="button"onClick={() => setMetric(option)}className={cn(- "px-2.5 py-1 text-[10px] tracking-wide uppercase",+ "cursor-pointer px-2.5 py-1 text-[10px] tracking-wide uppercase",option === metric? "bg-muted text-foreground": "text-muted-foreground hover:text-foreground",@@ -233,7 +233,7 @@ export function UsagePage() {type="button"onClick={() => setBreakdown(option)}className={cn(- "px-2.5 py-1 text-[10px] tracking-wide uppercase",+ "cursor-pointer px-2.5 py-1 text-[10px] tracking-wide uppercase",option === breakdown? "bg-muted text-foreground": "text-muted-foreground hover:text-foreground",