Fix TypeScript errors causing HTTP 500
This commit is contained in:
parent
1db22ef509
commit
694cb6a793
@ -37,23 +37,23 @@ const priorityColors: Record<Priority, string> = {
|
|||||||
const allStatuses: TaskStatus[] = ["open", "backlog", "blocked", "in-progress", "review", "validate", "archived", "canceled", "done"]
|
const allStatuses: TaskStatus[] = ["open", "backlog", "blocked", "in-progress", "review", "validate", "archived", "canceled", "done"]
|
||||||
|
|
||||||
// Sprint board columns mapped to workflow statuses
|
// Sprint board columns mapped to workflow statuses
|
||||||
const sprintColumns = [
|
const sprintColumns: { key: string; label: string; statuses: TaskStatus[] }[] = [
|
||||||
{
|
{
|
||||||
key: "todo",
|
key: "todo",
|
||||||
label: "To Do",
|
label: "To Do",
|
||||||
statuses: ["open", "backlog"] // OPEN, TO DO
|
statuses: ["open", "backlog"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "inprogress",
|
key: "inprogress",
|
||||||
label: "In Progress",
|
label: "In Progress",
|
||||||
statuses: ["blocked", "in-progress", "review", "validate"] // BLOCKED, IN PROGRESS, REVIEW, VALIDATE
|
statuses: ["blocked", "in-progress", "review", "validate"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "done",
|
key: "done",
|
||||||
label: "Done",
|
label: "Done",
|
||||||
statuses: ["archived", "canceled", "done"] // ARCHIVED, CANCELED, DONE
|
statuses: ["archived", "canceled", "done"]
|
||||||
},
|
},
|
||||||
] as const
|
]
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const {
|
const {
|
||||||
@ -98,15 +98,15 @@ export default function Home() {
|
|||||||
syncFromServer()
|
syncFromServer()
|
||||||
}, [syncFromServer])
|
}, [syncFromServer])
|
||||||
|
|
||||||
|
const selectedProject = projects.find((p) => p.id === selectedProjectId)
|
||||||
|
const selectedTask = tasks.find((t) => t.id === selectedTaskId)
|
||||||
|
|
||||||
// Set editedTask when selectedTask changes
|
// Set editedTask when selectedTask changes
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (selectedTask) {
|
if (selectedTask) {
|
||||||
setEditedTask({ ...selectedTask })
|
setEditedTask({ ...selectedTask })
|
||||||
}
|
}
|
||||||
}, [selectedTask])
|
}, [selectedTask])
|
||||||
|
|
||||||
const selectedProject = projects.find((p) => p.id === selectedProjectId)
|
|
||||||
const selectedTask = tasks.find((t) => t.id === selectedTaskId)
|
|
||||||
const projectTasks = selectedProjectId ? getTasksByProject(selectedProjectId) : []
|
const projectTasks = selectedProjectId ? getTasksByProject(selectedProjectId) : []
|
||||||
|
|
||||||
// Get current active sprint (across all projects)
|
// Get current active sprint (across all projects)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user