test(email): add structural guard for shared email partials

This commit is contained in:
2026-06-26 23:28:43 +02:00
parent bf5c710c2b
commit 7f2f7810fe
3 changed files with 33 additions and 3 deletions
+3
View File
@@ -60,6 +60,9 @@ them to users on various events (password reset, digest, ban, etc.).
comments. Keep that structure — don't refactor into modern CSS.
- Don't hardcode user-facing copy; add/replace `[[email:…]]` keys and define
them in the language files.
- Run `node scripts/check-emails.js` after converting templates. It enforces
the shared-partial structure by requiring a header import, footer import,
and `<!-- preheader -->` marker in each `email/*.html` file.
- Rebuild (`./nodebb build`) and use the ACP test-email button to verify.
## References