From 899d78a355b95ae058d2c4e9845cefc598cb2e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Tymczuk?= Date: Wed, 13 Nov 2024 09:45:43 +0100 Subject: [PATCH] chore(dashboard): batch of small fixes (#6977) --- .../src/components/workflow-editor/add-step-menu.tsx | 2 +- .../src/components/workflow-editor/configure-workflow.tsx | 2 ++ apps/dashboard/src/components/workflow-editor/nodes.tsx | 2 +- .../components/workflow-editor/steps/edit-step-sidebar.tsx | 6 +++++- apps/dashboard/src/components/workflow-list.tsx | 2 +- apps/dashboard/src/components/workflow-steps.tsx | 4 ++-- 6 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/dashboard/src/components/workflow-editor/add-step-menu.tsx b/apps/dashboard/src/components/workflow-editor/add-step-menu.tsx index a8afc524d68..9c637cc0962 100644 --- a/apps/dashboard/src/components/workflow-editor/add-step-menu.tsx +++ b/apps/dashboard/src/components/workflow-editor/add-step-menu.tsx @@ -53,7 +53,7 @@ const MenuItem = ({ {children} {disabled && ( - soon + coming soon )} diff --git a/apps/dashboard/src/components/workflow-editor/configure-workflow.tsx b/apps/dashboard/src/components/workflow-editor/configure-workflow.tsx index 860e57cf4cf..0b9174ed6e3 100644 --- a/apps/dashboard/src/components/workflow-editor/configure-workflow.tsx +++ b/apps/dashboard/src/components/workflow-editor/configure-workflow.tsx @@ -67,6 +67,7 @@ export function ConfigureWorkflow() { ( Workflow Name @@ -82,6 +83,7 @@ export function ConfigureWorkflow() { ( Workflow Identifier diff --git a/apps/dashboard/src/components/workflow-editor/nodes.tsx b/apps/dashboard/src/components/workflow-editor/nodes.tsx index a93228d0b9d..1bc347ede23 100644 --- a/apps/dashboard/src/components/workflow-editor/nodes.tsx +++ b/apps/dashboard/src/components/workflow-editor/nodes.tsx @@ -235,7 +235,7 @@ export const AddNode = (_props: NodeProps) => { } return ( -
+
{ }); const { step } = useFetchStep({ workflowSlug, stepSlug }); - const stepType = useMemo(() => workflow?.steps.find((el) => el.slug === stepSlug)?.type, [stepSlug, workflow]); + const stepType = useMemo( + () => workflow?.steps.find((el) => getStepBase62Id(el.slug) === getStepBase62Id(stepSlug))?.type, + [stepSlug, workflow] + ); const handleCloseSidebar = () => { navigate('../', { relative: 'path' }); diff --git a/apps/dashboard/src/components/workflow-list.tsx b/apps/dashboard/src/components/workflow-list.tsx index 4419764bdd0..ba4fb6e895d 100644 --- a/apps/dashboard/src/components/workflow-list.tsx +++ b/apps/dashboard/src/components/workflow-list.tsx @@ -102,7 +102,7 @@ export const WorkflowList = () => { ) : ( <> {workflowsQuery.data.workflows.map((workflow) => ( - + ))} )} diff --git a/apps/dashboard/src/components/workflow-steps.tsx b/apps/dashboard/src/components/workflow-steps.tsx index 4711097bb70..74a395989cb 100644 --- a/apps/dashboard/src/components/workflow-steps.tsx +++ b/apps/dashboard/src/components/workflow-steps.tsx @@ -22,8 +22,8 @@ export const WorkflowSteps = (props: WorkflowStepsProps) => { return (
<> - {firstSteps.map((step) => ( - + {firstSteps.map((step, idx) => ( + ))} {restSteps.length > 1 && +{restSteps.length}}