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"]
|
const statusColumns: TaskStatus[] = ["backlog", "in-progress", "review", "done"]
|
||||||
|
|
||||||
// Sprint board columns (3 columns)
|
// Sprint board columns mapped to workflow statuses
|
||||||
const sprintColumns = [
|
const sprintColumns = [
|
||||||
{ key: "backlog", label: "To Do" },
|
{
|
||||||
{ key: "in-progress", label: "In Progress" },
|
key: "todo",
|
||||||
{ key: "review", label: "Done" },
|
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
|
] as const
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
@ -285,11 +297,9 @@ export default function Home() {
|
|||||||
{/* Kanban Columns */}
|
{/* Kanban Columns */}
|
||||||
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||||
{sprintColumns.map((column) => {
|
{sprintColumns.map((column) => {
|
||||||
// For "Done" column, show both review and done tasks
|
// Filter tasks by column statuses
|
||||||
const columnTasks = sprintTasks.filter((t) =>
|
const columnTasks = sprintTasks.filter((t) =>
|
||||||
column.key === 'review'
|
column.statuses.includes(t.status)
|
||||||
? (t.status === 'review' || t.status === 'done')
|
|
||||||
: t.status === column.key
|
|
||||||
)
|
)
|
||||||
return (
|
return (
|
||||||
<div key={column.key} className="flex flex-col">
|
<div key={column.key} className="flex flex-col">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user