From a51c6c84c7d811e26509eaac827d52e38946dd60 Mon Sep 17 00:00:00 2001 From: rohan Date: Thu, 30 Oct 2025 20:49:59 +0530 Subject: [PATCH 1/3] fix: prevent org names from being reformatted Signed-off-by: rohan --- frontend/utils/navigation.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/utils/navigation.ts b/frontend/utils/navigation.ts index c995240e9..637e73c06 100644 --- a/frontend/utils/navigation.ts +++ b/frontend/utils/navigation.ts @@ -127,7 +127,13 @@ export const generatePageTitle = (ctx: NavigationContext): string => { // Filter out empty labels and reverse for title (most specific first) const titleParts = breadcrumbs .filter((crumb) => crumb.label && crumb.label.trim()) - .map((crumb) => startCase(crumb.label)) + .map((crumb, index) => { + // Don't apply startCase to org names (first breadcrumb) + if (index === 0) { + return crumb.label + } + return startCase(crumb.label) + }) .reverse() if (titleParts.length === 0) { From 718080ba79e38b42202763680b695b70e16ffa60 Mon Sep 17 00:00:00 2001 From: rohan Date: Thu, 30 Oct 2025 21:39:16 +0530 Subject: [PATCH 2/3] fix: remove redundant breadcrumbs Signed-off-by: rohan --- frontend/components/layout/Navbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/components/layout/Navbar.tsx b/frontend/components/layout/Navbar.tsx index 6350df6ef..3700960d9 100644 --- a/frontend/components/layout/Navbar.tsx +++ b/frontend/components/layout/Navbar.tsx @@ -76,11 +76,11 @@ export const NavBar = () => { href={crumb.href} className="capitalize overflow-hidden text-ellipsis whitespace-nowrap text-zinc-500" > - {startCase(crumb.label)} + {crumb.label} ) : ( - {startCase(crumb.label)} + {crumb.label} )} From 52e2b37606cf51c40041d8278944eb7bd372cf1b Mon Sep 17 00:00:00 2001 From: rohan Date: Thu, 30 Oct 2025 21:44:18 +0530 Subject: [PATCH 3/3] fix: improve title generation by filtering empty labels and applying startCase correctly Signed-off-by: rohan --- frontend/utils/navigation.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/utils/navigation.ts b/frontend/utils/navigation.ts index 637e73c06..100cdc6d0 100644 --- a/frontend/utils/navigation.ts +++ b/frontend/utils/navigation.ts @@ -124,12 +124,12 @@ export const generateBreadcrumbs = (ctx: NavigationContext): NavigationItem[] => export const generatePageTitle = (ctx: NavigationContext): string => { const breadcrumbs = generateBreadcrumbs(ctx) - // Filter out empty labels and reverse for title (most specific first) - const titleParts = breadcrumbs - .filter((crumb) => crumb.label && crumb.label.trim()) + const filteredCrumbs = breadcrumbs.filter((crumb) => crumb.label && crumb.label.trim()) + + // Apply startCase to all except the first breadcrumb (team/org name) + const titleParts = filteredCrumbs .map((crumb, index) => { - // Don't apply startCase to org names (first breadcrumb) - if (index === 0) { + if (index === 0 && ctx.team) { return crumb.label } return startCase(crumb.label)