Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Fix: 86eunu5u3 : Dashboard shows redundant "Team's Team Dashboard"

samme-abdul12ec26124d26
diff --git a/packages/app/src/react/shared/components/layouts/topbarPrimary/TopbarPrimary.tsx b/packages/app/src/react/shared/components/layouts/topbarPrimary/TopbarPrimary.tsx
index 2bc43204..9c60cd2b 100644
--- a/packages/app/src/react/shared/components/layouts/topbarPrimary/TopbarPrimary.tsx
+++ b/packages/app/src/react/shared/components/layouts/topbarPrimary/TopbarPrimary.tsx
@@ -44,7 +44,18 @@ export const TopbarPrimary = () => {
// Special case for agents path - customize with team name
if (matchingPath === '/agents') {
- return `${currTeam?.name ? `${currTeam?.name}'s` : 'Your'} ${PAGE_TITLE_MAP[matchingPath]}`;
+ // Handle redundant "Team" text when team name already ends with "Team"
+ if (currTeam?.name) {
+ const teamName = currTeam.name;
+ const endsWithTeam = teamName?.trim()?.toLowerCase()?.endsWith('team');
+
+ // If team name ends with "Team", just append "Dashboard"
+ // Otherwise, append "Team Dashboard"
+ const suffix = endsWithTeam ? 'Dashboard' : PAGE_TITLE_MAP[matchingPath];
+ return `${teamName}'s ${suffix}`;
+ }
+
+ return `Your ${PAGE_TITLE_MAP[matchingPath]}`;
}
if (matchingPath === '/teams/roles') {