Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Studio: API page toolbar gets clearer icons and hover tooltips (#14048)

Michael Hana83fedddf37f
diff --git a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
index 6b7824259ab..2aff136c7e0 100644
--- a/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
+++ b/studio/frontend/src/features/api-monitor/api-monitor-page.tsx
@@ -40,8 +40,8 @@ import {
Delete02Icon,
PauseIcon,
PlayIcon,
- PowerSocket01Icon,
Refresh01Icon,
+ RemoveCircleIcon,
Settings02Icon,
ApiIcon,
} from "@hugeicons/core-free-icons";
@@ -50,6 +50,7 @@ import { type ReactElement, useEffect, useMemo, useRef, useState } from "react";
import { ApiModelLoadControls } from "./components/api-model-load-controls";
import { SavedModelSettingsPanel } from "./components/saved-model-settings";
import { isLifecycleEntry, lifecycleLabel } from "./lifecycle";
+import { ToolbarTooltip } from "./components/toolbar-tooltip";
import { unloadResident } from "./unload-resident";
import {
type MonitorStatusFilter,
@@ -182,32 +183,33 @@ function CopyButton({
[],
);
return (
- <Button
- type="button"
- variant="ghost"
- size="sm"
- aria-label={label}
- onClick={async () => {
- if (await copyToClipboard(value)) {
- setCopied(true);
- if (timerRef.current !== undefined) {
- window.clearTimeout(timerRef.current);
+ <ToolbarTooltip label={copied ? "Copied" : label}>
+ <Button
+ type="button"
+ variant="ghost"
+ size="sm"
+ aria-label={label}
+ onClick={async () => {
+ if (await copyToClipboard(value)) {
+ setCopied(true);
+ if (timerRef.current !== undefined) {
+ window.clearTimeout(timerRef.current);
+ }
+ timerRef.current = window.setTimeout(() => setCopied(false), 1800);
}
- timerRef.current = window.setTimeout(() => setCopied(false), 1800);
- }
- }}
- className="h-7 shrink-0 gap-1.5 px-2 text-ui-11"
- >
- <HugeiconsIcon
- icon={copied ? Tick02Icon : Copy01Icon}
- strokeWidth={1.75}
- className={cn(
- "size-3.5",
- copied && "text-emerald-600 dark:text-emerald-500",
- )}
- />
- {copied ? "Copied" : "Copy"}
- </Button>
+ }}
+ className="size-7 shrink-0 p-0"
+ >
+ <HugeiconsIcon
+ icon={copied ? Tick02Icon : Copy01Icon}
+ strokeWidth={1.75}
+ className={cn(
+ "size-3.5",
+ copied && "text-emerald-600 dark:text-emerald-500",
+ )}
+ />
+ </Button>
+ </ToolbarTooltip>
);
}
@@ -745,89 +747,102 @@ export function ApiMonitorPage(): ReactElement {
onUnloadActive={unloadActiveModel}
unloading={unloading}
/>
- <Button
- type="button"
- variant="outline"
- size="sm"
- onClick={() => setPaused(!paused)}
- className="h-9 gap-1.5 rounded-full"
+ <ToolbarTooltip
+ label={paused ? "Resume the live feed" : "Pause the live feed"}
>
- <HugeiconsIcon
- icon={paused ? PlayIcon : PauseIcon}
- strokeWidth={1.75}
- className="size-4"
- />
- {paused ? "Resume" : "Pause"}
- </Button>
- <Button
- type="button"
- variant="outline"
- size="sm"
- onClick={() => void unloadActiveModel()}
- disabled={unloading || modelLoading || !data?.active_model}
- title={
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => setPaused(!paused)}
+ className="h-9 gap-1.5 rounded-full"
+ >
+ <HugeiconsIcon
+ icon={paused ? PlayIcon : PauseIcon}
+ strokeWidth={1.75}
+ className="size-4"
+ />
+ {paused ? "Resume" : "Pause"}
+ </Button>
+ </ToolbarTooltip>
+ <ToolbarTooltip
+ label={
data?.active_model
- ? `Unload ${data.active_model} and free its VRAM`
+ ? `Eject ${data.active_model} and free its VRAM`
: "No model is loaded"
}
- className="h-9 gap-1.5 rounded-full"
>
- <HugeiconsIcon
- icon={PowerSocket01Icon}
- strokeWidth={1.75}
- className="size-4"
- />
- {unloading ? "Unloading" : "Unload"}
- </Button>
- <Button
- type="button"
- variant="outline"
- size="sm"
- onClick={refresh}
- disabled={refreshing}
- className="h-9 gap-1.5 rounded-full"
- >
- <HugeiconsIcon
- icon={Refresh01Icon}
- strokeWidth={1.75}
- className={cn("size-4", refreshing && "animate-spin")}
- />
- Refresh
- </Button>
- <Button
- type="button"
- variant="outline"
- size="sm"
- disabled={entries.length === 0}
- onClick={() => {
- setSelectedId(null);
- void clear();
- }}
- className="h-9 gap-1.5 rounded-full"
- >
- <HugeiconsIcon
- icon={Delete02Icon}
- strokeWidth={1.75}
- className="size-4"
- />
- Clear log
- </Button>
- <Button
- type="button"
- variant="outline"
- size="sm"
- onClick={() =>
- useSettingsDialogStore.getState().openDialog("api-keys")
- }
- className="h-9 gap-1.5 rounded-full"
- >
- <HugeiconsIcon
- icon={Settings02Icon}
- strokeWidth={1.75}
- className="size-4"
- />
- API settings
- </Button>
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => void unloadActiveModel()}
+ disabled={unloading || modelLoading || !data?.active_model}
+ className="h-9 gap-1.5 rounded-full"
+ >
+ <HugeiconsIcon
+ icon={RemoveCircleIcon}
+ strokeWidth={1.75}
+ className="size-4"
+ />
+ {unloading ? "Ejecting" : "Eject"}
+ </Button>
+ </ToolbarTooltip>
+ <ToolbarTooltip label="Refresh">
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={refresh}
+ disabled={refreshing}
+ aria-label="Refresh"
+ className="size-9 rounded-full p-0"
+ >
+ <HugeiconsIcon
+ icon={Refresh01Icon}
+ strokeWidth={1.75}
+ className={cn("size-4", refreshing && "animate-spin")}
+ />
+ </Button>
+ </ToolbarTooltip>
+ <ToolbarTooltip label="Clear log">
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ disabled={entries.length === 0}
+ onClick={() => {
+ setSelectedId(null);
+ void clear();
+ }}
+ aria-label="Clear log"
+ className="size-9 rounded-full p-0"
+ >
+ <HugeiconsIcon
+ icon={Delete02Icon}
+ strokeWidth={1.75}
+ className="size-4"
+ />
+ </Button>
+ </ToolbarTooltip>
+ <ToolbarTooltip label="API settings">
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() =>
+ useSettingsDialogStore.getState().openDialog("api-keys")
+ }
+ aria-label="API settings"
+ className="size-9 rounded-full p-0"
+ >
+ <HugeiconsIcon
+ icon={Settings02Icon}
+ strokeWidth={1.75}
+ className="size-4"
+ />
+ </Button>
+ </ToolbarTooltip>
</div>
</header>
diff --git a/studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx b/studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx
index 949faf3c758..c52af249dff 100644
--- a/studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx
+++ b/studio/frontend/src/features/api-monitor/components/api-model-load-controls.tsx
@@ -32,7 +32,7 @@ import {
} from "@/features/model-picker";
import { isNpuModelId } from "@/features/npu";
import { cn } from "@/lib/utils";
-import { Download01Icon, RefreshIcon } from "@hugeicons/core-free-icons";
+import { ReloadIcon } from "@hugeicons/core-free-icons";
import { HugeiconsIcon } from "@hugeicons/react";
import {
type Dispatch,
@@ -47,6 +47,7 @@ import {
RELOAD_MISSING_HISTORY_MESSAGE,
reloadLastModel,
} from "../reload-last-model";
+import { ToolbarTooltip } from "./toolbar-tooltip";
// A pick superseded by a newer one rejects too; the newer pick owns the outcome.
function loadErrorMessage(err: unknown, fallback: string): string | null {
@@ -457,24 +458,25 @@ export function ApiModelLoadControls({
onOpenChange={setSelectorOpen}
className={cn("h-9 rounded-full")}
/>
- <Button
- type="button"
- variant="outline"
- size="sm"
- onClick={() => {
- handleReload();
- }}
- disabled={reloadDisabled}
- title={reloadTitle(lastLoadLabel, Boolean(activeModel))}
- className="h-9 gap-1.5 rounded-full"
- >
- <HugeiconsIcon
- icon={reloading ? RefreshIcon : Download01Icon}
- strokeWidth={1.75}
- className={cn("size-4", reloading && "animate-spin")}
- />
- {reloading ? "Reloading" : "Reload"}
- </Button>
+ <ToolbarTooltip label={reloadTitle(lastLoadLabel, Boolean(activeModel))}>
+ <Button
+ type="button"
+ variant="outline"
+ size="sm"
+ onClick={() => {
+ handleReload();
+ }}
+ disabled={reloadDisabled}
+ className="h-9 gap-1.5 rounded-full"
+ >
+ <HugeiconsIcon
+ icon={ReloadIcon}
+ strokeWidth={1.75}
+ className={cn("size-4", reloading && "animate-spin")}
+ />
+ {reloading ? "Reloading" : "Reload"}
+ </Button>
+ </ToolbarTooltip>
{actionError ? (
<span
role="alert"
diff --git a/studio/frontend/src/features/api-monitor/components/toolbar-tooltip.tsx b/studio/frontend/src/features/api-monitor/components/toolbar-tooltip.tsx
new file mode 100644
index 00000000000..90ee6e826b6
--- /dev/null
+++ b/studio/frontend/src/features/api-monitor/components/toolbar-tooltip.tsx
@@ -0,0 +1,27 @@
+// SPDX-License-Identifier: AGPL-3.0-only
+// Copyright 2026-present the Unsloth AI Inc. team. All rights reserved. See /studio/LICENSE.AGPL-3.0
+
+import {
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger,
+} from "@/components/ui/tooltip";
+import type { ReactElement, ReactNode } from "react";
+
+// The span is the trigger because a disabled button fires no pointer events.
+export function ToolbarTooltip({
+ label,
+ children,
+}: {
+ label: ReactNode;
+ children: ReactElement;
+}): ReactElement {
+ return (
+ <Tooltip>
+ <TooltipTrigger asChild={true}>
+ <span className="inline-flex">{children}</span>
+ </TooltipTrigger>
+ <TooltipContent side="bottom">{label}</TooltipContent>
+ </Tooltip>
+ );
+}
diff --git a/studio/frontend/src/features/api-monitor/tour/steps.tsx b/studio/frontend/src/features/api-monitor/tour/steps.tsx
index a4c2689d932..dbfed0ada20 100644
--- a/studio/frontend/src/features/api-monitor/tour/steps.tsx
+++ b/studio/frontend/src/features/api-monitor/tour/steps.tsx
@@ -22,8 +22,9 @@ export const apiMonitorTourSteps: TourStep[] = [
title: "Controls",
body: (
<>
- Pause the live feed to read a request without it scrolling away. Unload
- frees the model's VRAM. API settings is where you create keys.
+ Pause the live feed to read a request without it scrolling away. Eject
+ frees the model's VRAM. The gear opens API settings, where you create
+ keys.
</>
),
},