From d39a38540e7593208863abe66fafae9d2b35af1b Mon Sep 17 00:00:00 2001 From: Mikkel Georgsen Date: Tue, 31 Mar 2026 13:25:00 +0200 Subject: [PATCH] feat(06-01): fix named terminology straggler requirements (TERM-10 through TERM-17) - TERM-10: Companies.tsx breadcrumb uses VOCAB.companies, loading/delete text uses VOCAB - TERM-11: InstanceSettings.tsx adds VOCAB import, uses VOCAB.company/companies - TERM-12: Costs.tsx adds VOCAB import and SCOPE_LABELS map, replaces hardcoded company strings - TERM-13: CompanyImport.tsx uses VOCAB.appName, VOCAB.company, VOCAB.board throughout - TERM-17: IssuesList.tsx (component) title='Board view' -> 'Kanban view' - Dashboard.tsx: 'awaiting board review' -> 'awaiting owner review' - CompanySettings.tsx: 'No company selected' uses VOCAB.company - ReportsToPicker.tsx: adds VOCAB import, default label uses VOCAB.ceo not hardcoded 'CEO' --- ui/src/components/IssuesList.tsx | 2 +- ui/src/components/ReportsToPicker.tsx | 6 ++++-- ui/src/pages/Companies.tsx | 6 +++--- ui/src/pages/CompanyImport.tsx | 16 ++++++++-------- ui/src/pages/CompanySettings.tsx | 2 +- ui/src/pages/Costs.tsx | 17 ++++++++++++----- ui/src/pages/Dashboard.tsx | 4 ++-- ui/src/pages/InstanceSettings.tsx | 5 +++-- 8 files changed, 34 insertions(+), 24 deletions(-) diff --git a/ui/src/components/IssuesList.tsx b/ui/src/components/IssuesList.tsx index a601aec7..38d5f00e 100644 --- a/ui/src/components/IssuesList.tsx +++ b/ui/src/components/IssuesList.tsx @@ -391,7 +391,7 @@ export function IssuesList({ diff --git a/ui/src/components/ReportsToPicker.tsx b/ui/src/components/ReportsToPicker.tsx index 3c279f78..75924dc6 100644 --- a/ui/src/components/ReportsToPicker.tsx +++ b/ui/src/components/ReportsToPicker.tsx @@ -1,4 +1,5 @@ import { useState } from "react"; +import { VOCAB } from "@paperclipai/branding"; import type { Agent } from "@paperclipai/shared"; import { Popover, @@ -16,7 +17,7 @@ export function ReportsToPicker({ onChange, disabled = false, excludeAgentIds = [], - disabledEmptyLabel = "Reports to: N/A (CEO)", + disabledEmptyLabel, chooseLabel = "Reports to...", }: { agents: Agent[]; @@ -27,6 +28,7 @@ export function ReportsToPicker({ disabledEmptyLabel?: string; chooseLabel?: string; }) { + const label = disabledEmptyLabel ?? `Reports to: N/A (${VOCAB.ceo})`; const [open, setOpen] = useState(false); const exclude = new Set(excludeAgentIds); const rows = agents.filter( @@ -69,7 +71,7 @@ export function ReportsToPicker({ <> - {disabled ? disabledEmptyLabel : chooseLabel} + {disabled ? label : chooseLabel} )} diff --git a/ui/src/pages/Companies.tsx b/ui/src/pages/Companies.tsx index fffd69ef..d6a6e015 100644 --- a/ui/src/pages/Companies.tsx +++ b/ui/src/pages/Companies.tsx @@ -70,7 +70,7 @@ export function Companies() { }); useEffect(() => { - setBreadcrumbs([{ label: "Companies" }]); + setBreadcrumbs([{ label: VOCAB.companies }]); }, [setBreadcrumbs]); function startEdit(companyId: string, currentName: string) { @@ -98,7 +98,7 @@ export function Companies() {
- {loading &&

Loading companies...

} + {loading &&

{`Loading ${VOCAB.companies.toLowerCase()}...`}

} {error &&

{error.message}

}
@@ -267,7 +267,7 @@ export function Companies() { onClick={(e) => e.stopPropagation()} >

- Delete this company and all its data? This cannot be undone. + {`Delete this ${VOCAB.company.toLowerCase()} and all its data? This cannot be undone.`}