From 386d8363661d9a9ad0f126eca1ecf373e0045a9d Mon Sep 17 00:00:00 2001 From: Jeremy Ruppel Date: Thu, 30 Apr 2026 16:50:08 -0400 Subject: [PATCH] feat(site): remove visible text from copy/download logs buttons (#24852) The text from the AgentRow copy/download logs buttons were cramping actual log stream tabs. Design would like to hide this text: 1. The "Copy logs" text is now in a tooltip over the button 2. The "Download logs" text is now screen-reader only https://github.com/user-attachments/assets/af883cae-67dc-4198-9fde-0ab5ea415360 --- site/src/modules/resources/AgentRow.tsx | 37 ++++++++++++++----- .../DownloadSelectedAgentLogsButton.tsx | 11 +++++- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/site/src/modules/resources/AgentRow.tsx b/site/src/modules/resources/AgentRow.tsx index ccf0f3761d..edbf1873b6 100644 --- a/site/src/modules/resources/AgentRow.tsx +++ b/site/src/modules/resources/AgentRow.tsx @@ -46,6 +46,12 @@ import { TabsTrigger, } from "#/components/Tabs/Tabs"; import { useKebabMenu } from "#/components/Tabs/utils/useKebabMenu"; +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from "#/components/Tooltip/Tooltip"; import { useProxy } from "#/contexts/ProxyContext"; import { useClipboard } from "#/hooks/useClipboard"; import { useFeatureVisibility } from "#/modules/dashboard/useFeatureVisibility"; @@ -606,18 +612,29 @@ export const AgentRow: FC = ({
- + + + + + + + {showCopiedSuccess + ? "Copied!" + : "Copy selected logs"} + + + -