400 workflows webhooks trigger (#11041)

https://github.com/user-attachments/assets/dc0ece22-4d87-417f-b9e1-a11c3fd52ce8
This commit is contained in:
martmull
2025-03-20 11:12:52 +01:00
committed by GitHub
parent bc94891a27
commit d99f027e8d
30 changed files with 399 additions and 49 deletions

View File

@ -14,6 +14,7 @@ import {
IconMicrosoftOutlook,
IconRobot,
IconSettingsAutomation,
IconWebhook,
} from 'twenty-ui';
type ActorDisplayProps = Partial<FieldActorValue> & {
@ -54,6 +55,8 @@ export const ActorDisplay = ({
return IconRobot;
case 'WORKFLOW':
return IconSettingsAutomation;
case 'WEBHOOK':
return IconWebhook;
default:
return undefined;
}

View File

@ -65,6 +65,7 @@ const StyledInput = styled.input<
Pick<
TextInputV2ComponentProps,
| 'LeftIcon'
| 'RightIcon'
| 'error'
| 'sizeVariant'
| 'width'
@ -112,9 +113,16 @@ const StyledInput = styled.input<
: LeftIcon
? `calc(${theme.spacing(3)} + 16px)`
: theme.spacing(2)};
padding-right: ${({ theme, RightIcon, autoGrow }) =>
autoGrow
? theme.spacing(1)
: RightIcon
? `calc(${theme.spacing(3)} + 16px)`
: theme.spacing(2)};
width: ${({ theme, width }) =>
width ? `calc(${width}px + ${theme.spacing(0.5)})` : '100%'};
max-width: ${({ autoGrow }) => (autoGrow ? '100%' : 'none')};
text-overflow: ellipsis;
&::placeholder,
&::-webkit-input-placeholder {
color: ${({ theme }) => theme.font.color.light};
@ -126,6 +134,10 @@ const StyledInput = styled.input<
color: ${({ theme }) => theme.font.color.tertiary};
}
&[readonly] {
pointer-events: none;
}
&:focus {
${({ theme, error }) => {
return `
@ -165,7 +177,10 @@ const StyledTrailingIconContainer = styled.div<
margin: auto 0;
`;
const StyledTrailingIcon = styled.div<{ isFocused?: boolean }>`
const StyledTrailingIcon = styled.div<{
isFocused?: boolean;
onClick?: () => void;
}>`
align-items: center;
color: ${({ theme, isFocused }) =>
isFocused ? theme.font.color.secondary : theme.font.color.light};
@ -189,6 +204,7 @@ export type TextInputV2ComponentProps = Omit<
error?: string;
noErrorHelper?: boolean;
RightIcon?: IconComponent;
onRightIconClick?: () => void;
LeftIcon?: IconComponent;
autoGrow?: boolean;
onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
@ -224,8 +240,10 @@ const TextInputV2Component = forwardRef<
autoFocus,
placeholder,
disabled,
readOnly,
tabIndex,
RightIcon,
onRightIconClick,
LeftIcon,
autoComplete,
maxLength,
@ -302,10 +320,12 @@ const TextInputV2Component = forwardRef<
{...{
autoFocus,
disabled,
readOnly,
placeholder,
required,
value,
LeftIcon,
RightIcon,
maxLength,
error,
sizeVariant,
@ -337,7 +357,9 @@ const TextInputV2Component = forwardRef<
</StyledTrailingIcon>
)}
{!error && type !== INPUT_TYPE_PASSWORD && !!RightIcon && (
<StyledTrailingIcon>
<StyledTrailingIcon
onClick={onRightIconClick ? onRightIconClick : undefined}
>
<RightIcon size={theme.icon.size.md} />
</StyledTrailingIcon>
)}