Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

427 B
Raw Blame
import type { Label } from "../api/labels.js";

export function workspaceLabel(
  id: string,
  name: string,
  overrides: Partial<Label> = {},
): Label {
  return {
    id,
    name,
    color: "gray",
    taskId: null,
    workspaceId: "ws_1",
    deletionStartedAt: null,
    ...overrides,
  };
}

export function taskLabel(id: string, name: string, taskId: string): Label {
  return workspaceLabel(id, name, { taskId });
}