feat(KB-334): change default task prefix from KB to FN

- Change default taskPrefix from KB to FN and branch naming from kb/ to fusion/
- Update all test expectations and patterns for new naming convention
- Update settings UI placeholder text to reflect FN prefix
- Update dashboard, engine, and CLI components for fusion/ branch paths
- Add changeset documenting the breaking change for users
This commit is contained in:
gsxdsm
2026-03-31 19:50:15 -07:00
parent ada014213a
commit e98cb5c100
10 changed files with 30 additions and 20 deletions

View File

@@ -1,5 +1,6 @@
import { describe, it, expect, beforeEach, afterEach } from "vitest";
import { Database, createDatabase, toJson, toJsonNullable, fromJson } from "./db.js";
import { DEFAULT_PROJECT_SETTINGS } from "./types.js";
import { mkdtempSync, existsSync } from "node:fs";
import { join } from "node:path";
import { tmpdir } from "node:os";
@@ -99,7 +100,7 @@ describe("Database", () => {
expect(row).toBeDefined();
expect(row.nextId).toBe(1);
expect(row.nextWorkflowStepId).toBe(1);
expect(row.settings).toBe("{}");
expect(row.settings).toBe(JSON.stringify(DEFAULT_PROJECT_SETTINGS));
expect(row.workflowSteps).toBe("[]");
expect(row.updatedAt).toBeTruthy();
// updatedAt should be a valid ISO timestamp

View File

@@ -11,6 +11,7 @@
import { DatabaseSync } from "node:sqlite";
import { join } from "node:path";
import { mkdirSync, existsSync } from "node:fs";
import { DEFAULT_PROJECT_SETTINGS } from "./types.js";
// ── Types ────────────────────────────────────────────────────────────
@@ -283,10 +284,10 @@ export class Database {
// Run schema migrations
this.migrate();
// Seed config row idempotently
// Seed config row idempotently with default settings
const configNow = new Date().toISOString();
this.db.exec(
`INSERT OR IGNORE INTO config (id, nextId, nextWorkflowStepId, settings, workflowSteps, updatedAt) VALUES (1, 1, 1, '{}', '[]', '${configNow}')`,
`INSERT OR IGNORE INTO config (id, nextId, nextWorkflowStepId, settings, workflowSteps, updatedAt) VALUES (1, 1, 1, '${JSON.stringify(DEFAULT_PROJECT_SETTINGS)}', '[]', '${configNow}')`,
);
}

View File

@@ -696,7 +696,7 @@ export const DEFAULT_PROJECT_SETTINGS: ProjectSettings = {
worktreeInitCommand: undefined,
recycleWorktrees: false,
worktreeNaming: "random",
taskPrefix: undefined,
taskPrefix: "FN",
includeTaskIdInCommit: true,
planningProvider: undefined,
planningModelId: undefined,