feat(HAI-001): define TaskStatus type and add to Task interface
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
export { COLUMNS, COLUMN_LABELS, COLUMN_DESCRIPTIONS, VALID_TRANSITIONS } from "./types.js";
|
||||
export type { Column, Task, TaskCreateInput, TaskDetail, BoardConfig, MergeResult } from "./types.js";
|
||||
export { COLUMNS, COLUMN_LABELS, COLUMN_DESCRIPTIONS, VALID_TRANSITIONS, STATUS_LABELS, STATUS_COLORS } from "./types.js";
|
||||
export type { Column, Task, TaskCreateInput, TaskDetail, BoardConfig, MergeResult, TaskStatus } from "./types.js";
|
||||
export { TaskStore } from "./store.js";
|
||||
export { canTransition, getValidTransitions, resolveDependencyOrder } from "./board.js";
|
||||
|
||||
@@ -1,12 +1,33 @@
|
||||
export const COLUMNS = ["triage", "todo", "in-progress", "in-review", "done"] as const;
|
||||
export type Column = (typeof COLUMNS)[number];
|
||||
|
||||
export type TaskStatus = "idle" | "specifying" | "blocked" | "queued" | "executing" | "complete";
|
||||
|
||||
export const STATUS_LABELS: Record<TaskStatus, string> = {
|
||||
idle: "Idle",
|
||||
specifying: "Specifying…",
|
||||
blocked: "Blocked",
|
||||
queued: "Queued",
|
||||
executing: "Executing…",
|
||||
complete: "Complete",
|
||||
};
|
||||
|
||||
export const STATUS_COLORS: Record<TaskStatus, string> = {
|
||||
idle: "var(--text-dim)",
|
||||
specifying: "var(--triage)",
|
||||
blocked: "#f85149",
|
||||
queued: "var(--todo)",
|
||||
executing: "var(--in-progress)",
|
||||
complete: "var(--in-review)",
|
||||
};
|
||||
|
||||
export interface Task {
|
||||
id: string;
|
||||
title: string;
|
||||
description: string;
|
||||
column: Column;
|
||||
dependencies: string[];
|
||||
status?: TaskStatus;
|
||||
worktree?: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
|
||||
Reference in New Issue
Block a user