Update Kanban columns to match workflow: To Do, In Progress, Done
This commit is contained in:
parent
c9d48c323d
commit
77ed1dfd89
@ -36,11 +36,23 @@ const priorityColors: Record<Priority, string> = {
|
||||
|
||||
const statusColumns: TaskStatus[] = ["backlog", "in-progress", "review", "done"]
|
||||
|
||||
// Sprint board columns (3 columns)
|
||||
// Sprint board columns mapped to workflow statuses
|
||||
const sprintColumns = [
|
||||
{ key: "backlog", label: "To Do" },
|
||||
{ key: "in-progress", label: "In Progress" },
|
||||
{ key: "review", label: "Done" },
|
||||
{
|
||||
key: "todo",
|
||||
label: "To Do",
|
||||
statuses: ["backlog"] // OPEN, TO DO
|
||||
},
|
||||
{
|
||||
key: "inprogress",
|
||||
label: "In Progress",
|
||||
statuses: ["in-progress", "review"] // BLOCKED, IN PROGRESS, REVIEW, VALIDATE
|
||||
},
|
||||
{
|
||||
key: "done",
|
||||
label: "Done",
|
||||
statuses: ["done", "archived"] // ARCHIVED, CANCELED, DONE
|
||||
},
|
||||
] as const
|
||||
|
||||
export default function Home() {
|
||||
@ -285,11 +297,9 @@ export default function Home() {
|
||||
{/* Kanban Columns */}
|
||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
{sprintColumns.map((column) => {
|
||||
// For "Done" column, show both review and done tasks
|
||||
// Filter tasks by column statuses
|
||||
const columnTasks = sprintTasks.filter((t) =>
|
||||
column.key === 'review'
|
||||
? (t.status === 'review' || t.status === 'done')
|
||||
: t.status === column.key
|
||||
column.statuses.includes(t.status)
|
||||
)
|
||||
return (
|
||||
<div key={column.key} className="flex flex-col">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user