Skip to content

#minor (2630) [TECH] MJML Previewer#1428

Merged
superfeedboy merged 10 commits intodevelopfrom
issue/2630
Mar 25, 2026
Merged

#minor (2630) [TECH] MJML Previewer#1428
superfeedboy merged 10 commits intodevelopfrom
issue/2630

Conversation

@superfeedboy
Copy link
Copy Markdown
Contributor

🧾 Ticket Trello

https://trello.com/c/zGRs3H5S/2630-tech-mjml-previewer

🛠 Description de la PR

Cette PR intègre un outils de création de previews pour les templates MJML en prenant en compte les variables que l'on souhaite interpréter.
L'outils de preview standard n'interprète pas les variables, ce qui ne permet pas une bonne étude du design et de l'accessibilité des templates de courriels.

📸 Captures d'écran

N/A

🚨 Notes pour la mise en production

Lancer le script via yarn emails:preview --template activity\_summary --variables server/mails/preview/xxx.variables.example.json
Il conviendra de créer le fichier .variables.example.json en fonction du besoin.

@superfeedboy superfeedboy self-assigned this Feb 27, 2026
@tristanrobert
Copy link
Copy Markdown
Contributor

tristanrobert commented Feb 27, 2026

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@superfeedboy superfeedboy marked this pull request as ready for review March 2, 2026 14:18
@superfeedboy superfeedboy requested a review from ch-benard March 2, 2026 14:18
Copy link
Copy Markdown
Contributor

@ch-benard ch-benard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 petites améliorations possibles:

  1. Documenter dans le README.md
## Développement
 
### Prévisualiser un email
```bash
yarn emails:preview \
  --template activity_summary \
  --variables server/mails/preview/activity_summary.variables.example.json

@sonarqubecloud
Copy link
Copy Markdown

@superfeedboy superfeedboy merged commit 2f76d71 into develop Mar 25, 2026
7 checks passed
@superfeedboy superfeedboy deleted the issue/2630 branch March 25, 2026 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants