From 5a122129f9ab8cb28107fe7e77af065e9f1fd753 Mon Sep 17 00:00:00 2001 From: Mikkel Georgsen Date: Tue, 31 Mar 2026 09:56:12 +0200 Subject: [PATCH] =?UTF-8?q?fix(03-05):=20grep=20audit=20fixes=20=E2=80=94?= =?UTF-8?q?=20CEO=E2=86=92Project=20Manager=20in=20export=20readme,=20Boar?= =?UTF-8?q?d=E2=86=92Owner=20in=20local=20user,=20test=20assertion=20updat?= =?UTF-8?q?es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - company-export-readme.ts: ROLE_LABELS ceo changed from 'CEO' to 'Project Manager' [nexus] - server/index.ts: LOCAL_BOARD_USER_NAME changed from 'Board' to 'Owner' [nexus] - cli/__tests__/company.test.ts: assertions updated to Workspace vocabulary - cli/__tests__/http.test.ts: assertion updated to 'Nexus API' from 'Paperclip API' - ui/OnboardingWizard.tsx: added explicit string type annotation for useState --- cli/src/__tests__/company.test.ts | 4 ++-- cli/src/__tests__/http.test.ts | 2 +- server/src/index.ts | 2 +- server/src/services/company-export-readme.ts | 2 +- ui/src/components/OnboardingWizard.tsx | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cli/src/__tests__/company.test.ts b/cli/src/__tests__/company.test.ts index d74674b2..86cc0fbe 100644 --- a/cli/src/__tests__/company.test.ts +++ b/cli/src/__tests__/company.test.ts @@ -278,7 +278,7 @@ describe("renderCompanyImportPreview", () => { }); expect(rendered).toContain("Include"); - expect(rendered).toContain("company, projects, tasks, agents, skills"); + expect(rendered).toContain("workspace, projects, tasks, agents, skills"); // [nexus] updated from "company" to "workspace" expect(rendered).toContain("7 agents total"); expect(rendered).toContain("1 project total"); expect(rendered).toContain("1 task total"); @@ -319,7 +319,7 @@ describe("renderCompanyImportResult", () => { }, ); - expect(rendered).toContain("Company"); + expect(rendered).toContain("Workspace"); // [nexus] updated from "Company" to "Workspace" expect(rendered).toContain("https://paperclip.example/PAP/dashboard"); expect(rendered).toContain("3 agents total (1 created, 1 updated, 1 skipped)"); expect(rendered).toContain("3 projects total (1 created, 1 updated, 1 skipped)"); diff --git a/cli/src/__tests__/http.test.ts b/cli/src/__tests__/http.test.ts index 0bacec7d..72ec7ae4 100644 --- a/cli/src/__tests__/http.test.ts +++ b/cli/src/__tests__/http.test.ts @@ -72,7 +72,7 @@ describe("PaperclipApiClient", () => { causeMessage: "fetch failed", } satisfies Partial); await expect(client.post("/api/companies/import/preview", {})).rejects.toThrow( - /Could not reach the Paperclip API\./, + /Could not reach the Nexus API\./, // [nexus] updated from "Paperclip API" to "Nexus API" ); await expect(client.post("/api/companies/import/preview", {})).rejects.toThrow( /curl http:\/\/localhost:3100\/api\/health/, diff --git a/server/src/index.ts b/server/src/index.ts index 7ebfa7d1..3fd29d4d 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -185,7 +185,7 @@ export async function startServer(): Promise { const LOCAL_BOARD_USER_ID = "local-board"; const LOCAL_BOARD_USER_EMAIL = "local@paperclip.local"; - const LOCAL_BOARD_USER_NAME = "Board"; + const LOCAL_BOARD_USER_NAME = "Owner"; // [nexus] was: "Board" async function ensureLocalTrustedBoardPrincipal(db: any): Promise { const now = new Date(); diff --git a/server/src/services/company-export-readme.ts b/server/src/services/company-export-readme.ts index df8766e1..30f6bc29 100644 --- a/server/src/services/company-export-readme.ts +++ b/server/src/services/company-export-readme.ts @@ -4,7 +4,7 @@ import type { CompanyPortabilityManifest } from "@paperclipai/shared"; const ROLE_LABELS: Record = { - ceo: "CEO", + ceo: "Project Manager", // [nexus] was: "CEO" cto: "CTO", cmo: "CMO", cfo: "CFO", diff --git a/ui/src/components/OnboardingWizard.tsx b/ui/src/components/OnboardingWizard.tsx index fcbc2385..c0c155cf 100644 --- a/ui/src/components/OnboardingWizard.tsx +++ b/ui/src/components/OnboardingWizard.tsx @@ -112,7 +112,7 @@ export function OnboardingWizard() { const [companyGoal, setCompanyGoal] = useState(""); // Step 2 - const [agentName, setAgentName] = useState(VOCAB.ceo); + const [agentName, setAgentName] = useState(VOCAB.ceo); const [adapterType, setAdapterType] = useState("claude_local"); const [model, setModel] = useState(""); const [command, setCommand] = useState("");