feat: add company builder wizard with AI-powered org generation (#73)
* feat: add company builder wizard with AI-powered org generation Adds a new "Build Your Company" step to the onboarding wizard that lets users describe their business and generates a full agent org structure using OpenClaw's AI. Includes company plan generation, role deduplication, agent bootstrap with main-agent reuse, org chart preview, confetti on success, CSS voxel running-avatar loader, amber theme unification, and best-effort SSH workspace cleanup. Made-with: Cursor * fix: resolve lint errors in CompanyBuilderModal Replace setState-in-effect pattern with a direct callback, escape apostrophes in JSX text, and derive org chart hover state without side effects. Made-with: Cursor --------- Co-authored-by: iamlukethedev <lucas.guilherme@smartwayslfl.com>
This commit is contained in:
@@ -42,6 +42,13 @@ describe("getStepIndex", () => {
|
||||
const idx = ONBOARDING_STEPS.findIndex((s) => s.id === "connect");
|
||||
expect(getStepIndex("connect")).toBe(idx);
|
||||
});
|
||||
|
||||
it("includes the company step before completion", () => {
|
||||
const companyIndex = getStepIndex("company");
|
||||
const completeIndex = getStepIndex("complete");
|
||||
expect(companyIndex).toBeGreaterThan(getStepIndex("agents"));
|
||||
expect(companyIndex).toBe(completeIndex - 1);
|
||||
});
|
||||
});
|
||||
|
||||
describe("getNextStep", () => {
|
||||
|
||||
Reference in New Issue
Block a user