event.stopPropagation()}
diff --git a/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx b/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx
index 1853489d1d7b..c240f1c1109c 100644
--- a/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx
+++ b/apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx
@@ -37,7 +37,6 @@ import { Button } from "../ui/button";
import { PullRequestEditButton } from "./PullRequestEditButton";
import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible";
import { toastManager } from "../ui/toast";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import {
buildPullRequestTimeline,
groupPullRequestTimelineConversations,
@@ -75,6 +74,7 @@ import {
import { LegendList, type LegendListRef } from "@legendapp/list/react";
import { changeRequestTermKind, type ChangeRequestTermKind } from "./changeRequestTerm";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
interface ReactionSurface {
revealAnchor?: string | null;
@@ -198,24 +198,24 @@ function AddToChatButton({
const gt = useGT();
const onAddToChat = reactions.onAddToChat;
return onAddToChat === undefined ? null : (
-
- onAddToChat(comment)}
- />
- }
- >
-
-
-
- Add to chat
-
-
+ onAddToChat(comment)}
+ />
+ }
+ label={
+ <>
+ Add to chat
+ >
+ }
+ >
+
+
);
}
@@ -751,30 +751,29 @@ function ReviewVerdictEvent({
-
-
- }
- >
- {stale ? (
- <>
- {pullRequestReviewOutcomeLabel(outcome, resolve)}
- {staleReviewOutcomeLabel(outcome, gt)}
- >
- ) : (
- pullRequestReviewOutcomeLabel(outcome, resolve)
- )}
-
- {pullRequestReviewOutcomeStaleLabel(outcome, resolve)}
-
+
+ }
+ label={pullRequestReviewOutcomeStaleLabel(outcome, resolve)}
+ >
+ {stale ? (
+ <>
+ {pullRequestReviewOutcomeLabel(outcome, resolve)}
+ {staleReviewOutcomeLabel(outcome, gt)}
+ >
+ ) : (
+ pullRequestReviewOutcomeLabel(outcome, resolve)
+ )}
+
diff --git a/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx b/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx
index 95185c23ae26..a69a67374b3f 100644
--- a/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx
+++ b/apps/web/src/components/pullRequest/ThreadPullRequestsPanel.tsx
@@ -44,7 +44,6 @@ import { ThreadDetailsIssueRows } from "../chat/ThreadDetailsIssueRows";
import { Button } from "../ui/button";
import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";
import { MiddleTruncate } from "../ui/middle-truncate";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { openLinkPullRequestDialog } from "./LinkPullRequestDialog";
import {
PULL_REQUEST_ROW_CLASS,
@@ -64,6 +63,7 @@ import { pullRequestQuickActions } from "./pullRequestList.logic";
import { PullRequestSpeedActions, PullRequestSpeedModeContext } from "./PullRequestSpeedActions";
import { changeRequestTermKind } from "./changeRequestTerm";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const SOURCE_LABELS: Record = {
manual: msg("Linked by you"),
@@ -81,16 +81,16 @@ function ChecksGlyph({
const resolve = useMessages();
const presentation = pullRequestChecksStatePresentation(state, resolve);
return (
-
- }>
-
-
- {presentation.label}
-
+ }
+ label={presentation.label}
+ >
+
+
);
}
@@ -201,31 +201,35 @@ function LinkRowImpl({
>
- }>
- #{link.number}
-
-
- {resolve(SOURCE_LABELS[link.source])} ·
-
-
+ }
+ label={
+ <>
+ {resolve(SOURCE_LABELS[link.source])} ·
+ >
+ }
+ >
+ #{link.number}
+
}
title={snapshot?.title ?? link.repository}
signals={
open ? (
<>
{watching ? (
-
- }>
-
-
-
-
- Watching: the agent wakes when checks finish, someone comments, or the
- branch conflicts
-
-
-
+ }
+ label={
+ <>
+
+ Watching: the agent wakes when checks finish, someone comments, or the
+ branch conflicts
+
+ >
+ }
+ >
+
+
) : null}
{snapshot?.checksState ? : null}
{snapshot?.reviewDecision ? (
@@ -259,17 +263,12 @@ function LinkRowImpl({
meta={
<>
{stack ? (
-
-
- }
- >
-
- {stack.size}
-
-
- {stack.kind === "native"
+
+ }
+ label={
+ stack.kind === "native"
? gt("{host} stack of {size}: merging a layer lands the ones below it.", {
host: sourceControlClients.hostLabelForChangeRequestUrl(link.url),
size: stack.size,
@@ -280,9 +279,12 @@ function LinkRowImpl({
size: stack.size,
terms: changeRequestTermKind(linkHost.changeRequest),
},
- )}
-
-
+ )
+ }
+ >
+
+ {stack.size}
+
) : null}
{snapshot?.author ? (
-
- }>
-
-
- {link.repository}
-
+ }
+ label={link.repository}
+ >
+
+
>
) : (
diff --git a/apps/web/src/components/search/ProjectContentSearchDialog.tsx b/apps/web/src/components/search/ProjectContentSearchDialog.tsx
index 0515c9d026bc..7e97b76bfefc 100644
--- a/apps/web/src/components/search/ProjectContentSearchDialog.tsx
+++ b/apps/web/src/components/search/ProjectContentSearchDialog.tsx
@@ -15,8 +15,8 @@ import { PierreEntryIcon } from "../chat/PierreEntryIcon";
import { CommandPaletteContent } from "../CommandPaletteContent";
import { ScrollArea } from "../ui/scroll-area";
import { Toggle } from "../ui/toggle";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { HighlightedSearchLine } from "./HighlightedSearchLine";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
interface ProjectContentSearchDialogProps {
readonly onOpenChange: (open: boolean) => void;
@@ -59,23 +59,21 @@ function SearchOptionButton(props: {
readonly children: ReactNode;
}) {
return (
-
-
- }
- >
- {props.children}
-
- {props.label}
-
+
+ }
+ label={props.label}
+ >
+ {props.children}
+
);
}
diff --git a/apps/web/src/components/settings/AboutVersionTitle.tsx b/apps/web/src/components/settings/AboutVersionTitle.tsx
index e8e3fd654e5e..5026d19321b8 100644
--- a/apps/web/src/components/settings/AboutVersionTitle.tsx
+++ b/apps/web/src/components/settings/AboutVersionTitle.tsx
@@ -4,7 +4,7 @@ import { APP_VERSION } from "../../branding";
import { useCopyToClipboard } from "../../hooks/useCopyToClipboard";
import { InlineButton } from "../ui/button";
import { stackedThreadToast, toastManager } from "../ui/toast";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
export function AboutVersionTitle() {
const gt = useGT();
@@ -31,22 +31,22 @@ export function AboutVersionTitle() {
Version
-
- copyToClipboard(APP_VERSION, undefined)}
- >
- {APP_VERSION}
-
- }
- />
-
- Copy version
-
-
+ copyToClipboard(APP_VERSION, undefined)}
+ >
+ {APP_VERSION}
+
+ }
+ label={
+ <>
+ Copy version
+ >
+ }
+ />
);
diff --git a/apps/web/src/components/settings/AcpRegistrySearchStep.tsx b/apps/web/src/components/settings/AcpRegistrySearchStep.tsx
index 3cafdde2be54..a97b8fe77153 100644
--- a/apps/web/src/components/settings/AcpRegistrySearchStep.tsx
+++ b/apps/web/src/components/settings/AcpRegistrySearchStep.tsx
@@ -28,11 +28,11 @@ import { Alert, AlertDescription } from "../ui/alert";
import { Button } from "../ui/button";
import { InputGroup, InputGroupAddon, InputGroupInput } from "../ui/input-group";
import { ScrollArea } from "../ui/scroll-area";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { isConfiguredAcpRegistryAgent } from "./AddProviderInstanceDialog.logic";
import { ProviderDriverKind } from "@t3tools/contracts";
import { ProviderInstanceIcon } from "../chat/ProviderInstanceIcon";
import { providerClients } from "./providerDriverMeta";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
function errorMessage(error: unknown): string {
return error instanceof Error && error.message.trim()
@@ -318,25 +318,25 @@ function AcpRegistryAgentRow({
{aboutUrl ? (
-
- }
- >
-
-
- }
- />
-
-
- About {agent.name}
-
-
-
+
}
+ >
+
+
+ }
+ label={
+ <>
+
+ About {agent.name}
+
+ >
+ }
+ />
) : null}
- }
- />
- }
- />
-
- Add environment
-
-
+
+
+
+ Add environment
+
+
+ }
+ />
+ }
+ label={
+ <>
+ Add environment
+ >
+ }
+ />
diff --git a/apps/web/src/components/settings/ArchivedThreadsPanel.tsx b/apps/web/src/components/settings/ArchivedThreadsPanel.tsx
index cc1c95ba0bc8..25c7329a5764 100644
--- a/apps/web/src/components/settings/ArchivedThreadsPanel.tsx
+++ b/apps/web/src/components/settings/ArchivedThreadsPanel.tsx
@@ -27,7 +27,7 @@ import { ProjectFavicon } from "../ProjectFavicon";
import { msg, T, useGT, useMessages } from "gt-react";
import { type ReactNode, useRef, useState } from "react";
import { observeIntersection } from "~/lib/observeIntersection";
-import { Tooltip, TooltipTrigger, TooltipPopup } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const ARCHIVE_ACTIONS = [
{
@@ -289,23 +289,22 @@ export function ArchivedThreadsPanel() {
control={
{ARCHIVE_ACTIONS.map(({ action, label, threadLabel, Icon }) => (
-
- void handleThreadAction(action, thread)}
- />
- }
- >
-
-
- {m(label)}
-
+ void handleThreadAction(action, thread)}
+ />
+ }
+ label={m(label)}
+ >
+
+
))}
}
diff --git a/apps/web/src/components/settings/AuthorizedClientsSettings.tsx b/apps/web/src/components/settings/AuthorizedClientsSettings.tsx
index d44bffdc0413..5ee9ab7012bc 100644
--- a/apps/web/src/components/settings/AuthorizedClientsSettings.tsx
+++ b/apps/web/src/components/settings/AuthorizedClientsSettings.tsx
@@ -51,7 +51,6 @@ import {
import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover";
import { QRCodeSvg } from "../ui/qr-code";
import { stackedThreadToast, toastManager } from "../ui/toast";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { Button } from "../ui/button";
import { Textarea } from "../ui/textarea";
import {
@@ -76,6 +75,7 @@ import {
isHostedAppPairingUrl,
endpointShareHint,
} from "./ConnectionsSettings.logic";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
function AccessScopeSummary({
scopes,
@@ -287,12 +287,9 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
{primaryLabel}
-
- }>
- {formatExpiresInLabel(pairingLink.expiresAt, nowMs, m)}
-
- {expiresAbsolute}
-
+ } label={expiresAbsolute}>
+ {formatExpiresInLabel(pairingLink.expiresAt, nowMs, m)}
+
·
@@ -453,16 +450,14 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
) : null}
-
-
- {qrPairingUrl}
-
- }
- />
- {qrPairingUrl}
-
+
+ {qrPairingUrl}
+
+ }
+ label={qrPairingUrl}
+ />
- }
- />
-
- Configure background activity
-
-
+ setBackgroundActivityDialogOpen(true)}
+ >
+
+
+ }
+ label={
+ <>
+ Configure background activity
+ >
+ }
+ />
) : null}
-
-
-
- }
- />
-
-
- Network exposure changes restart the backend and must be controlled where the server
- process is launched.
-
-
-
+
+
+
+ }
+ label={
+ <>
+
+ Network exposure changes restart the backend and must be controlled where the
+ server process is launched.
+
+ >
+ }
+ />
) : undefined
}
/>
diff --git a/apps/web/src/components/settings/DiagnosticsSettings.tsx b/apps/web/src/components/settings/DiagnosticsSettings.tsx
index 75817a6e1b5b..c77839ad52f7 100644
--- a/apps/web/src/components/settings/DiagnosticsSettings.tsx
+++ b/apps/web/src/components/settings/DiagnosticsSettings.tsx
@@ -41,7 +41,6 @@ import { useCopyToClipboard } from "../../hooks/useCopyToClipboard";
import { Button } from "../ui/button";
import { ScrollArea } from "../ui/scroll-area";
import { Toggle, ToggleGroup } from "../ui/toggle-group";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { toastManager } from "../ui/toast";
import { formatDiagnosticsDuration } from "./DiagnosticsSettings.logic";
import { ExpandableText } from "./ExpandableText";
@@ -51,6 +50,7 @@ import { SettingsPageContainer, SettingsSection } from "./settingsLayout";
import { useAtomCommand } from "../../state/use-atom-command";
import { useSettingsScope } from "./SettingsScopeContext";
import { TelemetryExportSettings } from "./TelemetryExportSettings";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const NUMBER_FORMAT = new Intl.NumberFormat();
@@ -89,20 +89,18 @@ function StatBlock({
{label}
{tooltip ? (
-
-
-
-
- }
- />
- {tooltip}
-
+
+
+
+ }
+ label={tooltip}
+ />
) : null}
-
-
- {shortenTraceId(traceId)}
-
- }
- />
-
- {traceId}
-
-
-
- copyToClipboard(traceId)}
- >
-
-
- }
- />
- {copied ? gt("Copied") : gt("Copy full trace ID")}
-
+
+ {shortenTraceId(traceId)}
+
+ }
+ label={traceId}
+ variant="code"
+ />
+ copyToClipboard(traceId)}
+ >
+
+
+ }
+ label={copied ? gt("Copied") : gt("Copy full trace ID")}
+ />
);
}
@@ -293,14 +286,11 @@ function ProcessNameCell({
)}
-
- {name}}
- />
-
- {process.command}
-
-
+ {name}}
+ label={process.command}
+ variant="code"
+ />
);
}
@@ -425,14 +415,11 @@ function ProcessDiagnosticsTable({
{formatBytes(process.rssBytes)}
-
- {process.command}}
- />
-
- {process.command}
-
-
+ {process.command}}
+ label={process.command}
+ variant="code"
+ />
|
{process.pid}
@@ -494,14 +481,11 @@ function ResourceHistoryProcessNameCell({
process.isServerRoot ? "bg-warning/90" : "bg-success/80",
)}
/>
-
- {name}}
- />
-
- {process.command}
-
-
+ {name}}
+ label={process.command}
+ variant="code"
+ />
);
}
@@ -525,36 +509,33 @@ function ProcessResourceHistoryChart({
const peakHeight = Math.max(2, (bucket.maxCpuPercent / maxCpuPercent) * 100);
const averageHeight = Math.max(2, (bucket.avgCpuPercent / maxCpuPercent) * 100);
return (
-
-
-
-
- {gt("Average CPU {average}%, peak CPU {peak}%", {
- average: bucket.avgCpuPercent.toFixed(1),
- peak: bucket.maxCpuPercent.toFixed(1),
- })}
-
-
-
-
+
+
+
+ {gt("Average CPU {average}%, peak CPU {peak}%", {
+ average: bucket.avgCpuPercent.toFixed(1),
+ peak: bucket.maxCpuPercent.toFixed(1),
+ })}
+
+
+
- }
- />
-
- {gt("Avg {average}%, peak {peak}%", {
- average: bucket.avgCpuPercent.toFixed(1),
- peak: bucket.maxCpuPercent.toFixed(1),
- })}
-
-
+
+ }
+ label={gt("Avg {average}%, peak {peak}%", {
+ average: bucket.avgCpuPercent.toFixed(1),
+ peak: bucket.maxCpuPercent.toFixed(1),
+ })}
+ />
);
})}
@@ -687,14 +668,11 @@ function ProcessResourceHistoryTable({
{formatBytes(process.maxRssBytes)}
|
-
- {process.command}}
- />
-
- {process.command}
-
-
+ {process.command}}
+ label={process.command}
+ variant="code"
+ />
|
{process.pid}
@@ -755,22 +733,20 @@ function DiagnosticsRefreshButton({
onClick: () => void;
}) {
return (
-
-
-
-
- }
- />
- {label}
-
+
+
+
+ }
+ label={label}
+ />
);
}
@@ -1151,28 +1127,28 @@ function DiagnosticsSettingsBody() {
headerAction={
-
-
-
-
- }
- />
-
- Open logs folder
-
-
+
+
+
+ }
+ label={
+ <>
+ Open logs folder
+ >
+ }
+ />
{removable ? (
-
-
- }
- >
-
-
-
- Remove route
-
-
+
+ }
+ label={
+ <>
+ Remove route
+ >
+ }
+ >
+
+
) : null}
);
diff --git a/apps/web/src/components/settings/EnvironmentsMap.tsx b/apps/web/src/components/settings/EnvironmentsMap.tsx
index 5d4b2f96754c..6e21686f3b8e 100644
--- a/apps/web/src/components/settings/EnvironmentsMap.tsx
+++ b/apps/web/src/components/settings/EnvironmentsMap.tsx
@@ -74,7 +74,6 @@ import { Button } from "../ui/button";
import { InputGroup, InputGroupAddon, InputGroupInput } from "../ui/input-group";
import { Menu, MenuItem, MenuPopup, MenuTrigger } from "../ui/menu";
import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import {
buildFleetGraph,
anchorFleetView,
@@ -136,6 +135,7 @@ import { LinkEnvironmentDialog, type LinkEnvironmentPrefill } from "./LinkedEnvi
import { LinkSeveralEnvironmentsDialog } from "./LinkSeveralEnvironments";
import { savedBackendStatus } from "./SavedEnvironmentRows";
import { SettingsSearchTarget } from "./settingsLayout";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
type GT = ReturnType;
type Messages = ReturnType;
@@ -931,32 +931,28 @@ function FleetCanvas({
) : null}
{sources.length === 0 ? null : source !== undefined ? (
-
- onLinkSeveral(source.id)}>
+ {gt("Link several…")}
+
+ }
+ label={selectSeveral}
+ />
+ ) : (
+
- ) : (
-
) : null}
diff --git a/apps/web/src/components/settings/KeybindingsSettings.tsx b/apps/web/src/components/settings/KeybindingsSettings.tsx
index 87b4257d07d1..bbe05c925be2 100644
--- a/apps/web/src/components/settings/KeybindingsSettings.tsx
+++ b/apps/web/src/components/settings/KeybindingsSettings.tsx
@@ -100,6 +100,7 @@ import { SettingsGroup } from "./SettingsGroup";
import { SettingsPageContainer, SettingsRow, SettingsSection } from "./settingsLayout";
import { keybindingSearchAnchorId, useSearchableSetting } from "./settingsSearch";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
import { useAtomCommand } from "../../state/use-atom-command";
function KeybindingPill({ shortcut }: { shortcut: KeybindingShortcut }) {
@@ -249,23 +250,21 @@ function WarningTooltipIcon({
children: ReactNode;
}) {
return (
-
-
- }
- >
-
-
- {children}
-
+
+ }
+ label={children}
+ >
+
+
);
}
@@ -1069,13 +1068,10 @@ function KeybindingSourceBadge({ source }: { source: KeybindingRow["source"] })
function KeybindingRowTitle({ row }: { row: KeybindingRow }) {
const m = useMessages();
return (
-
- }>
- {commandLabel(row.command, m)}
-
-
- {row.command}
-
+ } label={row.command}>
+ {commandLabel(row.command, m)}
+
+
);
}
@@ -1384,25 +1380,25 @@ function NewKeybindingCancelIcon({
}) {
const gt = useGT();
return (
-
-
- }
- >
-
-
-
- Cancel
-
-
+
+ }
+ label={
+ <>
+ Cancel
+ >
+ }
+ >
+
+
);
}
@@ -1705,25 +1701,25 @@ export function KeybindingsSettingsPanel() {
Add keybinding
-
-
-
-
- }
- />
-
- Open keybindings.json
-
-
+
+
+
+ }
+ label={
+ <>
+ Open keybindings.json
+ >
+ }
+ />
diff --git a/apps/web/src/components/settings/OpenSourceLicenses.tsx b/apps/web/src/components/settings/OpenSourceLicenses.tsx
index 43e759e08394..705984fdafda 100644
--- a/apps/web/src/components/settings/OpenSourceLicenses.tsx
+++ b/apps/web/src/components/settings/OpenSourceLicenses.tsx
@@ -22,8 +22,8 @@ import { m } from "../../i18n/messages";
import { Button } from "../ui/button";
import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible";
import { InputGroup, InputGroupAddon, InputGroupInput } from "../ui/input-group";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { SettingsPageContainer, SettingsSection } from "./settingsLayout";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
class LicenseManifestLoadError extends Schema.TaggedError()(
"LicenseManifestLoadError",
@@ -174,24 +174,24 @@ function LicenseHeaderAction({
return (
-
- onSearchOpenChange(true)}
- size="icon-micro"
- type="button"
- variant="ghost-muted"
- >
-
-
- }
- />
-
- Search licenses
-
-
+ onSearchOpenChange(true)}
+ size="icon-micro"
+ type="button"
+ variant="ghost-muted"
+ >
+
+
+ }
+ label={
+ <>
+ Search licenses
+ >
+ }
+ />
);
}
diff --git a/apps/web/src/components/settings/ProcessSignalActions.tsx b/apps/web/src/components/settings/ProcessSignalActions.tsx
index c6acf52ce6c9..665be731bede 100644
--- a/apps/web/src/components/settings/ProcessSignalActions.tsx
+++ b/apps/web/src/components/settings/ProcessSignalActions.tsx
@@ -2,7 +2,7 @@ import type { ServerProcessSignal } from "@t3tools/contracts";
import { T, useGT, Var } from "gt-react";
import { InlineButton } from "../ui/button";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const SIGNAL_SHORT_NAMES = { SIGINT: "INT", SIGKILL: "KILL" } as const;
@@ -16,44 +16,44 @@ export function ProcessSignalActions({
const gt = useGT();
return (
-
- onSignal("SIGINT")}
- >
- {SIGNAL_SHORT_NAMES.SIGINT}
-
- }
- />
-
-
- Send {"SIGINT"}
-
-
-
-
- onSignal("SIGKILL")}
- >
- {SIGNAL_SHORT_NAMES.SIGKILL}
-
- }
- />
-
-
- Send {"SIGKILL"}
-
-
-
+ onSignal("SIGINT")}
+ >
+ {SIGNAL_SHORT_NAMES.SIGINT}
+
+ }
+ label={
+ <>
+
+ Send {"SIGINT"}
+
+ >
+ }
+ />
+ onSignal("SIGKILL")}
+ >
+ {SIGNAL_SHORT_NAMES.SIGKILL}
+
+ }
+ label={
+ <>
+
+ Send {"SIGKILL"}
+
+ >
+ }
+ />
);
}
diff --git a/apps/web/src/components/settings/ProjectSettingsPanel.tsx b/apps/web/src/components/settings/ProjectSettingsPanel.tsx
index 01782d42895e..d10dfaaa8f45 100644
--- a/apps/web/src/components/settings/ProjectSettingsPanel.tsx
+++ b/apps/web/src/components/settings/ProjectSettingsPanel.tsx
@@ -41,7 +41,6 @@ import { Input } from "../ui/input";
import { Select, SelectItem, SelectPopup, SelectTrigger, SelectValue } from "../ui/select";
import { Switch } from "../ui/switch";
import { stackedThreadToast, toastManager } from "../ui/toast";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import {
SettingResetButton,
SettingsPageContainer,
@@ -66,6 +65,7 @@ import {
import { useSettingsProjectGroups } from "./useSettingsProjectGroups";
import { readUnloadedThreadCount } from "../../state/olderSettledShelf";
import { settingsScopeEnvironmentLabels } from "./settingsScopeAxis";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const ProjectIconPickerDialog = lazy(() =>
import("./ProjectIconPickerDialog").then((module) => ({
@@ -497,12 +497,12 @@ function ProjectDetail({
{labels.secondary}
) : null}
{!hasMultiple ? (
-
- }>
- {firstMember.workspaceRoot}
-
- {firstMember.workspaceRoot}
-
+ }
+ label={firstMember.workspaceRoot}
+ >
+ {firstMember.workspaceRoot}
+
) : null}
>
}
@@ -515,16 +515,14 @@ function ProjectDetail({
key={member.physicalProjectKey}
className="flex min-w-0 flex-col gap-1.5 @min-[36rem]/settings-row:flex-row @min-[36rem]/settings-row:items-center @min-[36rem]/settings-row:justify-between @min-[36rem]/settings-row:gap-3"
>
-
-
- }
- >
- {member.workspaceRoot}
-
- {member.workspaceRoot}
-
+
+ }
+ label={member.workspaceRoot}
+ >
+ {member.workspaceRoot}
+
{checkoutControls(member)}
))}
diff --git a/apps/web/src/components/settings/ProviderAuthenticationSection.tsx b/apps/web/src/components/settings/ProviderAuthenticationSection.tsx
index 17ce23281c59..638b40f3656c 100644
--- a/apps/web/src/components/settings/ProviderAuthenticationSection.tsx
+++ b/apps/web/src/components/settings/ProviderAuthenticationSection.tsx
@@ -25,9 +25,9 @@ import { useAtomCommand } from "../../state/use-atom-command";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
import { Select, SelectItem, SelectPopup, SelectTrigger, SelectValue } from "../ui/select";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { SettingsRow } from "./settingsLayout";
import { RedactedSensitiveText } from "./RedactedSensitiveText";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const ProviderAuthTerminal = lazy(() => import("./ProviderAuthTerminal"));
@@ -239,41 +239,41 @@ export function ProviderAuthenticationSection({
>
Open browser
-
- {
- // Copy during the click to retain clipboard activation; consent must still be
- // recorded before use.
- const copied = writeTextToClipboard(url, {
- target: "Provider sign-in link",
- unavailableMessage: msg(
- "Clipboard API is unavailable while copying Provider sign-in link.",
- ),
- failureMessage: msg(
- "Failed to copy Provider sign-in link to the clipboard.",
- ),
- });
- void (async () => {
- await copied;
- if (interaction?.type === "browser" && interaction.requiresConsent)
- await send({ type: "browser", action: "accept" });
- })().catch(() => setError(gt("Could not copy the sign-in link.")));
- }}
- >
-
-
- }
- />
-
- Copy sign-in link
-
-
+ {
+ // Copy during the click to retain clipboard activation; consent must still be
+ // recorded before use.
+ const copied = writeTextToClipboard(url, {
+ target: "Provider sign-in link",
+ unavailableMessage: msg(
+ "Clipboard API is unavailable while copying Provider sign-in link.",
+ ),
+ failureMessage: msg(
+ "Failed to copy Provider sign-in link to the clipboard.",
+ ),
+ });
+ void (async () => {
+ await copied;
+ if (interaction?.type === "browser" && interaction.requiresConsent)
+ await send({ type: "browser", action: "accept" });
+ })().catch(() => setError(gt("Could not copy the sign-in link.")));
+ }}
+ >
+
+
+ }
+ label={
+ <>
+ Copy sign-in link
+ >
+ }
+ />
>
) : null}
<>
diff --git a/apps/web/src/components/settings/ProviderInstanceCard.tsx b/apps/web/src/components/settings/ProviderInstanceCard.tsx
index cd5455cc1955..9872da5c7ce6 100644
--- a/apps/web/src/components/settings/ProviderInstanceCard.tsx
+++ b/apps/web/src/components/settings/ProviderInstanceCard.tsx
@@ -52,7 +52,6 @@ import { ManagedControl, ManagedNotice } from "../ManagedPolicy";
import { managedInstanceLocks, useManagedPolicy } from "../../state/managedPolicy";
import { disallowedProviderMessage, isManagedDriverAllowed } from "@t3tools/contracts";
import { stackedThreadToast, toastManager } from "../ui/toast";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import type {
ProviderClientDefinition,
ProviderEnvironmentField,
@@ -86,6 +85,7 @@ import {
getProviderVersionLabel,
providerAuthLabel,
} from "./providerStatus";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const ENVIRONMENT_VARIABLE_NAME_PATTERN = /^[a-zA-Z_][a-zA-Z0-9_]*$/;
@@ -97,12 +97,7 @@ function ProviderStatusDiagnostic({
children: ReactElement;
}) {
if (!detail) return children;
- return (
-
-
- {detail}
-
- );
+ return ;
}
const ENVIRONMENT_VARIABLE_NAME_PLACEHOLDER = "VARIABLE_NAME";
@@ -504,40 +499,36 @@ export function ProviderEnvironmentSection(props: {
);
const sensitiveToggle =
typeof variable.value === "string" ? (
-
- {
- const sensitive = !variable.sensitive;
- updateVariable(variable.id, {
- sensitive,
- ...(sensitive && variable.valueRedacted === undefined
- ? {}
- : { valueRedacted: sensitive ? variable.valueRedacted : false }),
- });
- }}
- aria-pressed={variable.sensitive}
- aria-label={gt("Mark environment variable {name} as sensitive", {
- name: variable.name || index + 1,
- })}
- >
- {variable.sensitive ? (
-
- ) : (
-
- )}
-
- }
- />
-
- {variable.sensitive ? gt("Sensitive, stored separately") : gt("Plain text")}
-
-
+ {
+ const sensitive = !variable.sensitive;
+ updateVariable(variable.id, {
+ sensitive,
+ ...(sensitive && variable.valueRedacted === undefined
+ ? {}
+ : { valueRedacted: sensitive ? variable.valueRedacted : false }),
+ });
+ }}
+ aria-pressed={variable.sensitive}
+ aria-label={gt("Mark environment variable {name} as sensitive", {
+ name: variable.name || index + 1,
+ })}
+ >
+ {variable.sensitive ? (
+
+ ) : (
+
+ )}
+
+ }
+ label={variable.sensitive ? gt("Sensitive, stored separately") : gt("Plain text")}
+ />
) : null;
const layout = (source: ReactNode, value: ReactNode) => (
@@ -635,26 +626,26 @@ function ProjectOverrideInheritance({
];
return (
-
-
- }
- />
- }
- >
-
-
-
- Overridden for this project
-
-
+
+ }
+ />
+ }
+ label={
+ <>
+ Overridden for this project
+ >
+ }
+ >
+
+
{layers.map((layer) => (
@@ -1054,39 +1045,35 @@ export function ProviderInstanceCard({
);
const versionAdvisoryNode = versionAdvisory ? (
-
-
- {updateProgress ? (
-
- ) : (
-
- )}
-
- }
- />
- }
- />
-
- {updateProgress ? gt("Updating") : versionAdvisory.title}
-
-
+
+ {updateProgress ? (
+
+ ) : (
+
+ )}
+
+ }
+ />
+ }
+ label={updateProgress ? gt("Updating") : versionAdvisory.title}
+ />
@@ -1144,25 +1131,25 @@ export function ProviderInstanceCard({
{updateCommand}
-
- copyToClipboard(updateCommand, { providerName: displayName })}
- aria-label={gt("Copy update command")}
- >
-
-
- }
- />
-
- Copy command
-
-
+ copyToClipboard(updateCommand, { providerName: displayName })}
+ aria-label={gt("Copy update command")}
+ >
+
+
+ }
+ label={
+ <>
+ Copy command
+ >
+ }
+ />
) : null}
diff --git a/apps/web/src/components/settings/ProviderModelsSection.tsx b/apps/web/src/components/settings/ProviderModelsSection.tsx
index fb9bd2df702e..2fe56258afe7 100644
--- a/apps/web/src/components/settings/ProviderModelsSection.tsx
+++ b/apps/web/src/components/settings/ProviderModelsSection.tsx
@@ -17,8 +17,8 @@ import { MAX_CUSTOM_MODEL_LENGTH } from "../../modelSelection";
import { Button } from "../ui/button";
import { Input } from "../ui/input";
import { Switch } from "../ui/switch";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { CustomModelEditor } from "./CustomModelEditor";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const CUSTOM_MODEL_PLACEHOLDER_BY_KIND: Partial> = {
[ProviderDriverKind.make("codex")]: "gpt-6.7-codex-ultra-preview",
@@ -559,49 +559,46 @@ const ProviderModelRow = memo(function ProviderModelRow({
isHidden && "opacity-50",
)}
>
-
- onToggleFavorite(model.slug)}
+ aria-label={
+ isFavorite
+ ? gt("Remove {name} from favorites", { name: model.name })
+ : gt("Add {name} to favorites", { name: model.name })
+ }
+ />
+ }
+ label={isFavorite ? gt("Remove from favorites") : gt("Add to favorites")}
+ >
+
+
+
+ onToggleFavorite(model.slug)}
- aria-label={
- isFavorite
- ? gt("Remove {name} from favorites", { name: model.name })
- : gt("Add {name} to favorites", { name: model.name })
- }
- />
+
}
+ label={
+ <>
+ {model.name}
+ {model.name !== model.slug ? (
+ {model.slug}
+ ) : null}
+ >
+ }
+ align="start"
>
-
-
-
- {isFavorite ? gt("Remove from favorites") : gt("Add to favorites")}
-
-
-
-
-
- }
- >
- {model.name}
- {model.name !== model.slug ? (
-
- {model.slug}
-
- ) : null}
-
-
- {model.name}
- {model.name !== model.slug ? (
- {model.slug}
- ) : null}
-
-
+ {model.name}
+ {model.name !== model.slug ? (
+
+ {model.slug}
+
+ ) : null}
+
{model.isCustom ? (
{gt("custom", { $context: "badge, user-added model" })}
@@ -616,98 +613,98 @@ const ProviderModelRow = memo(function ProviderModelRow({
{!isHidden && !isFiltering ? (
<>
-
- onMove(model.slug, -1)}
- aria-label={gt("Move {name} up", { name: model.name })}
- />
- }
- >
-
-
-
- Move up
-
-
-
- onMove(model.slug, 1)}
- aria-label={gt("Move {name} down", { name: model.name })}
- />
- }
- >
-
-
-
- Move down
-
-
+ onMove(model.slug, -1)}
+ aria-label={gt("Move {name} up", { name: model.name })}
+ />
+ }
+ label={
+ <>
+ Move up
+ >
+ }
+ >
+
+
+ onMove(model.slug, 1)}
+ aria-label={gt("Move {name} down", { name: model.name })}
+ />
+ }
+ label={
+ <>
+ Move down
+ >
+ }
+ >
+
+
>
) : null}
{model.isCustom ? (
<>
-
- onToggleEdit(model.slug)}
- />
- }
- >
-
-
-
- Edit name and options
-
-
-
- onRemove(model.slug)}
- />
- }
- >
-
-
-
- Remove custom model
-
-
+ onToggleEdit(model.slug)}
+ />
+ }
+ label={
+ <>
+ Edit name and options
+ >
+ }
+ >
+
+
+ onRemove(model.slug)}
+ />
+ }
+ label={
+ <>
+ Remove custom model
+ >
+ }
+ >
+
+
>
) : null}
{/* Disabled switches receive no pointer events; wrap the tooltip trigger. */}
-
- }>
- onSetHidden(model.slug, !checked)}
- aria-label={gt("Show {name} in the model picker", { name: model.name })}
- />
-
- {pickerTooltip}
-
+ }
+ label={pickerTooltip}
+ >
+ onSetHidden(model.slug, !checked)}
+ aria-label={gt("Show {name} in the model picker", { name: model.name })}
+ />
+
);
});
diff --git a/apps/web/src/components/settings/ProviderSettingsPanel.tsx b/apps/web/src/components/settings/ProviderSettingsPanel.tsx
index 892c9cd21945..fea2b1258c84 100644
--- a/apps/web/src/components/settings/ProviderSettingsPanel.tsx
+++ b/apps/web/src/components/settings/ProviderSettingsPanel.tsx
@@ -94,7 +94,6 @@ import {
} from "../ui/empty";
import { ScrollArea } from "../ui/scroll-area";
import { Toggle, ToggleGroup } from "../ui/toggle-group";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { stackedThreadToast, toastManager } from "../ui/toast";
import { AddProviderInstanceDialog } from "./AddProviderInstanceDialog";
import { useManagedPolicy } from "~/state/managedPolicy";
@@ -135,6 +134,7 @@ import {
resolveRemoteOperateAccess,
resolveSelectedProviderEnvironmentId,
} from "./ProviderSettingsPanel.logic";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
function providerInstanceName(instance: ProviderInstanceConfig): string {
return (
@@ -416,32 +416,33 @@ function ProviderSettingsPanelContent(target: ProviderSettingsTarget) {
const detail = providerEnvironmentDetail(environment, m);
const statusText = connectionStatusTitle(environment.connection, m);
return (
-
-
-
+
+ {environment.label}
+ {environment.connection.phase !== "connected" ? (
+
- {environment.label}
- {environment.connection.phase !== "connected" ? (
-
- ) : null}
-
- {detail}, {statusText}
-
-
- }
- />
-
- {detail} · {statusText}
-
-
+ ) : null}
+
+ {detail}, {statusText}
+
+
+ }
+ label={
+ <>
+ {detail} · {statusText}
+ >
+ }
+ />
);
})}
@@ -1029,57 +1030,57 @@ export function EnvironmentProviderSettings({
variant="plain"
titleAction={
canAddProvider ? (
-
- setIsAddInstanceDialogOpen(true)}
- aria-label={gt("Add provider")}
- >
-
-
- }
- />
-
- Add provider
-
-
+ setIsAddInstanceDialogOpen(true)}
+ aria-label={gt("Add provider")}
+ >
+
+
+ }
+ label={
+ <>
+ Add provider
+ >
+ }
+ />
) : null
}
headerAction={
// The ghost button's padding would inset its label, so pull the text to the card edge.
-
- void refreshProviders()}
- >
-
-
- Refresh provider status
-
-
- {isRefreshingProviders ? (
- gt("Refreshing providers")
- ) : (
-
- )}
-
-
- }
- />
-
- Refresh provider status
-
-
+ void refreshProviders()}
+ >
+
+
+ Refresh provider status
+
+
+ {isRefreshingProviders ? (
+ gt("Refreshing providers")
+ ) : (
+
+ )}
+
+
+ }
+ label={
+ <>
+ Refresh provider status
+ >
+ }
+ />
}
>
diff --git a/apps/web/src/components/settings/ProviderSetupSection.tsx b/apps/web/src/components/settings/ProviderSetupSection.tsx
index 5c887e7a3aee..93ead5f4fc81 100644
--- a/apps/web/src/components/settings/ProviderSetupSection.tsx
+++ b/apps/web/src/components/settings/ProviderSetupSection.tsx
@@ -22,9 +22,9 @@ import { useEnvironmentQuery } from "../../state/query";
import { serverEnvironment } from "../../state/server";
import { useAtomCommand } from "../../state/use-atom-command";
import { Button } from "../ui/button";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { SettingsRow } from "./settingsLayout";
import { ProviderAuthenticationSection } from "./ProviderAuthenticationSection";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
interface ProviderSetupSectionProps {
readonly environmentId: EnvironmentId;
@@ -307,25 +307,25 @@ function ProviderSetupActions({
) : null}
{installation?.canRemove && !installActive ? (
-
- void removeRuntime()}
- />
- }
- >
-
-
-
- Remove downloaded runtime
-
-
+ void removeRuntime()}
+ />
+ }
+ label={
+ <>
+ Remove downloaded runtime
+ >
+ }
+ >
+
+
) : null}
diff --git a/apps/web/src/components/settings/RedactedSensitiveText.tsx b/apps/web/src/components/settings/RedactedSensitiveText.tsx
index 6dd8e1f77cc4..ab267c4eed02 100644
--- a/apps/web/src/components/settings/RedactedSensitiveText.tsx
+++ b/apps/web/src/components/settings/RedactedSensitiveText.tsx
@@ -2,7 +2,7 @@ import { useState } from "react";
import { flushSync } from "react-dom";
import { cn } from "../../lib/utils";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const REDACTED_TEXT_ALPHABET = "abcdefghjkmnpqrstuvwxyz23456789";
@@ -40,39 +40,37 @@ export function RedactedSensitiveText(props: {
if (!value) return null;
return (
-
- {
- if (!revealed) return setVisibility("revealed");
- const button = event.currentTarget;
- flushSync(() => setVisibility("hiding"));
- const finishHiding = () =>
- setVisibility((current) => (current === "hiding" ? "hidden" : current));
- const blur = button
- .getAnimations()
- .find(
- (animation) =>
- animation instanceof CSSTransition && animation.transitionProperty === "filter",
- );
- // Theme changes suppress the transition; a reversed one settles once revealed.
- if (blur) void blur.finished.then(finishHiding, finishHiding);
- else finishHiding();
- }}
- aria-label={props.ariaLabel}
- >
- {visibility === "hidden" ? redacted : value}
-
- }
- />
- {revealed ? props.hideTooltip : props.revealTooltip}
-
+ {
+ if (!revealed) return setVisibility("revealed");
+ const button = event.currentTarget;
+ flushSync(() => setVisibility("hiding"));
+ const finishHiding = () =>
+ setVisibility((current) => (current === "hiding" ? "hidden" : current));
+ const blur = button
+ .getAnimations()
+ .find(
+ (animation) =>
+ animation instanceof CSSTransition && animation.transitionProperty === "filter",
+ );
+ // Theme changes suppress the transition; a reversed one settles once revealed.
+ if (blur) void blur.finished.then(finishHiding, finishHiding);
+ else finishHiding();
+ }}
+ aria-label={props.ariaLabel}
+ >
+ {visibility === "hidden" ? redacted : value}
+
+ }
+ label={revealed ? props.hideTooltip : props.revealTooltip}
+ />
);
}
diff --git a/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx b/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx
index 7bf23d618601..7152f3defd4f 100644
--- a/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx
+++ b/apps/web/src/components/settings/ResourceTelemetryDiagnostics.tsx
@@ -53,7 +53,6 @@ import { useRelativeTimeState } from "../../hooks/useRelativeTimeState";
import { Button } from "../ui/button";
import { ScrollArea } from "../ui/scroll-area";
import { Toggle, ToggleGroup } from "../ui/toggle-group";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { toastManager } from "../ui/toast";
import {
formatCpuTime,
@@ -65,6 +64,7 @@ import {
visibleResourceTelemetryProcesses,
} from "./ResourceTelemetryDiagnostics.logic";
import { SettingsSection } from "./settingsLayout";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const HISTORY_WINDOWS = [
{ label: "5m", windowMs: 5 * 60_000, bucketMs: 15_000 },
@@ -433,38 +433,40 @@ function ResourceHistoryChart({
minimumVisiblePercent: 1,
});
return (
-
-
-
-
-
-
- }
- />
-
-
-
- {gt("CPU avg {percent}%", { percent: bucket.avgCpuPercent.toFixed(1) })}
-
-
- {gt("CPU peak {percent}%", { percent: bucket.maxCpuPercent.toFixed(1) })}
-
- {gt("Read {bytes}", { bytes: formatBytes(bucket.ioReadBytes) })}
- {gt("Write {bytes}", { bytes: formatBytes(bucket.ioWriteBytes) })}
+
+
+
+
-
-
+ }
+ label={
+ <>
+
+
+ {gt("CPU avg {percent}%", { percent: bucket.avgCpuPercent.toFixed(1) })}
+
+
+ {gt("CPU peak {percent}%", { percent: bucket.maxCpuPercent.toFixed(1) })}
+
+ {gt("Read {bytes}", { bytes: formatBytes(bucket.ioReadBytes) })}
+ {gt("Write {bytes}", { bytes: formatBytes(bucket.ioWriteBytes) })}
+
+ >
+ }
+ className="text-left"
+ />
);
})}
@@ -506,14 +508,11 @@ function ProcessTreeName({
)}
-
- {name}}
- />
-
- {process.command || process.name}
-
-
+ {name}}
+ label={process.command || process.name}
+ variant="code"
+ />
);
}
@@ -674,12 +673,10 @@ function ProcessTable({
{formatBytes(process.ioReadBytes)}
|
-
- {formatBytes(process.ioWriteBytes)}} />
-
- {ioSemanticsLabel(process.ioSemantics, messages)}
-
-
+ {formatBytes(process.ioWriteBytes)}}
+ label={ioSemanticsLabel(process.ioSemantics, messages)}
+ />
|
{process.identity.pid}
@@ -769,18 +766,15 @@ function HistoryProcessTable({
{processes.map((process) => (
|
|
-
-
- {process.name || process.command}
-
- }
- />
-
- {process.command || process.name}
-
-
+
+ {process.name || process.command}
+
+ }
+ label={process.command || process.name}
+ variant="code"
+ />
|
{categoryLabel(process.category, messages)}
@@ -1070,24 +1064,24 @@ function ResourceTelemetryDiagnosticsBody({
) : null}
-
-
-
-
- }
- />
-
- Refresh telemetry snapshot
-
-
+
+
+
+ }
+ label={
+ <>
+ Refresh telemetry snapshot
+ >
+ }
+ />
}
>
diff --git a/apps/web/src/components/settings/SavedEnvironmentRows.tsx b/apps/web/src/components/settings/SavedEnvironmentRows.tsx
index 2b9ad1225ff0..569437f239a2 100644
--- a/apps/web/src/components/settings/SavedEnvironmentRows.tsx
+++ b/apps/web/src/components/settings/SavedEnvironmentRows.tsx
@@ -43,6 +43,7 @@ import { Menu, MenuItem, MenuPopup, MenuSeparator, MenuTrigger } from "../ui/men
import { Switch } from "../ui/switch";
import { stackedThreadToast, toastManager } from "../ui/toast";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
import { Button, InlineButton } from "../ui/button";
import { Empty, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../ui/empty";
import {
@@ -411,26 +412,22 @@ export function SavedBackendListRow({
appearance="icon"
/>
) : null}
-
- onSetEnabled(environmentId, checked)}
- />
- }
- />
-
- {blocked ? gt("Client not supported") : enabled ? gt("Switch off") : gt("Switch on")}
-
-
+ onSetEnabled(environmentId, checked)}
+ />
+ }
+ label={blocked ? gt("Client not supported") : enabled ? gt("Switch off") : gt("Switch on")}
+ />
);
}
@@ -1457,24 +1454,24 @@ export function VoiceSettingsPanel() {
title={gt("Microphone")}
description={gt("Voice input uses the first connected microphone in this list.")}
control={
-
- void refreshMicrophones()}
- >
-
-
- }
- />
-
- Refresh microphones
-
-
+ void refreshMicrophones()}
+ >
+
+
+ }
+ label={
+ <>
+ Refresh microphones
+ >
+ }
+ />
}
>
@@ -1659,28 +1656,26 @@ export function VoiceSettingsPanel() {
{destination.cloudProvider &&
chosenEnvironment &&
(canManageKey || destination.cloudProvider === "openrouter") && (
-
- {
- if (destination.cloudProvider)
- setPendingCloud({
- provider: destination.cloudProvider,
- environmentId: chosenEnvironment.environmentId,
- });
- }}
- >
-
-
- }
- />
- {manageLabel}
-
+ {
+ if (destination.cloudProvider)
+ setPendingCloud({
+ provider: destination.cloudProvider,
+ environmentId: chosenEnvironment.environmentId,
+ });
+ }}
+ >
+
+
+ }
+ label={manageLabel}
+ />
)}
}
diff --git a/apps/web/src/components/settings/settingsLayout.tsx b/apps/web/src/components/settings/settingsLayout.tsx
index ee9cf2cfdc89..70c80e47097b 100644
--- a/apps/web/src/components/settings/settingsLayout.tsx
+++ b/apps/web/src/components/settings/settingsLayout.tsx
@@ -22,6 +22,7 @@ import { cn } from "../../lib/utils";
import { WorkspacePageContainer, type WorkspacePageWidth } from "../WorkspacePageContainer";
import { Button } from "../ui/button";
import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
import { useOptionalSettingsScope } from "./SettingsScopeContext";
import { SettingsScopeSentence } from "./SettingsScopeSentence";
import {
@@ -424,24 +425,22 @@ export function SettingsRow({
resetAction
);
const inertControl = (message: string) => (
-
-
- }
+
+ }
+ label={message}
+ >
+
-
- {control}
-
-
- {message}
-
+ {control}
+
+
);
const lackingPermissionMessage = () => {
const environments = context
diff --git a/apps/web/src/components/sidebar/SidebarChrome.tsx b/apps/web/src/components/sidebar/SidebarChrome.tsx
index 1dbc9b9fc636..637921f1f910 100644
--- a/apps/web/src/components/sidebar/SidebarChrome.tsx
+++ b/apps/web/src/components/sidebar/SidebarChrome.tsx
@@ -32,7 +32,6 @@ import {
SidebarTrigger,
useSidebar,
} from "../ui/sidebar";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { readPullRequestListPreferences } from "../pullRequest/pullRequestListPreferences";
import { readIssueListPreferences } from "../issue/issueListPreferences";
import { IssueGlyph } from "../issue/issuePresentation";
@@ -42,6 +41,7 @@ import { SidebarProviderUpdatePill } from "./SidebarProviderUpdatePill";
import { SidebarUpdateArchitectureWarning, SidebarUpdatePill } from "./SidebarUpdatePill";
import { PullRequestGlyph } from "~/components/pullRequest/pullRequestIcons";
import { observeResize } from "~/lib/observeResize";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
export const SidebarChromeHeader = memo(function SidebarChromeHeader({
isElectron,
@@ -141,29 +141,30 @@ function HistoryNavigationButton({
);
const Icon = direction === "back" ? ArrowLeftIcon : ArrowRightIcon;
return (
-
- navigateHistory(direction)}
- size="icon-sm"
- variant={onBackdrop ? "media-navigation" : "ghost"}
- />
- }
- >
-
-
-
- {label}
- {shortcutLabel ? ` (${shortcutLabel})` : ""}
-
-
+ navigateHistory(direction)}
+ size="icon-sm"
+ variant={onBackdrop ? "media-navigation" : "ghost"}
+ />
+ }
+ label={
+ <>
+ {label}
+ {shortcutLabel ? ` (${shortcutLabel})` : ""}
+ >
+ }
+ side="bottom"
+ >
+
+
);
}
@@ -211,16 +212,14 @@ function SidebarUtilityItem({
}) {
return (
-
-
- {icon}
-
- }
- />
- {label}
-
+
+ {icon}
+
+ }
+ label={label}
+ />
);
}
diff --git a/apps/web/src/components/sidebar/SidebarDraftBlock.tsx b/apps/web/src/components/sidebar/SidebarDraftBlock.tsx
index e0b0d92a764a..6c41c2083877 100644
--- a/apps/web/src/components/sidebar/SidebarDraftBlock.tsx
+++ b/apps/web/src/components/sidebar/SidebarDraftBlock.tsx
@@ -19,7 +19,6 @@ import { cn } from "~/lib/utils";
import { useTerminalLabelsByThreadKey } from "~/state/terminalSessions";
import { resolveSidebarRowAccessibility } from "../Sidebar.logic";
import { ProjectFavicon, type ProjectFaviconProject } from "../ProjectFavicon";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import {
composerDraftHasUserContent,
DraftId,
@@ -33,6 +32,7 @@ import {
JUMP_HINT_SLOT_CLASS_NAME,
JumpHintBadge,
} from "./SidebarThreadRow";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const EMPTY_COMPOSER_PARTS = {
prompt: "",
@@ -170,23 +170,23 @@ const SidebarDraftRow = memo(function SidebarDraftRow(props: {
props.jumpLabel && JUMP_HINT_SLOT_CLASS_NAME,
)}
>
-
-
-
-
- }
- />
-
- Discard draft
-
-
+
+
+
+ }
+ label={
+ <>
+ Discard draft
+ >
+ }
+ />
{props.jumpLabel ? : null}
diff --git a/apps/web/src/components/sidebar/SidebarProjectFolderHeader.tsx b/apps/web/src/components/sidebar/SidebarProjectFolderHeader.tsx
index 7ebda48e5b89..8c4f6131dff6 100644
--- a/apps/web/src/components/sidebar/SidebarProjectFolderHeader.tsx
+++ b/apps/web/src/components/sidebar/SidebarProjectFolderHeader.tsx
@@ -12,7 +12,7 @@ import { useUiStateStore } from "../../uiStateStore";
import { resolveSidebarFolderDot, resolveThreadLastVisitedAt } from "../Sidebar.logic";
import { ProjectFavicon } from "../ProjectFavicon";
import { Button } from "../ui/button";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
const FOLDER_DOT_CLASS_NAME = {
attention: "bg-warning",
@@ -112,26 +112,26 @@ export const SidebarProjectFolderHeader = memo(function SidebarProjectFolderHead
{/* Sits over the count, which hides on hover or focus, and left of the chevron. */}
-
- props.onNewThread(group)}
- />
- }
- >
-
-
-
-
- New thread in {group.displayName}
-
-
-
+ props.onNewThread(group)}
+ />
+ }
+ label={
+ <>
+
+ New thread in {group.displayName}
+
+ >
+ }
+ >
+
+
);
diff --git a/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx b/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
index 5ca319587792..674e3b04b72c 100644
--- a/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
+++ b/apps/web/src/components/sidebar/SidebarProviderUpdatePill.tsx
@@ -11,7 +11,7 @@ import {
getProviderUpdateSidebarPillView,
type ProviderUpdateSidebarPillView,
} from "../ProviderUpdateLaunchNotification.logic";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
// Matches the pill's `duration-180` class.
const PROVIDER_UPDATE_PILL_EXIT_MS = 180;
@@ -172,49 +172,47 @@ export function SidebarProviderUpdatePill() {
/>
) : null}
-
-
+ {displayedView.tone === "loading" ? (
+
+ ) : displayedView.tone === "success" ? (
+
+ ) : displayedView.tone === "error" ? (
+
+ ) : (
+
+ )}
+ {displayedView.title}
+
+ }
+ label={displayedView.description}
+ />
+ {displayedView.dismissible && (
+ startExit(displayedView.key, null, displayedView.dismissKeys)}
>
- {displayedView.tone === "loading" ? (
-
- ) : displayedView.tone === "success" ? (
-
- ) : displayedView.tone === "error" ? (
-
- ) : (
-
- )}
- {displayedView.title}
+
}
+ label={
+ <>
+ Dismiss until provider status changes
+ >
+ }
/>
- {displayedView.description}
-
- {displayedView.dismissible && (
-
- startExit(displayedView.key, null, displayedView.dismissKeys)}
- >
-
-
- }
- />
-
- Dismiss until provider status changes
-
-
)}
);
diff --git a/apps/web/src/components/sidebar/SidebarThreadHeader.tsx b/apps/web/src/components/sidebar/SidebarThreadHeader.tsx
index 185f8fc8487a..91f7fe206d82 100644
--- a/apps/web/src/components/sidebar/SidebarThreadHeader.tsx
+++ b/apps/web/src/components/sidebar/SidebarThreadHeader.tsx
@@ -11,7 +11,7 @@ import {
import { cn } from "~/lib/utils";
import { Button } from "../ui/button";
import { SidebarInput, SidebarMenuButton } from "../ui/sidebar";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
export interface SidebarThreadHeaderProps {
hasProjects: boolean;
@@ -142,25 +142,23 @@ export function SidebarHeaderIconButton({
"children" | "className" | "tooltip" | "isActive" | "aria-label"
>) {
return (
-
-
- }
- >
- {children}
-
-
- {tooltip}
-
+ }
+ label={tooltip}
+ >
+ {children}
+
+
);
}
diff --git a/apps/web/src/components/sidebar/SidebarThreadRow.tsx b/apps/web/src/components/sidebar/SidebarThreadRow.tsx
index dcc7f6983084..635d6acabfc3 100644
--- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx
+++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx
@@ -1,6 +1,6 @@
import { useAtomMount, useAtomValue } from "@effect/atom-react";
import { asLaunchingThread } from "@t3tools/client-runtime/state/thread-inbox";
-import { ThreadHoverCard, ThreadHoverCardPopup } from "../ThreadHoverCard";
+import { ThreadHoverCard, ThreadHoverCardTrigger } from "../ThreadHoverCard";
import { ThreadTerminalStatusButton } from "../ThreadStatusIndicators";
import { discardComposerDraft } from "../../lib/discardComposerDraft";
import { formatWorktreePathForDisplay } from "../../worktreeCleanup";
@@ -132,7 +132,7 @@ import { useThreadRunningTerminalIds } from "../../state/terminalSessions";
import { InlineButton } from "../ui/button";
import { Kbd } from "../ui/kbd";
import { Menu, MenuItem, MenuItemDetail, MenuPopup, MenuSeparator, MenuTrigger } from "../ui/menu";
-import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
+import { SharedTooltipTrigger } from "../ui/shared-tooltip";
import { MiddleTruncate } from "../ui/middle-truncate";
import { ActivityShimmerOverlay } from "../chat/TimelineRowParts";
import { observeVisibleAnimation } from "~/lib/visibleAnimation";
@@ -163,14 +163,16 @@ function compactSidebarTimeLabel(timestamp: string, nowMs: number, resolve: Mess
function PendingSyncLabel() {
return (
-
- }>
- Pending
-
-
- Waiting to sync with its environment
-
-
+ }
+ label={
+ <>
+ Waiting to sync with its environment
+ >
+ }
+ >
+ Pending
+
);
}
@@ -314,7 +316,7 @@ function SidebarThreadTooltip({
const gt = useGT();
const m = useMessages();
return (
-
+ <>
) : null}
-
+ >
);
}
@@ -439,28 +441,28 @@ function SnoozeMenuButton(props: {
: [];
return (
|