From 0798b1f9c51096814155ba0fa58ac54205b36f2f Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Thu, 19 Dec 2024 10:04:15 -0500 Subject: [PATCH 1/2] fix(manager): clean up workflow array type display --- src/components/manager/WorkflowListItem.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/manager/WorkflowListItem.js b/src/components/manager/WorkflowListItem.js index e0df03e6..34303e6f 100644 --- a/src/components/manager/WorkflowListItem.js +++ b/src/components/manager/WorkflowListItem.js @@ -48,11 +48,12 @@ const TYPE_TAG_DISPLAY = { }; const WorkflowInputTag = ({ id, type, children }) => { - const display = useMemo(() => TYPE_TAG_DISPLAY[type.replace("[]", "")], [type]); + const typeNoArray = type.replace("[]", ""); + const display = useMemo(() => TYPE_TAG_DISPLAY[typeNoArray], [type]); return ( {display.icon}  - {id} ({children || type} + {id} ({children || typeNoArray} {type.endsWith("[]") ? " array" : ""}) ); @@ -77,7 +78,7 @@ const WorkflowListItem = ({ onClick, workflow, rightAlignedTags, style }) => { .filter((i) => !i.hidden && !i.injected) // Filter out hidden/injected inputs .map(({ id, type, pattern }) => ( - {type.startsWith("file") ? (pattern ?? "") : ""} + {type.startsWith("file") && ![".*", ".+"].includes(pattern) ? (pattern ?? "") : ""} )), [inputs], From ec41b9d9d1afcd7130fccdcf5bbe3ae37f771aff Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Tue, 7 Jan 2025 14:34:11 -0500 Subject: [PATCH 2/2] fix hook dep --- src/components/manager/WorkflowListItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/manager/WorkflowListItem.js b/src/components/manager/WorkflowListItem.js index 34303e6f..09dca743 100644 --- a/src/components/manager/WorkflowListItem.js +++ b/src/components/manager/WorkflowListItem.js @@ -49,7 +49,7 @@ const TYPE_TAG_DISPLAY = { const WorkflowInputTag = ({ id, type, children }) => { const typeNoArray = type.replace("[]", ""); - const display = useMemo(() => TYPE_TAG_DISPLAY[typeNoArray], [type]); + const display = useMemo(() => TYPE_TAG_DISPLAY[typeNoArray], [typeNoArray]); return ( {display.icon}