From 92576abc0bfd60e038fd4c1422a7f1e25c4f2200 Mon Sep 17 00:00:00 2001 From: janpeter visser Date: Mon, 27 Apr 2026 19:56:21 +0200 Subject: [PATCH] feat: apply priority-color card style to sprint task rows --- components/sprint/task-list.tsx | 79 +++++++++++++++++++-------------- 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/components/sprint/task-list.tsx b/components/sprint/task-list.tsx index 6dfb0ce..3261322 100644 --- a/components/sprint/task-list.tsx +++ b/components/sprint/task-list.tsx @@ -17,6 +17,7 @@ import { Input } from '@/components/ui/input' import { Badge } from '@/components/ui/badge' import { CodeBadge } from '@/components/shared/code-badge' import { PanelNavBar } from '@/components/shared/panel-nav-bar' +import { PRIORITY_BORDER } from '@/components/backlog/backlog-card' import { deriveTaskCode } from '@/lib/code' import { useSprintStore } from '@/stores/sprint-store' import { @@ -37,7 +38,6 @@ const STATUS_COLORS: Record = { } const STATUS_LABELS: Record = { TO_DO: 'To Do', IN_PROGRESS: 'Bezig', DONE: 'Klaar' } -const PRIORITY_LABELS: Record = { 1: 'Kritiek', 2: 'Hoog', 3: 'Gemiddeld', 4: 'Laag' } export interface Task { id: string @@ -76,45 +76,53 @@ function SortableTaskRow({ if (editing) { return ( -
-
- - - -
- - -
-
+
+
+
+ + + +
+ + +
+
+
) } return ( -
- {!isDemo && ( - - )} -
-
-

- {task.title} -

- {code && } +
+
+ {!isDemo && ( + + )} +
+
+

+ {task.title} +

+ {code && } +
+
+ + {!isDemo && ( +
+ + +
+ )} +
- {PRIORITY_LABELS[task.priority]}
- - {!isDemo && ( -
- - -
- )}
) } @@ -251,7 +259,10 @@ export function TaskList({ storyId, storyCode, sprintId, productId: _productId, {activeDragId && taskMap[activeDragId] && ( -
+
{taskMap[activeDragId].title}
)}