kin: KIN-UI-015-frontend_dev

This commit is contained in:
Gros Frumos 2026-03-18 15:50:08 +02:00
parent abd58e00f0
commit 62a483b62a
3 changed files with 12 additions and 71 deletions

View file

@ -410,6 +410,11 @@ export const api = {
deleteAttachment: (taskId: string, id: number) =>
del<void>(`/tasks/${taskId}/attachments/${id}`),
attachmentUrl: (id: number) => `${BASE}/attachments/${id}/file`,
listTasks: (status?: string, limit = 20, sort = 'updated_at') => {
const q = new URLSearchParams({ limit: String(limit), sort })
if (status) q.set('status', status)
return get<Task[]>(`/tasks?${q.toString()}`)
},
getPipelineLogs: (pipelineId: string, sinceId: number) =>
get<PipelineLog[]>(`/pipelines/${pipelineId}/logs?since_id=${sinceId}`),
projectLinks: (projectId: string) =>