From e88c06e1ffb795e5b9f1b6ba3b22fa6398f52b6f Mon Sep 17 00:00:00 2001 From: Mehar Khanna Date: Sun, 15 Nov 2026 21:29:15 -0500 Subject: [PATCH] Report email: summary first, square corners, plain words The owner (2026-11-15): the report looked AI-generated and hard to read, with rounded corners. Now: - The lead is a headline, a few short sentences (what happened, what to do first) and one button; the details follow below a rule. Before any data it names the app and says how to connect it; the model's summary leads once an app has data. - No border-radius anywhere, no pills, dots, emoji or uppercase eyebrow labels. One column with 1px rules instead of cards; priority is a 3px bar and a coloured word. - No "0 critical / 0 important" when everything is zero; empty sections fold into one quiet line; a single alert says it once. - Looks like genclass.dev: light inline, black and green dark mode for clients that read `; /** The HTML body. Pure. */ export function htmlOf(r: Report): string { - const head = ` - -
GenClass${esc(day(r.generated))}, ${esc(clock(r.generated))}
`; - // a new account's first step is to connect its app: that card comes before the empty numbers + const l = leadOf(r); + // the date (the subject says which report); the hour too when reports come hourly or this is an alert + const when = `${r.kind === "alert" ? "Alert · " : r.kind === "test" ? "Test · " : ""}${day(r.generated)}${r.kind === "alert" || r.every === "hourly" ? `, ${clock(r.generated)}` : ""}`; + const head = ` + +
GenClass${esc(when)}
`; + // a new account's first step is to connect its app: that section comes before the empty numbers const setupFirst = !measured(r).length || r.items.some((i) => i.section === "setup" && i.p === 0); - const body = + // a single alert is all lead (its text, pages, prompt and dashboard); several get a row each below it, and so does + // one whose prompt has no link (it is printed there) + const details = r.kind === "alert" - ? [hero(r), card(itemRows(r, r.items, true), "What GenClass saw")].join("") + ? r.items.length > 1 || r.items.some((i) => i.prompt && !r.promptLinks[i.prompt]) + ? section(r.items.length > 1 ? "What GenClass saw" : "The fix prompt", itemRows(r, r.items, true)) + : "" : [ - hero(r), - halfCard(r), - summaryCard(r), - needsCard(r), - setupFirst ? setupCard(r) : "", - appsCard(r), - prsCard(r), - visitorsCard(r), - securityCard(r), - setupFirst ? "" : setupCard(r), - laterCard(r), - knowsSites(r) ? suggestionsCard(r) : "", - knowsSites(r) ? designCard(r) : nextCard(r), - upgradeCard(r), + halfBox(r), + needsSection(r), + setupFirst ? setupSection(r) : "", + appsSection(r), + prsSection(r), + visitorsSection(r), + securitySection(r), + setupFirst ? "" : setupSection(r), + laterSection(r), + knowsSites(r) ? suggestionsSection(r) : "", + knowsSites(r) ? designSection(r) : ideasSection(r), + quietLine(r), ].join(""); + // the inbox's preview line: the summary, not the header's words + const preview = `
${esc(l.text.slice(0, 180))}${"‌ ".repeat(40)}
`; return `${esc(subjectOf(r))}${DARK} - -