From 99cbd27623a782f8fe711280e0f27245564a9e63 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 9 Jun 2023 12:40:51 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=89=20feat(cardComponent):=20add=20Car?= =?UTF-8?q?dComponent=20to=20display=20flow=20information=20The=20CardComp?= =?UTF-8?q?onent=20is=20a=20new=20component=20that=20displays=20informatio?= =?UTF-8?q?n=20about=20a=20flow.=20It=20includes=20a=20header=20with=20the?= =?UTF-8?q?=20flow=20name=20and=20a=20delete=20button,=20a=20description,?= =?UTF-8?q?=20and=20a=20footer=20with=20badges=20and=20an=20edit=20button.?= =?UTF-8?q?=20The=20component=20is=20designed=20to=20be=20reusable=20and?= =?UTF-8?q?=20can=20display=20different=20types=20of=20flows.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/cardComponent/index.tsx | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/frontend/src/components/cardComponent/index.tsx diff --git a/src/frontend/src/components/cardComponent/index.tsx b/src/frontend/src/components/cardComponent/index.tsx new file mode 100644 index 000000000..4578c5f21 --- /dev/null +++ b/src/frontend/src/components/cardComponent/index.tsx @@ -0,0 +1,85 @@ +import React from "react"; +import { + ArrowTopRightOnSquareIcon, + TrashIcon, +} from "@heroicons/react/24/outline"; +import { OpenAiIcon } from "../../icons/OpenAi"; +import { Button } from "../../components/ui/button"; +import { Badge } from "../../components/ui/badge"; +import { + Card, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +} from "../ui/card"; +export const CardComponent = ({ + flow, + idx, + removeFlow, + setTabIndex, + setActiveTab, +}) => { + return ( + + + +
+ + {idx === 0 ? "🤖" : "🛠️"} + + {flow.name} +
+ +
+ +
+ {idx === 0 + ? "This flow creates an agent that accesses a department store database and APIs to monitor customer activity and overall storage." + : "This is a new Flow"} + {/* {flow.description} */} +
+
+
+ + +
+
+ {idx === 0 ? "Agent" : "Tool"} + {idx === 0 && ( + +
+ +
+  OpenAI+ +
+ )} +
+ +
+
+
+ ); +};