diff --git a/components/flow.tsx b/components/flow.tsx index 737e90f2..4a6b2a42 100644 --- a/components/flow.tsx +++ b/components/flow.tsx @@ -3,7 +3,8 @@ import { useEffect, useState } from "react"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Button } from "@/components/ui/button"; -import { RefreshCw } from "lucide-react"; +import { RefreshCw, Folder } from "lucide-react"; +import { Badge } from "@/components/ui/badge"; interface Task { id: number; @@ -130,57 +131,54 @@ export function Flow() { }, []); return ( - + - My ToDos - - + {loading ? (
) : error ? ( -
{error}
+
{error}
) : tasks.length === 0 ? ( -
No tasks assigned to you
+
No tasks found
) : ( -
+
{tasks.map((task) => (
-
-
-
-

- {task.headline} -

- - {getStatusLabel(task.status)} - -
-
- {task.projectName && ( - - 📁 {task.projectName} - - )} - {task.dateToFinish && task.dateToFinish !== '0000-00-00 00:00:00' && ( - - 📅 {formatDate(task.dateToFinish)} - - )} +
+ + {task.headline} + +
+
+ + {task.projectName}
+ + Unknown +