kin: KIN-UI-017-frontend_dev
This commit is contained in:
parent
f5c527a6d9
commit
0277a599bc
2 changed files with 2 additions and 0 deletions
|
|
@ -335,6 +335,7 @@ export const api = {
|
|||
project: (id: string) => get<ProjectDetail>(`/projects/${id}`),
|
||||
task: (id: string) => get<Task>(`/tasks/${id}`),
|
||||
taskFull: (id: string) => get<TaskFull>(`/tasks/${id}/full`),
|
||||
taskChildren: (id: string) => get<Task[]>(`/tasks/${id}/children`),
|
||||
taskPipeline: (id: string) => get<PipelineStep[]>(`/tasks/${id}/pipeline`),
|
||||
cost: (days = 7) => get<CostEntry[]>(`/cost?days=${days}`),
|
||||
createProject: (data: { id: string; name: string; path?: string; tech_stack?: string[]; priority?: number; project_type?: string; ssh_host?: string; ssh_user?: string; ssh_key_path?: string; ssh_proxy_jump?: string }) =>
|
||||
|
|
|
|||
|
|
@ -107,6 +107,7 @@ function statusColor(s: string) {
|
|||
const m: Record<string, string> = {
|
||||
pending: 'gray', in_progress: 'blue', review: 'yellow',
|
||||
done: 'green', blocked: 'red', decomposed: 'purple', cancelled: 'gray',
|
||||
revising: 'orange',
|
||||
}
|
||||
return m[s] || 'gray'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue