From 5b4a9543c7ad0b74a17e7bcacd3b34dec8d38853 Mon Sep 17 00:00:00 2001 From: Mikkel Georgsen Date: Tue, 31 Mar 2026 10:08:38 +0200 Subject: [PATCH] [nexus] fix(03-05): replace remaining Paperclip/Companies display strings in BreadcrumbContext and CompanySwitcher --- ui/src/components/CompanySwitcher.tsx | 6 +++--- ui/src/context/BreadcrumbContext.tsx | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/src/components/CompanySwitcher.tsx b/ui/src/components/CompanySwitcher.tsx index 4a1e81ef..c178db0a 100644 --- a/ui/src/components/CompanySwitcher.tsx +++ b/ui/src/components/CompanySwitcher.tsx @@ -48,7 +48,7 @@ export function CompanySwitcher() { - Companies + {VOCAB.companies} {sidebarCompanies.map((company) => ( ))} {sidebarCompanies.length === 0 && ( - No companies + {`No ${VOCAB.companies.toLowerCase()}`} )} @@ -73,7 +73,7 @@ export function CompanySwitcher() { - Manage Companies + {`Manage ${VOCAB.companies}`} diff --git a/ui/src/context/BreadcrumbContext.tsx b/ui/src/context/BreadcrumbContext.tsx index c3a478a3..aee64f11 100644 --- a/ui/src/context/BreadcrumbContext.tsx +++ b/ui/src/context/BreadcrumbContext.tsx @@ -1,4 +1,5 @@ import { createContext, useCallback, useContext, useEffect, useState, type ReactNode } from "react"; +import { VOCAB } from "@paperclipai/branding"; // [nexus] export interface Breadcrumb { label: string; @@ -21,10 +22,10 @@ export function BreadcrumbProvider({ children }: { children: ReactNode }) { useEffect(() => { if (breadcrumbs.length === 0) { - document.title = "Paperclip"; + document.title = VOCAB.appName; // [nexus] } else { const parts = [...breadcrumbs].reverse().map((b) => b.label); - document.title = `${parts.join(" · ")} · Paperclip`; + document.title = `${parts.join(" · ")} · ${VOCAB.appName}`; // [nexus] } }, [breadcrumbs]);