From febae4b589ad89be025a0e4054f05c2cd0442013 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa Date: Fri, 10 Jan 2025 15:29:00 -0300 Subject: [PATCH] feat: standardize node output icons with TextSearch and Chevrons (#5600) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ✨ (NodeInputField): Update styling to include padding-bottom when lastInput is true for better UI appearance 📝 (NodeOutputfield): Import TextSearch component from lucide-react library for future use 🔧 (RenderInputParameters): Simplify logic for determining lastInput in NodeInputField component 🔧 (GenericNode): Change icon displayed on HiddenOutputsButton based on showHiddenOutputs state 🔧 (GenericNode): Update tooltip content to include the number of hiddenOutputs when toggling visibility 🔧 (sliderComponent): Remove unnecessary padding-bottom from SliderComponent for better layout 📝 (constants.ts): Update tooltip text for better clarity and consistency with action names * ✨ (NodeOutputfield/index.tsx): Update import statement for IconComponent to include ForwardedIconComponent for better organization and clarity 🐛 (chatInputOutputUser-shard-0.spec.ts, chatInputOutputUser-shard-1.spec.ts): Fix references to 'ScanEye' icon to 'TextSearchIcon' for consistency and accuracy in tests --- .../GenericNode/components/NodeInputField/index.tsx | 4 ++-- .../GenericNode/components/NodeOutputfield/index.tsx | 9 +++++++-- .../components/RenderInputParameters/index.tsx | 5 +---- src/frontend/src/CustomNodes/GenericNode/index.tsx | 8 ++++---- .../components/sliderComponent/index.tsx | 2 +- src/frontend/src/constants/constants.ts | 4 ++-- .../core/features/chatInputOutputUser-shard-0.spec.ts | 4 ++-- .../integrations/chatInputOutputUser-shard-1.spec.ts | 4 ++-- 8 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/NodeInputField/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/NodeInputField/index.tsx index ad5cc66f5..a1d1f977b 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/NodeInputField/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/NodeInputField/index.tsx @@ -108,8 +108,8 @@ export default function NodeInputField({
- 0 || showHiddenOutputs) - } + lastInput={!(shownOutputs.length > 0 || showHiddenOutputs)} key={memoizedKey} data={data} colors={memoizedColor.colors} diff --git a/src/frontend/src/CustomNodes/GenericNode/index.tsx b/src/frontend/src/CustomNodes/GenericNode/index.tsx index 40bb9ebd7..dc3af464a 100644 --- a/src/frontend/src/CustomNodes/GenericNode/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/index.tsx @@ -48,11 +48,11 @@ const HiddenOutputsButton = memo( }) => (