From 6612aecc010e64035d84ab872d4768f3c661ebac Mon Sep 17 00:00:00 2001 From: vickydotbat Date: Fri, 26 Jun 2026 23:44:32 +0200 Subject: [PATCH] feat(email): convert banned.html to shared partials + brand --- ...026-06-26-email-templates-brand-hygiene.md | 8 ++-- email/banned.html | 41 +++++++++++++++++++ 2 files changed, 45 insertions(+), 4 deletions(-) create mode 100644 email/banned.html diff --git a/docs/superpowers/plans/2026-06-26-email-templates-brand-hygiene.md b/docs/superpowers/plans/2026-06-26-email-templates-brand-hygiene.md index 689d2ad..3073121 100644 --- a/docs/superpowers/plans/2026-06-26-email-templates-brand-hygiene.md +++ b/docs/superpowers/plans/2026-06-26-email-templates-brand-hygiene.md @@ -506,16 +506,16 @@ Separated because the ban template carries a reason/expiry block, not the standa **Files:** - Modify: `email/banned.html` -- [ ] **Step 1: Read `email/banned.html`** to see its body rows (greeting, ban reason, expiry). +- [x] **Step 1: Read `email/banned.html`** to see its body rows (greeting, ban reason, expiry). -- [ ] **Step 2: Apply the Task 6 transform** — IMPORT header + `[[email:banned.preheader]]` preheader + retained body (with the palette/font find/replace) + IMPORT footer. Keep all existing `[[email:ban.*]]` / reason / expiry keys and `{{{ if }}}` conditionals unchanged. Recolor any reason/quote block: card `bgcolor` → `#fbf7ef`, body text → `#3a3340`, any muted text → `#9a9086`. +- [x] **Step 2: Apply the Task 6 transform** — IMPORT header + `[[email:banned.preheader]]` preheader + retained body (with the palette/font find/replace) + IMPORT footer. Keep all existing `[[email:ban.*]]` / reason / expiry keys and `{{{ if }}}` conditionals unchanged. Recolor any reason/quote block: card `bgcolor` → `#fbf7ef`, body text → `#3a3340`, any muted text → `#9a9086`. - [ ] **Step 3: Guard + build** Run: `node scripts/check-emails.js` → expect only `notification.html`, `digest.html` failing. -Run: `./nodebb build` → clean. +Task 7 note: guard ran with only the expected remaining `notification.html` and `digest.html` failures. `./nodebb build` was not run because no executable `./nodebb` / NodeBB root is available in this theme repo. -- [ ] **Step 4: Commit** +- [x] **Step 4: Commit** ```bash git add email/banned.html diff --git a/email/banned.html b/email/banned.html new file mode 100644 index 0000000..aa55f27 --- /dev/null +++ b/email/banned.html @@ -0,0 +1,41 @@ + + +
[[email:banned.preheader]]
+
 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
+ + + + + +
+ + + + + + + +{{{ if reason }}} + + + +{{{ end }}} {{{ if until }}} + + + +{{{ end }}} +
+

[[email:greeting-with-name, {username}]]

+
+

[[email:banned.text1, {username}, {site_title}]]

+
+

[[email:banned.text3]]

+
+{reason} +
+
+

[[email:banned.text2, {until}]]

+
+
+ +