refactor(HAI-116): rename kb to hai across all packages, CLI, and docs

- Rename npm packages from @kb/* to @hai/* and update all workspace references
- Rename CLI binary from kb to hai and config directory from .kb to .hai
- Update dashboard UI branding, titles, and references from kb to hai
- Update all test files, CI workflows, and documentation to reflect new naming
- Run comprehensive grep verification to ensure no stale kb references remain
This commit is contained in:
Dustin Byrne
2026-03-26 22:25:30 -04:00
parent 1c5eb494db
commit c802108a02
84 changed files with 792 additions and 1363 deletions

View File

@@ -1,7 +1,7 @@
import { describe, it, expect, vi } from "vitest";
import { render, screen } from "@testing-library/react";
import { Column } from "../Column";
import type { Task, Column as ColumnType } from "@hai/core";
import type { Task, Column as ColumnType } from "@kb/core";
// Mock child components to keep tests focused on the Column badge behavior
vi.mock("../TaskCard", () => ({
@@ -43,7 +43,7 @@ const defaultProps = {
describe("Column count-flash", () => {
it("does not apply count-flash class on initial render", () => {
const tasks = [makeTask("HAI-001")];
const tasks = [makeTask("KB-001")];
render(<Column {...defaultProps} tasks={tasks} />);
const badge = screen.getByText("1");
@@ -52,10 +52,10 @@ describe("Column count-flash", () => {
});
it("applies count-flash class when task count increases", () => {
const tasks = [makeTask("HAI-001")];
const tasks = [makeTask("KB-001")];
const { rerender } = render(<Column {...defaultProps} tasks={tasks} />);
const moreTasks = [makeTask("HAI-001"), makeTask("HAI-002")];
const moreTasks = [makeTask("KB-001"), makeTask("KB-002")];
rerender(<Column {...defaultProps} tasks={moreTasks} />);
const badge = screen.getByText("2");
@@ -63,10 +63,10 @@ describe("Column count-flash", () => {
});
it("does not apply count-flash class when task count decreases", () => {
const tasks = [makeTask("HAI-001"), makeTask("HAI-002")];
const tasks = [makeTask("KB-001"), makeTask("KB-002")];
const { rerender } = render(<Column {...defaultProps} tasks={tasks} />);
const fewerTasks = [makeTask("HAI-001")];
const fewerTasks = [makeTask("KB-001")];
rerender(<Column {...defaultProps} tasks={fewerTasks} />);
const badge = screen.getByText("1");