diff --git a/src/frontend/src/components/IOview/index.tsx b/src/frontend/src/components/IOview/index.tsx index 443197fa6..3ee2dec6e 100644 --- a/src/frontend/src/components/IOview/index.tsx +++ b/src/frontend/src/components/IOview/index.tsx @@ -60,11 +60,17 @@ export default function IOView({ children, open, setOpen }): JSX.Element { } function UpdateAccordion() { - return (categories[selectedCategory]?.name ?? "Inputs") === "Inputs" ? inputs : outputs; + return (categories[selectedCategory]?.name ?? "Inputs") === "Inputs" + ? inputs + : outputs; } return ( - + {children} {/* TODO ADAPT TO ALL TYPES OF INPUTS AND OUTPUTS */} @@ -85,56 +91,58 @@ export default function IOView({ children, open, setOpen }): JSX.Element { handleSelectChange() ? "w-2/6" : "w-full" )} > -
- {categories.map((category, index) => { - return ( - //hide chat button if chat is alredy on the view - - ); - })} +
+
+ {categories.map((category, index) => { + return ( + //hide chat button if chat is alredy on the view + + ); + })} +
{(outputs.map((output) => output.type).includes("ChatOutput") || inputs.map((output) => output.type).includes("chatInput")) && selectedView.type !== "ChatOutput" && ( - + )}
-
- {categories[selectedCategory].name === "Inputs" && - <> - Text Inputs - } - {categories[selectedCategory].name === "Outputs" && - <> - Prompt Outputs - } +
+ {categories[selectedCategory].name === "Inputs" && ( + <> + + Text Inputs + + )} + {categories[selectedCategory].name === "Outputs" && ( + <> + + Prompt Outputs + + )}
{UpdateAccordion() .filter( diff --git a/src/frontend/src/constants/constants.ts b/src/frontend/src/constants/constants.ts index b9422efab..c1eaa999d 100644 --- a/src/frontend/src/constants/constants.ts +++ b/src/frontend/src/constants/constants.ts @@ -681,4 +681,4 @@ export const LANGFLOW_SUPPORTED_TYPES = new Set([ export const priorityFields = new Set(["code", "template"]); export const INPUT_TYPES = new Set(["ChatInput", "TextInput"]); -export const OUTPUT_TYPES = new Set(["ChatOutput"]); +export const OUTPUT_TYPES = new Set(["ChatOutput", "PromptTemplate"]); diff --git a/src/frontend/src/utils/styleUtils.ts b/src/frontend/src/utils/styleUtils.ts index 16565e53c..3df9442e2 100644 --- a/src/frontend/src/utils/styleUtils.ts +++ b/src/frontend/src/utils/styleUtils.ts @@ -65,6 +65,7 @@ import { Menu, MessageCircle, MessageSquare, + MessageSquareMore, MessagesSquare, Minimize2, Minus, @@ -390,6 +391,7 @@ export const nodeIconsLucide: iconsType = { FormInput, ChevronRightSquare, SaveAll, + MessageSquareMore, Forward, Share2, Share,