The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
[IF/ELSE] Capitalize branch titles + remove ending separator (#17009)
Thomas Trompette71fd05315c9a
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowEditActionIfElseBody.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowEditActionIfElseBody.tsxindex 9e2db928589..463b37e5218 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowEditActionIfElseBody.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowEditActionIfElseBody.tsx@@ -276,7 +276,6 @@ export const WorkflowEditActionIfElseBody = ({/></>)}- {isElse && <HorizontalSeparator noMargin />}<WorkflowIfElseBranchEditoraction={action}branch={branch}diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowIfElseBranchEditor.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowIfElseBranchEditor.tsxindex 51ded55be1e..6041952f41a 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowIfElseBranchEditor.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/if-else-action/components/WorkflowIfElseBranchEditor.tsx@@ -9,7 +9,7 @@ import { isStepFilterGroupChildAStepFilterGroup } from '@/workflow/workflow-stepimport styled from '@emotion/styled';import { i18n, type MessageDescriptor } from '@lingui/core';import { type StepFilterGroup } from 'twenty-shared/types';-import { isDefined } from 'twenty-shared/utils';+import { capitalize, isDefined } from 'twenty-shared/utils';import { type StepIfElseBranch } from 'twenty-shared/workflow';const StyledBranchContainer = styled.div`@@ -85,7 +85,9 @@ export const WorkflowIfElseBranchEditor = ({stepFilter={stepFilterGroupChild}stepFilterIndex={stepFilterGroupChildIndex}isIfBranch={isIfBranch}- firstFilterLabel={i18n._(branchLabel)}+ firstFilterLabel={capitalize(+ i18n._(branchLabel).toLowerCase(),+ )}/>),)}