AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import {
maxBarrierSignalsBounds,
PlatformConfigurationSettings,
} from '@activepieces/shared';
import { t } from 'i18next';
import { Split } from 'lucide-react';
import { Control } from 'react-hook-form';
import { FormField, FormItem, FormMessage } from '@/components/ui/form';
import { Input } from '@/components/ui/input';
import {
Item,
ItemMedia,
ItemContent,
ItemTitle,
ItemDescription,
ItemActions,
} from '@/components/ui/item';
export const LimitsSection = ({ control, disabled }: LimitsSectionProps) => {
return (
<div className="flex flex-col gap-3">
<div className="flex flex-col gap-1">
<h2 className="text-base font-semibold">{t('Limits')}</h2>
<p className="text-sm text-gray-11">
{t('Guardrails that apply to every project on this platform.')}
</p>
</div>
<FormField
control={control}
name="maxBarrierSignals"
render={({ field }) => (
<FormItem>
<Item variant="outline">
<ItemMedia variant="icon">
<Split />
</ItemMedia>
<ItemContent>
<ItemTitle>{t('Max things one step can wait on')}</ItemTitle>
<ItemDescription className="line-clamp-none">
{t(
'A step that waits on more than this fails when it runs. Every thing waited on costs database rows, so raise it only as far as your database can carry.',
)}
</ItemDescription>
</ItemContent>
<ItemActions>
<Input
{...field}
id="maxBarrierSignals"
type="number"
min={maxBarrierSignalsBounds.min}
max={maxBarrierSignalsBounds.max}
className="w-28"
value={field.value ?? ''}
onChange={(e) =>
field.onChange(
e.target.value === ''
? undefined
: Number(e.target.value),
)
}
disabled={disabled}
/>
</ItemActions>
</Item>
<FormMessage />
</FormItem>
)}
/>
</div>
);
};
type LimitsSectionProps = {
control: Control<PlatformConfigurationSettings>;
disabled: boolean;
};