Merge branch 'KIN-UI-017-frontend_dev'

This commit is contained in:
Gros Frumos 2026-03-18 21:53:07 +02:00
commit 992dab962a
2 changed files with 2 additions and 0 deletions

View file

@ -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 }) =>

View file

@ -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'
}