diff --git a/src/frontend/src/App.css b/src/frontend/src/App.css index c2427fb0f..6aa681415 100644 --- a/src/frontend/src/App.css +++ b/src/frontend/src/App.css @@ -97,4 +97,5 @@ body { .custom-hover:hover { background-color: rgba(99, 102, 241, 0.1); /* Medium indigo color with 20% opacity */ -} \ No newline at end of file +} + diff --git a/src/frontend/src/components/IOview/index.tsx b/src/frontend/src/components/IOview/index.tsx index 73f0a068e..ced31a177 100644 --- a/src/frontend/src/components/IOview/index.tsx +++ b/src/frontend/src/components/IOview/index.tsx @@ -20,7 +20,12 @@ import { Badge } from "../ui/badge"; import { Button } from "../ui/button"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "../ui/tabs"; -export default function IOView({ children, open, setOpen }): JSX.Element { +export default function IOView({ children, open, setOpen, disable }: { + children: JSX.Element; + open: boolean; + setOpen: (open: boolean) => void; + disable?: boolean; +}): JSX.Element { const inputs = useFlowStore((state) => state.inputs).filter( (input) => input.type !== "ChatInput" ); @@ -98,6 +103,7 @@ export default function IOView({ children, open, setOpen }): JSX.Element { size={haveChat ? (selectedTab === 0 ? "large-thin" : "large") : "small"} open={open} setOpen={setOpen} + disable={disable} > {children} {/* TODO ADAPT TO ALL TYPES OF INPUTS AND OUTPUTS */} diff --git a/src/frontend/src/components/chatComponent/index.tsx b/src/frontend/src/components/chatComponent/index.tsx index a53184856..3d3a01562 100644 --- a/src/frontend/src/components/chatComponent/index.tsx +++ b/src/frontend/src/components/chatComponent/index.tsx @@ -51,9 +51,9 @@ export default function FlowToolbar({ flow }: ChatType): JSX.Element { @@ -87,14 +87,14 @@ export default function FlowToolbar({ flow }: ChatType): JSX.Element { > - {hasIO && ( - - + {hasIO ? ( + + + ) : ( + + + Run + )} - {hasIO && ( - - - - )} - + + + + {currentFlow && currentFlow.data && ( @@ -122,15 +128,11 @@ export default function FlowToolbar({ flow }: ChatType): JSX.Element { )} - {hasStore && validApiKey && ( - - - - )} + + + - {hasStore && validApiKey && ( - {ModalMemo} - )} + {ModalMemo} diff --git a/src/frontend/src/style/index.css b/src/frontend/src/style/index.css index 0c58cb1df..e744fb503 100644 --- a/src/frontend/src/style/index.css +++ b/src/frontend/src/style/index.css @@ -51,7 +51,7 @@ --component-icon: #d8598a; --flow-icon: #2f67d0; --hover: #F2F4F5; - + --disabled-run: #6366f1; /* Colors that are shared in dark and light mode */ @@ -73,6 +73,7 @@ --foreground: 213 31% 80%; /* hsl(213 31% 91%) */ --ice: #60A5FA; --hover: #1A202E; + --disabled-run: #6366f1; --muted: 223 27% 11%; /* hsl(223 27% 11%) */ --muted-foreground: 215.4 16.3% 56.9%; /* hsl(215 16% 56%) */