diff --git a/ui/src/components/ActivityRow.tsx b/ui/src/components/ActivityRow.tsx index ebfe23c5..cc776457 100644 --- a/ui/src/components/ActivityRow.tsx +++ b/ui/src/components/ActivityRow.tsx @@ -1,4 +1,5 @@ import { Link } from "@/lib/router"; +import { VOCAB } from "@paperclipai/branding"; import { Identity } from "./Identity"; import { timeAgo } from "../lib/timeAgo"; import { cn } from "../lib/utils"; @@ -106,7 +107,7 @@ export function ActivityRow({ event, agentMap, entityNameMap, entityTitleMap, cl : entityLink(event.entityType, event.entityId, name); const actor = event.actorType === "agent" ? agentMap.get(event.actorId) : null; - const actorName = actor?.name ?? (event.actorType === "system" ? "System" : event.actorType === "user" ? "Board" : event.actorId || "Unknown"); + const actorName = actor?.name ?? (event.actorType === "system" ? "System" : event.actorType === "user" ? VOCAB.board : event.actorId || "Unknown"); const inner = (
diff --git a/ui/src/components/ApprovalPayload.tsx b/ui/src/components/ApprovalPayload.tsx index 83b55c73..cc01ef31 100644 --- a/ui/src/components/ApprovalPayload.tsx +++ b/ui/src/components/ApprovalPayload.tsx @@ -1,9 +1,10 @@ import { UserPlus, Lightbulb, ShieldAlert, ShieldCheck } from "lucide-react"; +import { VOCAB } from "@paperclipai/branding"; import { formatCents } from "../lib/utils"; export const typeLabel: Record = { - hire_agent: "Hire Agent", - approve_ceo_strategy: "CEO Strategy", + hire_agent: `${VOCAB.hire} Agent`, + approve_ceo_strategy: `${VOCAB.ceo} Strategy`, budget_override_required: "Budget Override", }; diff --git a/ui/src/components/CompanySwitcher.tsx b/ui/src/components/CompanySwitcher.tsx index aefe1020..4a1e81ef 100644 --- a/ui/src/components/CompanySwitcher.tsx +++ b/ui/src/components/CompanySwitcher.tsx @@ -1,4 +1,5 @@ import { ChevronsUpDown, Plus, Settings } from "lucide-react"; +import { VOCAB } from "@paperclipai/branding"; import { Link } from "@/lib/router"; import { useCompany } from "../context/CompanyContext"; import { @@ -40,7 +41,7 @@ export function CompanySwitcher() { )} - {selectedCompany?.name ?? "Select company"} + {selectedCompany?.name ?? `Select ${VOCAB.company.toLowerCase()}`}
@@ -66,7 +67,7 @@ export function CompanySwitcher() { - Company Settings + {`${VOCAB.company} Settings`} diff --git a/ui/src/components/NewAgentDialog.tsx b/ui/src/components/NewAgentDialog.tsx index aaaf7c6d..14f3178d 100644 --- a/ui/src/components/NewAgentDialog.tsx +++ b/ui/src/components/NewAgentDialog.tsx @@ -1,4 +1,5 @@ import { useState, type ComponentType } from "react"; +import { VOCAB } from "@paperclipai/branding"; import { useQuery } from "@tanstack/react-query"; import { useNavigate } from "@/lib/router"; import { useDialog } from "../context/DialogContext"; @@ -164,7 +165,7 @@ export function NewAgentDialog() {

- We recommend letting your CEO handle agent setup — they know the + {`We recommend letting your ${VOCAB.ceo} handle agent setup`} — they know the org structure and can configure reporting, permissions, and adapters.

@@ -172,7 +173,7 @@ export function NewAgentDialog() { {/* Advanced link */} diff --git a/ui/src/components/NewGoalDialog.tsx b/ui/src/components/NewGoalDialog.tsx index 0bb9ffcb..bb187d43 100644 --- a/ui/src/components/NewGoalDialog.tsx +++ b/ui/src/components/NewGoalDialog.tsx @@ -1,4 +1,5 @@ import { useRef, useState } from "react"; +import { VOCAB } from "@paperclipai/branding"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; import { GOAL_STATUSES, GOAL_LEVELS } from "@paperclipai/shared"; import { useDialog } from "../context/DialogContext"; @@ -27,7 +28,7 @@ import { MarkdownEditor, type MarkdownEditorRef } from "./MarkdownEditor"; import { StatusBadge } from "./StatusBadge"; const levelLabels: Record = { - company: "Company", + company: VOCAB.company, team: "Team", agent: "Agent", task: "Task", diff --git a/ui/src/components/Sidebar.tsx b/ui/src/components/Sidebar.tsx index b8cea2ca..b46ee9ed 100644 --- a/ui/src/components/Sidebar.tsx +++ b/ui/src/components/Sidebar.tsx @@ -12,6 +12,7 @@ import { Repeat, Settings, } from "lucide-react"; +import { VOCAB } from "@paperclipai/branding"; import { useQuery } from "@tanstack/react-query"; import { SidebarSection } from "./SidebarSection"; import { SidebarNavItem } from "./SidebarNavItem"; @@ -107,7 +108,7 @@ export function Sidebar() { - +