Distinguish in progress
This commit is contained in:
@@ -6,18 +6,10 @@ import {
|
||||
DropdownMenuTrigger
|
||||
} from '@/components/ui/dropdown-menu'
|
||||
import { KanbanCard } from '@/components/ui/shadcn-io/kanban'
|
||||
import { MoreHorizontal, Trash2, Edit } from 'lucide-react'
|
||||
import type { TaskStatus } from 'shared/types'
|
||||
import { MoreHorizontal, Trash2, Edit, Loader2 } from 'lucide-react'
|
||||
import type { TaskWithAttemptStatus } from 'shared/types'
|
||||
|
||||
interface Task {
|
||||
id: string
|
||||
project_id: string
|
||||
title: string
|
||||
description: string | null
|
||||
status: TaskStatus
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
type Task = TaskWithAttemptStatus
|
||||
|
||||
interface TaskCardProps {
|
||||
task: Task
|
||||
@@ -46,6 +38,10 @@ export function TaskCard({ task, index, status, onEdit, onDelete, onViewDetails
|
||||
</h4>
|
||||
</div>
|
||||
<div className="flex items-center space-x-1">
|
||||
{/* In Progress Spinner */}
|
||||
{task.has_in_progress_attempt && (
|
||||
<Loader2 className="h-3 w-3 animate-spin text-blue-500" />
|
||||
)}
|
||||
{/* Actions Menu */}
|
||||
<div
|
||||
onPointerDown={(e) => e.stopPropagation()}
|
||||
|
||||
@@ -6,17 +6,9 @@ import {
|
||||
type DragEndEvent
|
||||
} from '@/components/ui/shadcn-io/kanban'
|
||||
import { TaskCard } from './TaskCard'
|
||||
import type { TaskStatus } from 'shared/types'
|
||||
import type { TaskStatus, TaskWithAttemptStatus } from 'shared/types'
|
||||
|
||||
interface Task {
|
||||
id: string
|
||||
project_id: string
|
||||
title: string
|
||||
description: string | null
|
||||
status: TaskStatus
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
type Task = TaskWithAttemptStatus
|
||||
|
||||
interface TaskKanbanBoardProps {
|
||||
tasks: Task[]
|
||||
|
||||
@@ -8,18 +8,10 @@ import { TaskCreateDialog } from '@/components/tasks/TaskCreateDialog'
|
||||
import { TaskEditDialog } from '@/components/tasks/TaskEditDialog'
|
||||
import { TaskDetailsDialog } from '@/components/tasks/TaskDetailsDialog'
|
||||
import { TaskKanbanBoard } from '@/components/tasks/TaskKanbanBoard'
|
||||
import type { TaskStatus } from 'shared/types'
|
||||
import type { TaskStatus, TaskWithAttemptStatus } from 'shared/types'
|
||||
import type { DragEndEvent } from '@/components/ui/shadcn-io/kanban'
|
||||
|
||||
interface Task {
|
||||
id: string
|
||||
project_id: string
|
||||
title: string
|
||||
description: string | null
|
||||
status: TaskStatus
|
||||
created_at: string
|
||||
updated_at: string
|
||||
}
|
||||
type Task = TaskWithAttemptStatus
|
||||
|
||||
interface Project {
|
||||
id: string
|
||||
|
||||
Reference in New Issue
Block a user