Merge branch 'KIN-UI-017-frontend_dev'
This commit is contained in:
commit
992dab962a
2 changed files with 2 additions and 0 deletions
|
|
@ -335,6 +335,7 @@ export const api = {
|
||||||
project: (id: string) => get<ProjectDetail>(`/projects/${id}`),
|
project: (id: string) => get<ProjectDetail>(`/projects/${id}`),
|
||||||
task: (id: string) => get<Task>(`/tasks/${id}`),
|
task: (id: string) => get<Task>(`/tasks/${id}`),
|
||||||
taskFull: (id: string) => get<TaskFull>(`/tasks/${id}/full`),
|
taskFull: (id: string) => get<TaskFull>(`/tasks/${id}/full`),
|
||||||
|
taskChildren: (id: string) => get<Task[]>(`/tasks/${id}/children`),
|
||||||
taskPipeline: (id: string) => get<PipelineStep[]>(`/tasks/${id}/pipeline`),
|
taskPipeline: (id: string) => get<PipelineStep[]>(`/tasks/${id}/pipeline`),
|
||||||
cost: (days = 7) => get<CostEntry[]>(`/cost?days=${days}`),
|
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 }) =>
|
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> = {
|
const m: Record<string, string> = {
|
||||||
pending: 'gray', in_progress: 'blue', review: 'yellow',
|
pending: 'gray', in_progress: 'blue', review: 'yellow',
|
||||||
done: 'green', blocked: 'red', decomposed: 'purple', cancelled: 'gray',
|
done: 'green', blocked: 'red', decomposed: 'purple', cancelled: 'gray',
|
||||||
|
revising: 'orange',
|
||||||
}
|
}
|
||||||
return m[s] || 'gray'
|
return m[s] || 'gray'
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue