diff --git a/client/src/components/Nav/Nav.tsx b/client/src/components/Nav/Nav.tsx index c51273d89b..4bf54b583f 100644 --- a/client/src/components/Nav/Nav.tsx +++ b/client/src/components/Nav/Nav.tsx @@ -22,6 +22,8 @@ import { import { cn } from '~/utils/'; import store from '~/store'; +import { TooltipProvider, Tooltip, TooltipTrigger, TooltipContent } from '~/components/ui/'; + export default function Nav({ navVisible, setNavVisible }) { const [isHovering, setIsHovering] = useState(false); const [navWidth, setNavWidth] = useState('260px'); @@ -161,78 +163,92 @@ export default function Nav({ navVisible, setNavVisible }) { : 'flex flex-col gap-2 text-gray-100 text-sm'; return ( - <> -
-
-
-
- + {isSearchEnabled && } +
setIsHovering(true)} + onMouseLeave={() => setIsHovering(false)} + ref={containerRef} + > +
+ {(getConversationsQuery.isLoading && pageNumber === 1) || isFetching ? ( + + ) : ( + + )} + +
+
+ + +
- - {!navVisible && ( -
- -
- )} + {!navVisible && ( +
+ + + + + {localize('com_nav_open_menu')} + +
+ )} -
- +
+ + ); } diff --git a/client/src/localization/languages/Eng.tsx b/client/src/localization/languages/Eng.tsx index 5051c73c64..d6a9158380 100644 --- a/client/src/localization/languages/Eng.tsx +++ b/client/src/localization/languages/Eng.tsx @@ -226,6 +226,8 @@ export default { com_endpoint_config_key_google_service_account: 'Create a Service Account', com_endpoint_config_key_google_vertex_api_role: 'Make sure to click \'Create and Continue\' to give at least the \'Vertex AI User\' role. Lastly, create a JSON key to import here.', + com_nav_close_menu: 'Close sidebar', + com_nav_open_menu: 'Open sidebar', com_nav_export_filename: 'Filename', com_nav_export_filename_placeholder: 'Set the filename', com_nav_export_type: 'Type', diff --git a/client/src/localization/languages/It.tsx b/client/src/localization/languages/It.tsx index 6f315f04f6..637faddda7 100644 --- a/client/src/localization/languages/It.tsx +++ b/client/src/localization/languages/It.tsx @@ -226,6 +226,8 @@ export default { com_endpoint_config_key_google_service_account: 'Crea un account di servizio', com_endpoint_config_key_google_vertex_api_role: 'Assicurati di fare clic su \'Crea e continua\' per dare almeno il ruolo \'Utente Vertex AI\'. Infine, crea una chiave JSON da importare qui.', + com_nav_close_menu: 'Apri la barra laterale', + com_nav_open_menu: 'Chiudi la barra laterale', com_nav_export_filename: 'Nome del file', com_nav_export_filename_placeholder: 'Imposta il nome del file', com_nav_export_type: 'Tipo',