fix(03-05): grep audit fixes — CEO→Project Manager in export readme, Board→Owner in local user, test assertion updates
- 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<string>
This commit is contained in:
parent
aafa56a63c
commit
5a122129f9
5 changed files with 6 additions and 6 deletions
|
|
@ -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)");
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ describe("PaperclipApiClient", () => {
|
|||
causeMessage: "fetch failed",
|
||||
} satisfies Partial<ApiConnectionError>);
|
||||
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/,
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ export async function startServer(): Promise<StartedServer> {
|
|||
|
||||
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<void> {
|
||||
const now = new Date();
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
import type { CompanyPortabilityManifest } from "@paperclipai/shared";
|
||||
|
||||
const ROLE_LABELS: Record<string, string> = {
|
||||
ceo: "CEO",
|
||||
ceo: "Project Manager", // [nexus] was: "CEO"
|
||||
cto: "CTO",
|
||||
cmo: "CMO",
|
||||
cfo: "CFO",
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export function OnboardingWizard() {
|
|||
const [companyGoal, setCompanyGoal] = useState("");
|
||||
|
||||
// Step 2
|
||||
const [agentName, setAgentName] = useState(VOCAB.ceo);
|
||||
const [agentName, setAgentName] = useState<string>(VOCAB.ceo);
|
||||
const [adapterType, setAdapterType] = useState<AdapterType>("claude_local");
|
||||
const [model, setModel] = useState("");
|
||||
const [command, setCommand] = useState("");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue