diff --git a/frontend/src/components/Dialog/FaceSearchDialog.tsx b/frontend/src/components/Dialog/FaceSearchDialog.tsx index 6adab5794..6330318c1 100644 --- a/frontend/src/components/Dialog/FaceSearchDialog.tsx +++ b/frontend/src/components/Dialog/FaceSearchDialog.tsx @@ -9,6 +9,11 @@ import { DialogTitle, DialogTrigger, } from '@/components/ui/dialog'; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from '@/components/ui/tooltip'; import { useDispatch } from 'react-redux'; import { useFile } from '@/hooks/selectFile'; import { startSearch, clearSearch } from '@/features/searchSlice'; @@ -43,7 +48,7 @@ export function FaceSearchDialog() { showInfoDialog({ title: 'No Matches Found', message: - 'We couldn’t find any matching faces in your gallery for this photo.', + "We couldn't find any matching faces in your gallery for this photo.", variant: 'info', }), ); @@ -91,21 +96,28 @@ export function FaceSearchDialog() { return ( <> - - - + + + + + + + +

Search by face

+
+
- Face Detection Search + Search by Face Search for images containing specific faces by uploading a photo or using your webcam. diff --git a/frontend/src/components/Navigation/Navbar/Navbar.tsx b/frontend/src/components/Navigation/Navbar/Navbar.tsx index c565b7f6d..904e78648 100644 --- a/frontend/src/components/Navigation/Navbar/Navbar.tsx +++ b/frontend/src/components/Navigation/Navbar/Navbar.tsx @@ -6,6 +6,11 @@ import { selectAvatar, selectName } from '@/features/onboardingSelectors'; import { clearSearch } from '@/features/searchSlice'; import { convertFileSrc } from '@tauri-apps/api/core'; import { FaceSearchDialog } from '@/components/Dialog/FaceSearchDialog'; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from '@/components/ui/tooltip'; export function Navbar() { const userName = useSelector(selectName); @@ -42,14 +47,20 @@ export function Navbar() { className="h-7 w-7 rounded object-cover" /> {isSearchActive && ( - + + + + + +

Clear search

+
+
)} )} @@ -62,16 +73,22 @@ export function Navbar() { /> {/* FaceSearch Dialog */} - - + {/* Search Button */} + + + + + +

Search images

+
+
@@ -82,15 +99,22 @@ export function Navbar() { Welcome {userName} - - User avatar - + + + + User avatar + + + +

Profile settings

+
+
); -} +} \ No newline at end of file diff --git a/frontend/src/components/ThemeToggle.tsx b/frontend/src/components/ThemeToggle.tsx index a21d592ee..3bea0f992 100644 --- a/frontend/src/components/ThemeToggle.tsx +++ b/frontend/src/components/ThemeToggle.tsx @@ -7,46 +7,57 @@ import { DropdownMenuItem, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu'; +import { + Tooltip, + TooltipContent, + TooltipTrigger, +} from '@/components/ui/tooltip'; import { useTheme } from '@/contexts/ThemeContext'; export function ThemeSelector() { const { setTheme } = useTheme(); return ( - - - - - - setTheme('light')} - > - Light - - setTheme('dark')} - > - Dark - - setTheme('system')} - > - System - - - + + + + + + + + setTheme('light')} + > + Light + + setTheme('dark')} + > + Dark + + setTheme('system')} + > + System + + + + + +

Toggle theme

+
+
); -} +} \ No newline at end of file