From ec06a2d04d8ff0cdf52f539bf7ac8113be6881ad Mon Sep 17 00:00:00 2001 From: Jakob Wennberg <149234542+jakobwennberg@users.noreply.github.com> Date: Tue, 12 May 2026 13:47:55 +0200 Subject: [PATCH] fix(nav): render Beta/Dev/comingSoon badges for the main group (#447) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Huvudmeny group has its own render loop separate from AR/AP/ Personal/Accounting; it only emitted icon + label and ignored the betaBadge/devBadge/comingSoon flags. That's why Dokumentinkorg (group: main, betaBadge: true) never showed the Beta tag even though Löner and Anställda (group: personal) did. Adding the same badge precedence block to both render paths (desktop sidebar + mobile drawer). Co-authored-by: Claude Opus 4.7 (1M context) --- components/dashboard/DashboardNav.tsx | 30 +++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/components/dashboard/DashboardNav.tsx b/components/dashboard/DashboardNav.tsx index 6d30df5a..056c08d3 100644 --- a/components/dashboard/DashboardNav.tsx +++ b/components/dashboard/DashboardNav.tsx @@ -213,7 +213,20 @@ export default function DashboardNav({ companyName: _companyName, entityType, un "mr-2.5 h-[15px] w-[15px] flex-shrink-0", active ? "text-primary" : "text-muted-foreground group-hover:text-foreground" )} /> - {item.label} + {item.label} + {item.comingSoon ? ( + + Kommer snart + + ) : item.devBadge ? ( + + Dev + + ) : item.betaBadge ? ( + + Beta + + ) : null} ) const baseClass = cn( @@ -551,7 +564,20 @@ export default function DashboardNav({ companyName: _companyName, entityType, un const content = ( <> - {item.label} + {item.label} + {item.comingSoon ? ( + + Kommer snart + + ) : item.devBadge ? ( + + Dev + + ) : item.betaBadge ? ( + + Beta + + ) : null} ) const baseClass = cn(