// Sample worktree graph for HelmDeck
// hues: amber = base/anchor, iris = wip, sage = ready, ember = conflict, slate = stale/draft

const INITIAL_CARDS = [
  {
    id: 'base',
    kind: 'base',
    branch: 'main',
    x: 80, y: 380, w: 296, h: 164,
    hue: 'amber',
    head: 'a3f9c12',
    headMsg: 'release: v0.14.2 — pipeline toasts',
    commits: 1247,
    pushed: '6m ago',
    upstream: 'origin/main',
  },
  {
    id: 'w1',
    kind: 'worktree',
    branch: 'feat/dashboard-pipelines',
    parent: 'base',
    x: 540, y: 140, w: 296, h: 174,
    hue: 'iris',
    head: '8b2a44e',
    headMsg: 'wip: pipeline node ports',
    ahead: 3, behind: 0, dirty: 7,
    status: 'wip',
    files: 12,
    last: '14m ago',
    path: '~/code/helmdeck-trees/dashboard',
  },
  {
    id: 'w2',
    kind: 'worktree',
    branch: 'feat/context-redesign',
    parent: 'base',
    x: 540, y: 370, w: 296, h: 174,
    hue: 'sage',
    head: '4f1d09a',
    headMsg: 'feat: contexts vertical timeline',
    ahead: 12, behind: 0, dirty: 0,
    status: 'ready',
    ci: 'pass',
    files: 28,
    last: '2h ago',
    path: '~/code/helmdeck-trees/contexts',
  },
  {
    id: 'w3',
    kind: 'worktree',
    branch: 'fix/board-header-overflow',
    parent: 'base',
    x: 540, y: 600, w: 296, h: 174,
    hue: 'ember',
    head: 'c70a51b',
    headMsg: 'fix: header truncation at <820',
    ahead: 1, behind: 2, dirty: 0,
    status: 'conflict',
    files: 2,
    last: '6h ago',
    path: '~/code/helmdeck-trees/header-fix',
    conflictWith: 'base',
  },
];

// edges describe the lineage + any pending merge intents
const INITIAL_EDGES = [
  { id: 'e1', from: 'base', to: 'w1', kind: 'branched' },
  { id: 'e2', from: 'base', to: 'w2', kind: 'branched' },
  { id: 'e3', from: 'base', to: 'w3', kind: 'branched' },
];

window.INITIAL_CARDS = INITIAL_CARDS;
window.INITIAL_EDGES = INITIAL_EDGES;
