/** * Approver Skipped Email Template */ import { ApproverSkippedData } from './types'; import { getEmailFooter, getEmailHeader, HeaderStyles, wrapRichText, getResponsiveStyles } from './helpers'; import { getBrandedHeader } from './branding.config'; export function getApproverSkippedEmail(data: ApproverSkippedData): string { return ` Approver Skipped
${getEmailHeader(getBrandedHeader({ title: 'Approval Level Skipped', ...HeaderStyles.infoSecondary }))} ${getEmailFooter(data.companyName)}

Dear ${data.recipientName},

An approver has been skipped in the following request by ${data.skippedByName}. The workflow has moved to the next approval level.

Request Details

Request ID: ${data.requestId}
Title: ${data.requestTitle || 'N/A'}
Skipped Approver: ${data.skippedApproverName}
Skipped By: ${data.skippedByName}
Skipped On: ${data.skippedDate} at ${data.skippedTime}
Next Approver: ${data.nextApproverName}

Reason for Skipping:

${wrapRichText(data.skipReason)}

What This Means

  • The approval process has moved to the next level
  • The skipped approver's action is no longer required
  • All stakeholders have been notified of this change
  • The workflow continues with remaining approvers
View Request Details

The workflow will continue with the next approver.

`; }