diff --git a/components/shared/nav-bar.tsx b/components/shared/nav-bar.tsx index b2c9888..5ca2abc 100644 --- a/components/shared/nav-bar.tsx +++ b/components/shared/nav-bar.tsx @@ -5,6 +5,7 @@ import { usePathname } from 'next/navigation' import { logoutAction } from '@/actions/auth' import { Button } from '@/components/ui/button' import { Badge } from '@/components/ui/badge' +import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip' import { AppIcon } from '@/components/shared/app-icon' import { cn } from '@/lib/utils' import { useProductStore } from '@/stores/product-store' @@ -15,6 +16,12 @@ const ROLE_LABELS: Record = { DEVELOPER: 'Dev', } +const ROLE_FULL_LABELS: Record = { + PRODUCT_OWNER: 'Product Owner', + SCRUM_MASTER: 'Scrum Master', + DEVELOPER: 'Developer', +} + interface NavBarProps { isDemo: boolean roles: string[] @@ -79,20 +86,33 @@ export function NavBar({ isDemo, roles }: NavBarProps) { {/* Rechts: rollen + instellingen + uitloggen */}
{roles.length > 0 && ( - - {roles.map(r => ROLE_LABELS[r]).filter(Boolean).join(' · ')} - + + + }> + {roles.map(r => ROLE_LABELS[r]).filter(Boolean).join(' · ')} + + + {roles.map(r => ROLE_FULL_LABELS[r]).filter(Boolean).join(' · ')} + + + )} {currentProduct && ( - - {currentProduct.name.length > 20 - ? currentProduct.name.slice(0, 20) + '…' - : currentProduct.name} - + + + + }> + {currentProduct.name.length > 20 + ? currentProduct.name.slice(0, 20) + '…' + : currentProduct.name} + + {currentProduct.name} + + )}