[IF/ELSE] Capitalize branch titles + remove ending separator (#17009)

Before : if - else if not capitalized, ending separator)
<img width="496" height="451" alt="Capture d’écran 2026-01-08 à 11 17
29"
src="https://github.com/user-attachments/assets/621e92f3-02ed-4e71-9893-576543922871"
/>

After
<img width="496" height="431" alt="Capture d’écran 2026-01-08 à 11 17
14"
src="https://github.com/user-attachments/assets/549c146c-00b0-4162-b395-ceb05baf34b1"
/>
This commit is contained in:
Thomas Trompette
2026-01-08 11:28:15 +01:00
committed by GitHub
parent 0d9245b684
commit 71fd05315c
2 changed files with 4 additions and 3 deletions
@@ -276,7 +276,6 @@ export const WorkflowEditActionIfElseBody = ({
/>
</>
)}
{isElse && <HorizontalSeparator noMargin />}
<WorkflowIfElseBranchEditor
action={action}
branch={branch}
@@ -9,7 +9,7 @@ import { isStepFilterGroupChildAStepFilterGroup } from '@/workflow/workflow-step
import 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(),
)}
/>
),
)}