From b5e33cea542fdabfa569d3ac8a4ad6ae0d371546 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> Date: Thu, 10 Apr 2025 17:07:00 -0300 Subject: [PATCH] fix: show connected outputs being hidden by code (#7510) * remove-tag-manager * update-gtag-tracking-id * add-head-tag * remove Google Analytics gtag configuration from docusaurus.config.js * fix-hydration-error * revert-to-easy-way * standard-gtag * broken-link * refactor: streamline Google Tag Manager script configuration in docusaurus.config.js * Apply suggestions from code review Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com> * Added ShowHiddenOutputs to node output field and made handle not be shown if hidden * Added ShowHiddenOutputs in OutputParameter * Added showHiddenOutputs to nodeOutputFieldComponentType * Passed showHiddenOutputs to outputs * Check if input types is not empty before counting handle * Updated missing callback dep * Added hidden parameter to not have duplicated handles * [autofix.ci] apply automated fixes --------- Co-authored-by: Mendon Kissling <59585235+mendonk@users.noreply.github.com> Co-authored-by: Cristhian Zanforlin Lousa Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- .../components/NodeOutputParameter/index.tsx | 4 ++++ .../components/NodeOutputfield/index.tsx | 9 +++++--- .../src/CustomNodes/GenericNode/index.tsx | 22 +++++++++---------- .../src/CustomNodes/helpers/count-handles.ts | 6 ++++- src/frontend/src/types/components/index.ts | 2 ++ 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputParameter/index.tsx b/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputParameter/index.tsx index 8a7791341..7159a710b 100644 --- a/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputParameter/index.tsx +++ b/src/frontend/src/CustomNodes/GenericNode/components/NodeOutputParameter/index.tsx @@ -12,7 +12,9 @@ export const OutputParameter = ({ types, selected, showNode, + showHiddenOutputs, isToolMode, + hidden, }) => { const id = useMemo( () => ({ @@ -36,6 +38,7 @@ export const OutputParameter = ({ return (