From 3dc1eecf7191f89421d0693027e8bc16daec7162 Mon Sep 17 00:00:00 2001 From: Zane Staggs Date: Tue, 25 Nov 2025 09:44:12 -0700 Subject: [PATCH] add tooltips for icons in sidebar and recipes --- .../src/components/Layout/AppLayout.tsx | 44 +++- .../src/components/recipes/RecipesView.tsx | 215 +++++++++++------- 2 files changed, 162 insertions(+), 97 deletions(-) diff --git a/ui/desktop/src/components/Layout/AppLayout.tsx b/ui/desktop/src/components/Layout/AppLayout.tsx index 26029c48f6..b140234b91 100644 --- a/ui/desktop/src/components/Layout/AppLayout.tsx +++ b/ui/desktop/src/components/Layout/AppLayout.tsx @@ -5,6 +5,7 @@ import { View, ViewOptions } from '../../utils/navigationUtils'; import { AppWindowMac, AppWindow } from 'lucide-react'; import { Button } from '../ui/button'; import { Sidebar, SidebarInset, SidebarProvider, SidebarTrigger, useSidebar } from '../ui/sidebar'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../ui/Tooltip'; const AppLayoutContent: React.FC = () => { const navigate = useNavigate(); @@ -76,18 +77,37 @@ const AppLayoutContent: React.FC = () => {
{!shouldHideButtons && (
- - + + + + + + +

Toggle sidebar

+
+
+ + + + + +

New window

+
+
+
)} diff --git a/ui/desktop/src/components/recipes/RecipesView.tsx b/ui/desktop/src/components/recipes/RecipesView.tsx index d8e62625bc..73f0dd153d 100644 --- a/ui/desktop/src/components/recipes/RecipesView.tsx +++ b/ui/desktop/src/components/recipes/RecipesView.tsx @@ -32,6 +32,7 @@ import { generateDeepLink, Recipe } from '../../recipe'; import { useNavigation } from '../../hooks/useNavigation'; import { CronPicker } from '../schedule/CronPicker'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from '../ui/dialog'; +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../ui/Tooltip'; import cronstrue from 'cronstrue'; export default function RecipesView() { @@ -338,92 +339,136 @@ export default function RecipesView() {
- + + + + + + +

{slash_command ? 'Edit slash command' : 'Add slash command'}

+
+
-
- - - - - - -
+
+ + + + + +

Launch recipe

+
+
+ + + + + +

Launch in new window

+
+
+ + + + + +

Edit recipe

+
+
+ + + + + +

Copy deeplink

+
+
+ + + + + +

{schedule_cron ? 'Edit schedule' : 'Add schedule'}

+
+
+ + + + + +

Delete recipe

+
+
+
+
);