feat(webhooks): backend module, dispatcher, processor, controller

This commit is contained in:
Philipinho
2026-05-15 01:44:58 +01:00
parent 63c1241125
commit e7fff3c9b5
2 changed files with 39 additions and 1 deletions
@@ -0,0 +1,38 @@
import { Section, Text } from 'react-email';
import * as React from 'react';
import { content, paragraph } from '../css/styles';
import { EmailButton, MailBody, getGreetingName } from '../partials/partials';
interface Props {
recipientName?: string;
webhookName: string;
webhookUrl: string;
settingsUrl: string;
}
export const WebhookDisabledEmail = ({
recipientName,
webhookName,
webhookUrl,
settingsUrl,
}: Props) => {
return (
<MailBody>
<Section style={content}>
<Text style={paragraph}>Hi {getGreetingName(recipientName)},</Text>
<Text style={paragraph}>
Your webhook <strong>{webhookName}</strong> to{' '}
<strong>{webhookUrl}</strong> has been disabled after too many
consecutive delivery failures.
</Text>
<Text style={paragraph}>
Re-enable it in your workspace settings once the receiving endpoint
is healthy again.
</Text>
</Section>
<EmailButton href={settingsUrl}>Open webhook settings</EmailButton>
</MailBody>
);
};
export default WebhookDisabledEmail;