feat: add task detail slide-over panel with inline editing, subtasks, and notes

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-26 22:22:57 -05:00
parent f0bcc01993
commit af205b367d
5 changed files with 702 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
import { useMutation, useQueryClient } from '@tanstack/react-query'
import { request } from './client'
import type { TaskNote } from '../types'
export function useCreateNote() {
const qc = useQueryClient()
return useMutation({
mutationFn: ({ taskId, content, type }: { taskId: number; content: string; type: number }) =>
request<TaskNote>({ method: 'POST', url: `/tasks/${taskId}/notes`, data: { content, type } }),
onSuccess: () => qc.invalidateQueries({ queryKey: ['tasks'] }),
})
}