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 3073121..937db87 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 @@ -535,7 +535,7 @@ git commit -m "feat(email): convert banned.html to shared partials + brand" - Consumes: `{{{ if showUnsubscribe }}}` (footer handles it), notification body params (`{notification.bodyLong}` / as present). - Produces: converted `notification.html` passing the guard; reskinned post-queue partial. -- [ ] **Step 1: Reskin `post-queue-body.html`** — add link/text color to its `` and `

` tags so it matches the card: links `style="color: #a8893f;"`, body `

` `style="color: #3a3340;"`, labels keep ``. Structure unchanged. +- [x] **Step 1: Reskin `post-queue-body.html`** — add link/text color to its `` and `

` tags so it matches the card: links `style="color: #a8893f;"`, body `

` `style="color: #3a3340;"`, labels keep ``. Structure unchanged. ```html

[[post-queue:category]]

@@ -558,16 +558,17 @@ git commit -m "feat(email): convert banned.html to shared partials + brand"

{content}

``` -- [ ] **Step 2: Read `email/notification.html`** (lines ~166–417 are the header/body/footer). Note where it renders the notification body and whether it already `IMPORT`s `post-queue-body.html`. +- [x] **Step 2: Read `email/notification.html`** (lines ~166–417 are the header/body/footer). Note where it renders the notification body and whether it already `IMPORT`s `post-queue-body.html`. -- [ ] **Step 3: Apply the Task 6 transform to `notification.html`** — IMPORT header + `[[email:notification.preheader]]` preheader + retained body table (palette/font find/replace) + IMPORT footer. Preserve the `.notification-body` content and any `{{{ if }}}` post-queue branch; if the body renders a post-queue item, keep/add `` inside that branch. Add `style="color: #a8893f;"` to notification body links. +- [x] **Step 3: Apply the Task 6 transform to `notification.html`** — IMPORT header + `[[email:notification.preheader]]` preheader + retained body table (palette/font find/replace) + IMPORT footer. Preserve the `.notification-body` content and any `{{{ if }}}` post-queue branch; if the body renders a post-queue item, keep/add `` inside that branch. Add `style="color: #a8893f;"` to notification body links. - [ ] **Step 4: Guard + build** Run: `node scripts/check-emails.js` → expect only `digest.html` failing. Run: `./nodebb build` → clean. +Task 8 note: guard ran with only the expected remaining `digest.html` failure. `./nodebb build` was not run because no executable `./nodebb` / NodeBB root is available in this theme repo. -- [ ] **Step 5: Commit** +- [x] **Step 5: Commit** ```bash git add email/notification.html email/partials/post-queue-body.html diff --git a/email/notification.html b/email/notification.html new file mode 100644 index 0000000..a9324e5 --- /dev/null +++ b/email/notification.html @@ -0,0 +1,47 @@ + + +
[[email:notification.preheader]]
+
 ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌
+ + + + + +
+ + + + + + + + + + + + + +
+

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

+
+

{intro}

+
+

+{body} +

+
+ + + + + +
+ +[[email:notif.cta{{{ if notification.cta-type }}}-{notification.cta-type}{{{ end }}}]] → + +
+ +
+
+ + diff --git a/email/partials/post-queue-body.html b/email/partials/post-queue-body.html new file mode 100644 index 0000000..c95df5d --- /dev/null +++ b/email/partials/post-queue-body.html @@ -0,0 +1,18 @@ +

[[post-queue:category]]

+

{category.name}

+

+ {{{ if topic.tid }}}[[post-queue:topic]]{{{ else }}}[[post-queue:title]]{{{ + end }}} +

+

+ {{{ if topic.url }}}{topic.title}{{{ else + }}}{topic.title}{{{ end }}} +

+

[[post-queue:user]]

+

+ {{{ if user.url }}}{user.username}{{{ else + }}}{user.username}{{{ end }}} +

+

{content}