Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ export function TriggerSave({
onClick={handleSave}
disabled={disabled || isProcessing}
className={cn(
'h-[32px] flex-1 rounded-[8px] px-[12px] transition-all duration-200',
saveStatus === 'saved' && 'bg-green-600 hover:bg-green-700',
saveStatus === 'error' && 'bg-red-600 hover:bg-red-700'
'flex-1',
saveStatus === 'saved' && '!bg-green-600 !text-white hover:!bg-green-700',
saveStatus === 'error' && '!bg-red-600 !text-white hover:!bg-red-700'
)}
>
{saveStatus === 'saving' && 'Saving...'}
Expand All @@ -373,12 +373,7 @@ export function TriggerSave({
</Button>

{webhookId && (
<Button
variant='default'
onClick={handleDeleteClick}
disabled={disabled || isProcessing}
className='h-[32px] rounded-[8px] px-[12px]'
>
<Button variant='default' onClick={handleDeleteClick} disabled={disabled || isProcessing}>
<Trash className='h-[14px] w-[14px]' />
</Button>
)}
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/triggers/airtable/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ export const airtableWebhookTrigger: TriggerConfig = {
defaultValue: false,
mode: 'trigger',
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'airtable_webhook',
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -67,14 +75,6 @@ export const airtableWebhookTrigger: TriggerConfig = {
.join(''),
mode: 'trigger',
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'airtable_webhook',
},
],

outputs: {
Expand Down
24 changes: 12 additions & 12 deletions apps/sim/triggers/calendly/invitee_canceled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ export const calendlyInviteeCanceledTrigger: TriggerConfig = {
value: 'calendly_invitee_canceled',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_invitee_canceled',
condition: {
field: 'selectedTriggerId',
value: 'calendly_invitee_canceled',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -61,18 +73,6 @@ export const calendlyInviteeCanceledTrigger: TriggerConfig = {
value: 'calendly_invitee_canceled',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_invitee_canceled',
condition: {
field: 'selectedTriggerId',
value: 'calendly_invitee_canceled',
},
},
],

outputs: buildInviteeOutputs(),
Expand Down
24 changes: 12 additions & 12 deletions apps/sim/triggers/calendly/invitee_created.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ export const calendlyInviteeCreatedTrigger: TriggerConfig = {
value: 'calendly_invitee_created',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_invitee_created',
condition: {
field: 'selectedTriggerId',
value: 'calendly_invitee_created',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -70,18 +82,6 @@ export const calendlyInviteeCreatedTrigger: TriggerConfig = {
value: 'calendly_invitee_created',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_invitee_created',
condition: {
field: 'selectedTriggerId',
value: 'calendly_invitee_created',
},
},
],

outputs: buildInviteeOutputs(),
Expand Down
24 changes: 12 additions & 12 deletions apps/sim/triggers/calendly/routing_form_submitted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ export const calendlyRoutingFormSubmittedTrigger: TriggerConfig = {
value: 'calendly_routing_form_submitted',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_routing_form_submitted',
condition: {
field: 'selectedTriggerId',
value: 'calendly_routing_form_submitted',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -61,18 +73,6 @@ export const calendlyRoutingFormSubmittedTrigger: TriggerConfig = {
value: 'calendly_routing_form_submitted',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_routing_form_submitted',
condition: {
field: 'selectedTriggerId',
value: 'calendly_routing_form_submitted',
},
},
],

outputs: buildRoutingFormOutputs(),
Expand Down
24 changes: 12 additions & 12 deletions apps/sim/triggers/calendly/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ export const calendlyWebhookTrigger: TriggerConfig = {
value: 'calendly_webhook',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_webhook',
condition: {
field: 'selectedTriggerId',
value: 'calendly_webhook',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -60,18 +72,6 @@ export const calendlyWebhookTrigger: TriggerConfig = {
value: 'calendly_webhook',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'calendly_webhook',
condition: {
field: 'selectedTriggerId',
value: 'calendly_webhook',
},
},
],

outputs: {
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/triggers/circleback/meeting_completed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@ export const circlebackMeetingCompletedTrigger: TriggerConfig = {
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
type: 'text',
defaultValue: circlebackSetupInstructions('All meeting data'),
mode: 'trigger',
triggerId: 'circleback_meeting_completed',
condition: {
field: 'selectedTriggerId',
value: 'circleback_meeting_completed',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: circlebackSetupInstructions('All meeting data'),
mode: 'trigger',
triggerId: 'circleback_meeting_completed',
condition: {
field: 'selectedTriggerId',
value: 'circleback_meeting_completed',
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/triggers/circleback/meeting_notes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,24 @@ export const circlebackMeetingNotesTrigger: TriggerConfig = {
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
type: 'text',
defaultValue: circlebackSetupInstructions('Meeting notes and action items'),
mode: 'trigger',
triggerId: 'circleback_meeting_notes',
condition: {
field: 'selectedTriggerId',
value: 'circleback_meeting_notes',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: circlebackSetupInstructions('Meeting notes and action items'),
mode: 'trigger',
triggerId: 'circleback_meeting_notes',
condition: {
field: 'selectedTriggerId',
value: 'circleback_meeting_notes',
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/triggers/circleback/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,24 @@ export const circlebackWebhookTrigger: TriggerConfig = {
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
type: 'text',
defaultValue: circlebackSetupInstructions('All events'),
mode: 'trigger',
triggerId: 'circleback_webhook',
condition: {
field: 'selectedTriggerId',
value: 'circleback_webhook',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
id: 'triggerInstructions',
title: 'Setup Instructions',
hideFromPreview: true,
type: 'text',
defaultValue: circlebackSetupInstructions('All events'),
mode: 'trigger',
triggerId: 'circleback_webhook',
condition: {
field: 'selectedTriggerId',
value: 'circleback_webhook',
Expand Down
16 changes: 8 additions & 8 deletions apps/sim/triggers/generic/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ export const genericWebhookTrigger: TriggerConfig = {
'Define the expected JSON input schema for this webhook (optional). Use type "files" for file uploads.',
mode: 'trigger',
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'generic_webhook',
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -76,14 +84,6 @@ export const genericWebhookTrigger: TriggerConfig = {
.join(''),
mode: 'trigger',
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'generic_webhook',
},
],

outputs: {},
Expand Down
24 changes: 12 additions & 12 deletions apps/sim/triggers/github/issue_closed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@ export const githubIssueClosedTrigger: TriggerConfig = {
value: 'github_issue_closed',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'github_issue_closed',
condition: {
field: 'selectedTriggerId',
value: 'github_issue_closed',
},
},
{
id: 'triggerInstructions',
title: 'Setup Instructions',
Expand All @@ -101,18 +113,6 @@ export const githubIssueClosedTrigger: TriggerConfig = {
value: 'github_issue_closed',
},
},
{
id: 'triggerSave',
title: '',
type: 'trigger-save',
hideFromPreview: true,
mode: 'trigger',
triggerId: 'github_issue_closed',
condition: {
field: 'selectedTriggerId',
value: 'github_issue_closed',
},
},
],

outputs: {
Expand Down
Loading