The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Fix design to match figma (#9864)
martmull68c4f9cb0df9
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer.tsxnew file mode 100644index 00000000000..88c97ea0e86--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer.tsx@@ -0,0 +1,13 @@+import styled from '@emotion/styled';++const StyledStepListContainer = styled.div`+ display: flex;+ flex-direction: column;+ height: 100%;+ overflow-y: auto;++ padding-block: ${({ theme }) => theme.spacing(1)};+ padding-inline: ${({ theme }) => theme.spacing(2)};+`;++export { StyledStepListContainer as RightDrawerStepListContainer };diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle.tsxnew file mode 100644index 00000000000..43280c813af--- /dev/null+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle.tsx@@ -0,0 +1,13 @@+import styled from '@emotion/styled';++const StyledSelectStepTitle = styled.span`+ color: ${({ theme }) => theme.font.color.tertiary};+ font-size: ${({ theme }) => theme.font.size.sm};+ font-weight: ${({ theme }) => theme.font.weight.medium};+ padding-top: ${({ theme }) => theme.spacing(2)};+ padding-bottom: ${({ theme }) => theme.spacing(1)};+ padding-left: ${({ theme }) => theme.spacing(1)};+ padding-right: ${({ theme }) => theme.spacing(1)};+`;++export { StyledSelectStepTitle as RightDrawerWorkflowSelectStepTitle };diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/RightDrawerWorkflowSelectActionContent.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/RightDrawerWorkflowSelectActionContent.tsxindex c21e1b0e42f..73fd1a4f67d 100644--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/RightDrawerWorkflowSelectActionContent.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/components/RightDrawerWorkflowSelectActionContent.tsx@@ -2,28 +2,9 @@ import { WorkflowWithCurrentVersion } from '@/workflow/types/Workflow';import { useCreateStep } from '@/workflow/workflow-steps/hooks/useCreateStep';import { OTHER_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/OtherActions';import { RECORD_ACTIONS } from '@/workflow/workflow-steps/workflow-actions/constants/RecordActions';-import styled from '@emotion/styled';import { MenuItemCommand, useIcons } from 'twenty-ui';--const StyledActionListContainer = styled.div`- display: flex;- flex-direction: column;- height: 100%;- overflow-y: auto;-- padding-block: ${({ theme }) => theme.spacing(1)};- padding-inline: ${({ theme }) => theme.spacing(2)};-`;--const StyledSectionTitle = styled.span`- color: ${({ theme }) => theme.font.color.tertiary};- font-size: ${({ theme }) => theme.font.size.sm};- font-weight: ${({ theme }) => theme.font.weight.medium};- padding-top: ${({ theme }) => theme.spacing(2)};- padding-bottom: ${({ theme }) => theme.spacing(1)};- padding-left: ${({ theme }) => theme.spacing(1)};- padding-right: ${({ theme }) => theme.spacing(1)};-`;+import { RightDrawerStepListContainer } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer';+import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle';export const RightDrawerWorkflowSelectActionContent = ({workflow,@@ -36,8 +17,10 @@ export const RightDrawerWorkflowSelectActionContent = ({});return (- <StyledActionListContainer>- <StyledSectionTitle>Records</StyledSectionTitle>+ <RightDrawerStepListContainer>+ <RightDrawerWorkflowSelectStepTitle>+ Records+ </RightDrawerWorkflowSelectStepTitle>{RECORD_ACTIONS.map((action) => (<MenuItemCommandkey={action.type}@@ -46,7 +29,9 @@ export const RightDrawerWorkflowSelectActionContent = ({onClick={() => createStep(action.type)}/>))}- <StyledSectionTitle>Other</StyledSectionTitle>+ <RightDrawerWorkflowSelectStepTitle>+ Other+ </RightDrawerWorkflowSelectStepTitle>{OTHER_ACTIONS.map((action) => (<MenuItemCommandkey={action.type}@@ -55,6 +40,6 @@ export const RightDrawerWorkflowSelectActionContent = ({onClick={() => createStep(action.type)}/>))}- </StyledActionListContainer>+ </RightDrawerStepListContainer>);};diff --git a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsxindex 676962e76a1..5a5cf5011e7 100644--- a/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx+++ b/packages/twenty-front/src/modules/workflow/workflow-trigger/components/RightDrawerWorkflowSelectTriggerTypeContent.tsx@@ -8,29 +8,10 @@ import { OTHER_TRIGGER_TYPES } from '@/workflow/workflow-trigger/constants/Otherimport { TRIGGER_STEP_ID } from '@/workflow/workflow-trigger/constants/TriggerStepId';import { useUpdateWorkflowVersionTrigger } from '@/workflow/workflow-trigger/hooks/useUpdateWorkflowVersionTrigger';import { getTriggerDefaultDefinition } from '@/workflow/workflow-trigger/utils/getTriggerDefaultDefinition';-import styled from '@emotion/styled';import { useSetRecoilState } from 'recoil';-import { MenuItem, useIcons } from 'twenty-ui';--const StyledActionListContainer = styled.div`- display: flex;- flex-direction: column;- height: 100%;- overflow-y: auto;-- padding-block: ${({ theme }) => theme.spacing(1)};- padding-inline: ${({ theme }) => theme.spacing(2)};-`;--const StyledSectionTitle = styled.span`- color: ${({ theme }) => theme.font.color.tertiary};- font-size: ${({ theme }) => theme.font.size.sm};- font-weight: ${({ theme }) => theme.font.weight.medium};- padding-top: ${({ theme }) => theme.spacing(2)};- padding-bottom: ${({ theme }) => theme.spacing(1)};- padding-left: ${({ theme }) => theme.spacing(1)};- padding-right: ${({ theme }) => theme.spacing(1)};-`;+import { MenuItemCommand, useIcons } from 'twenty-ui';+import { RightDrawerStepListContainer } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepContainer';+import { RightDrawerWorkflowSelectStepTitle } from '@/workflow/workflow-steps/components/RightDrawerWorkflowSelectStepTitle';export const RightDrawerWorkflowSelectTriggerTypeContent = ({workflow,@@ -46,10 +27,12 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({const setWorkflowSelectedNode = useSetRecoilState(workflowSelectedNodeState);return (- <StyledActionListContainer>- <StyledSectionTitle>Data</StyledSectionTitle>+ <RightDrawerStepListContainer>+ <RightDrawerWorkflowSelectStepTitle>+ Data+ </RightDrawerWorkflowSelectStepTitle>{DATABASE_TRIGGER_TYPES.map((action) => (- <MenuItem+ <MenuItemCommandkey={action.defaultLabel}LeftIcon={getIcon(action.icon)}text={action.defaultLabel}@@ -71,9 +54,11 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({}}/>))}- <StyledSectionTitle>Others</StyledSectionTitle>+ <RightDrawerWorkflowSelectStepTitle>+ Others+ </RightDrawerWorkflowSelectStepTitle>{OTHER_TRIGGER_TYPES.map((action) => (- <MenuItem+ <MenuItemCommandkey={action.defaultLabel}LeftIcon={getIcon(action.icon)}text={action.defaultLabel}@@ -95,6 +80,6 @@ export const RightDrawerWorkflowSelectTriggerTypeContent = ({}}/>))}- </StyledActionListContainer>+ </RightDrawerStepListContainer>);};