1031 workflows menu fixes (#12618)
## Before (not exhaustive) <img width="520" alt="image" src="https://github.com/user-attachments/assets/642365c5-f359-4ad3-8ba3-d7bb9c7d91e4" /> <img width="522" alt="image" src="https://github.com/user-attachments/assets/0819717f-84c6-436c-b9f4-20a1964cd565" /> <img width="528" alt="image" src="https://github.com/user-attachments/assets/240bf181-ec37-4e25-9fdb-c264a680abcc" /> <img width="525" alt="image" src="https://github.com/user-attachments/assets/0dfd55c1-dfbd-47ee-8741-977b5e57fa0a" /> ## After (not exhaustive) <img width="511" alt="image" src="https://github.com/user-attachments/assets/199b6e6e-be1d-4b75-8df6-d65ff05bee58" /> <img width="512" alt="image" src="https://github.com/user-attachments/assets/a92f67a8-ed58-4c4f-b401-07765158030f" /> <img width="522" alt="image" src="https://github.com/user-attachments/assets/ba3ae73a-4650-4f7f-a62a-980e6a2d21d1" /> <img width="518" alt="image" src="https://github.com/user-attachments/assets/97946870-4fba-4898-8381-9087df0b9ac4" />
This commit is contained in:
+3
@@ -15,6 +15,7 @@ import cron from 'cron-validate';
|
||||
import { useState } from 'react';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { useIcons } from 'twenty-ui/display';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
type WorkflowEditTriggerCronFormProps = {
|
||||
trigger: WorkflowCronTrigger;
|
||||
@@ -101,6 +102,8 @@ export const WorkflowEditTriggerCronForm = ({
|
||||
});
|
||||
}}
|
||||
withSearchInput
|
||||
dropdownOffset={{ y: parseInt(theme.spacing(1), 10) }}
|
||||
dropdownWidth={GenericDropdownContentWidth.ExtraLarge}
|
||||
/>
|
||||
{trigger.settings.type === 'CUSTOM' && (
|
||||
<FormTextFieldInput
|
||||
|
||||
+8
-2
@@ -25,6 +25,7 @@ import { useCallback, useMemo, useState } from 'react';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { IconChevronLeft, IconSettings, useIcons } from 'twenty-ui/display';
|
||||
import { MenuItem } from 'twenty-ui/navigation';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
const StyledLabel = styled.span`
|
||||
color: ${({ theme }) => theme.font.color.light};
|
||||
@@ -200,7 +201,9 @@ export const WorkflowEditTriggerDatabaseEventForm = ({
|
||||
<>
|
||||
{!triggerOptions.readonly &&
|
||||
(isSystemObjectsOpen ? (
|
||||
<DropdownContent>
|
||||
<DropdownContent
|
||||
widthInPixels={GenericDropdownContentWidth.ExtraLarge}
|
||||
>
|
||||
<DropdownMenuHeader
|
||||
StartComponent={
|
||||
<DropdownMenuHeaderLeftComponent
|
||||
@@ -229,7 +232,9 @@ export const WorkflowEditTriggerDatabaseEventForm = ({
|
||||
</DropdownMenuItemsContainer>
|
||||
</DropdownContent>
|
||||
) : (
|
||||
<DropdownContent>
|
||||
<DropdownContent
|
||||
widthInPixels={GenericDropdownContentWidth.ExtraLarge}
|
||||
>
|
||||
<DropdownMenuSearchInput
|
||||
autoFocus
|
||||
value={searchInputValue}
|
||||
@@ -262,6 +267,7 @@ export const WorkflowEditTriggerDatabaseEventForm = ({
|
||||
</>
|
||||
}
|
||||
dropdownHotkeyScope={{ scope: SelectHotkeyScope.Select }}
|
||||
dropdownOffset={{ y: parseInt(theme.spacing(1), 10) }}
|
||||
/>
|
||||
</StyledRecordTypeSelectContainer>
|
||||
{isDefined(selectedObjectMetadataItem) && isUpdateEvent && (
|
||||
|
||||
+5
@@ -15,6 +15,7 @@ import { useTheme } from '@emotion/react';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { useIcons } from 'twenty-ui/display';
|
||||
import { SelectOption } from 'twenty-ui/input';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
type WorkflowEditTriggerManualFormProps = {
|
||||
trigger: WorkflowManualTrigger;
|
||||
@@ -96,6 +97,8 @@ export const WorkflowEditTriggerManualForm = ({
|
||||
}),
|
||||
});
|
||||
}}
|
||||
dropdownOffset={{ y: parseInt(theme.spacing(1), 10) }}
|
||||
dropdownWidth={GenericDropdownContentWidth.ExtraLarge}
|
||||
/>
|
||||
|
||||
{manualTriggerAvailability === 'WHEN_RECORD_SELECTED' ? (
|
||||
@@ -119,6 +122,8 @@ export const WorkflowEditTriggerManualForm = ({
|
||||
},
|
||||
});
|
||||
}}
|
||||
dropdownOffset={{ y: parseInt(theme.spacing(1), 10) }}
|
||||
dropdownWidth={GenericDropdownContentWidth.ExtraLarge}
|
||||
/>
|
||||
) : null}
|
||||
</WorkflowStepBody>
|
||||
|
||||
+3
@@ -24,6 +24,7 @@ import { isDefined } from 'twenty-shared/utils';
|
||||
import { IconCopy, useIcons } from 'twenty-ui/display';
|
||||
import { useDebouncedCallback } from 'use-debounce';
|
||||
import { REACT_APP_SERVER_BASE_URL } from '~/config';
|
||||
import { GenericDropdownContentWidth } from '@/ui/layout/dropdown/constants/GenericDropdownContentWidth';
|
||||
|
||||
type WorkflowEditTriggerWebhookFormProps = {
|
||||
trigger: WorkflowWebhookTrigger;
|
||||
@@ -138,6 +139,8 @@ export const WorkflowEditTriggerWebhookForm = ({
|
||||
{ computeOutputSchema: false },
|
||||
);
|
||||
}}
|
||||
dropdownOffset={{ y: parseInt(theme.spacing(1), 10) }}
|
||||
dropdownWidth={GenericDropdownContentWidth.ExtraLarge}
|
||||
/>
|
||||
{trigger.settings.httpMethod === 'POST' && (
|
||||
<FormRawJsonFieldInput
|
||||
|
||||
Reference in New Issue
Block a user