- {/*
-
{idx === 0 ? "Agent" : "Tool"}
- {idx === 0 && (
-
-
-
-
- OpenAI+
-
- )}
-
*/}
+
+
+ {/*
Agent
+
+
+
+
+ OpenAI+
+ */}
+
+
+
+
diff --git a/src/frontend/src/pages/MainPage/index.tsx b/src/frontend/src/pages/MainPage/index.tsx
index 4abafdfbd..16e88e582 100644
--- a/src/frontend/src/pages/MainPage/index.tsx
+++ b/src/frontend/src/pages/MainPage/index.tsx
@@ -8,7 +8,7 @@ import ExtraSidebar from "../../components/ExtraSidebarComponent";
import { ReactFlowProvider } from "reactflow";
import FlowPage from "../FlowPage";
import { useContext, useEffect, useState } from "react";
-import { SunIcon, MoonIcon, BellIcon, GithubIcon, Download, Upload, Plus } from "lucide-react";
+import { SunIcon, MoonIcon, BellIcon, GithubIcon, Download, Upload, Plus, Home } from "lucide-react";
import { TabsContext } from "../../contexts/tabsContext";
import AlertDropdown from "../../alerts/alertDropDown";
import { alertContext } from "../../contexts/alertContext";
@@ -21,8 +21,8 @@ import { FaGithub } from "react-icons/fa";
import _ from "lodash";
import { updateFlowInDatabase, uploadFlowsToDatabase } from "../../controllers/API";
-import { CardComponent } from "./components/cardComponent";
import { MenuBar } from "../../components/headerComponent/components/menuBar";
+import { CardComponent } from "./components/cardComponent";
export default function HomePage() {
const {
flows,
@@ -36,26 +36,26 @@ export default function HomePage() {
}, [])
return (
-
-
- Flows
+
+
+ My Projects
-
diff --git a/src/frontend/src/routes.tsx b/src/frontend/src/routes.tsx
index 9fe1d8d28..d1fe7a76a 100644
--- a/src/frontend/src/routes.tsx
+++ b/src/frontend/src/routes.tsx
@@ -1,11 +1,13 @@
import { Route, Routes } from "react-router-dom"
import HomePage from "./pages/MainPage";
import FlowPage from "./pages/FlowPage";
+import CommunityPage from "./pages/CommunityPage";
const Router = () => {
return(
}/>
+ }/>
}/>
diff --git a/src/frontend/src/types/tabs/index.ts b/src/frontend/src/types/tabs/index.ts
index 2b8dbc239..0422aeeab 100644
--- a/src/frontend/src/types/tabs/index.ts
+++ b/src/frontend/src/types/tabs/index.ts
@@ -5,7 +5,7 @@ export type TabsContextType = {
setTabId: (index: string) => void;
flows: Array;
removeFlow: (id: string) => void;
- addFlow: (flowData?: FlowType, newFlow?: boolean) => void;
+ addFlow: (flowData?: FlowType, newFlow?: boolean) => Promise;
updateFlow: (newFlow: FlowType) => void;
incrementNodeId: () => string;
downloadFlow: (flow: FlowType) => void;
diff --git a/src/frontend/src/utils.ts b/src/frontend/src/utils.ts
index a4c1446ac..f96ff0780 100644
--- a/src/frontend/src/utils.ts
+++ b/src/frontend/src/utils.ts
@@ -206,6 +206,23 @@ export const nodeIcons: {
unknown: QuestionMarkCircleIcon,
};
+export const gradients = [
+ "bg-gradient-to-br from-gray-800 via-rose-700 to-violet-900",
+ "bg-gradient-to-br from-green-200 via-green-300 to-blue-500",
+ "bg-gradient-to-br from-yellow-200 via-yellow-400 to-yellow-700",
+ "bg-gradient-to-br from-green-200 via-green-400 to-purple-700",
+ "bg-gradient-to-br from-blue-100 via-blue-300 to-blue-500",
+ "bg-gradient-to-br from-purple-400 to-yellow-400",
+ "bg-gradient-to-br from-red-800 via-yellow-600 to-yellow-500",
+ "bg-gradient-to-br from-blue-300 via-green-200 to-yellow-300",
+ "bg-gradient-to-br from-blue-700 via-blue-800 to-gray-900",
+ "bg-gradient-to-br from-green-300 to-purple-400",
+ "bg-gradient-to-br from-yellow-200 via-pink-200 to-pink-400",
+ "bg-gradient-to-br from-green-500 to-green-700",
+ "bg-gradient-to-br from-rose-400 via-fuchsia-500 to-indigo-500",
+ "bg-gradient-to-br from-sky-400 to-blue-500",
+];
+
export const bgColors = {
white: "bg-white",
red: "bg-red-100",