import { Arrow, Frame, Label, Pill, fill, type Tone } from './frame';
import { cn } from '@/lib/cn';
// Deliverability and inbox placement: what happens to a message after you send it.
const GATES = [
{ n: 1, name: 'Acceptance', by: 'The receiving server says 250', checks: 'Valid message, rate limit, basic IP block' },
{ n: 2, name: 'Filtering', by: 'A spam score', checks: 'Authentication, content, reputation' },
{ n: 3, name: 'Placement', by: 'Where it lands', checks: 'Inbox, Promotions, Spam, or a rule' },
];
export function MailJourney() {
return (
You send
{GATES.map((g) => (
{g.n}{g.name}
{g.by}
{g.checks}
))}
Delivery rate is measured here
Deliverability is what happens here: does it reach the inbox?
);
}
/** 100 sends as dots: accepted almost always, in the inbox far less often. */
export function DeliveryVsPlacement() {
const dots = Array.from({ length: 100 }, (_, i) => (i < 30 ? 'good' : i < 99 ? 'watch' : 'plain') as Tone);
return (
{dots.map((t, i) => (
))}
A delivery rate reports 99%. Placement is 30%.
);
}
function Row({ tone: t, big, text }: { tone: Tone; big: string; text: string }) {
return (
{big}{text}
);
}
const BANDS = [
{ from: 0, to: 60, t: 'bad' as Tone, name: 'Below 60%', text: 'Stop campaigns from this mailbox' },
{ from: 60, to: 80, t: 'watch' as Tone, name: '60 to 80%', text: 'Something is wrong: audit auth, content, volume' },
{ from: 80, to: 90, t: 'info' as Tone, name: '80 to 90%', text: 'Acceptable, watch for drift' },
{ from: 90, to: 100, t: 'good' as Tone, name: 'Above 90%', text: 'Healthy mailbox' },
];
export function PlacementScale() {
return (