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:
@@ -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
|
||||
|
||||
@@ -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}')`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user