From 992b211ba4b214c206baeaeca224869a4d8b38c3 Mon Sep 17 00:00:00 2001 From: Sharang Parnerkar <30073382+mighty840@users.noreply.github.com> Date: Fri, 25 Sep 2026 22:56:30 +0200 Subject: [PATCH] feat(mail): the website's palette and wordmark in the notification mails Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB --- .../mail/templates/de_document.published.tmpl | 2 +- internal/mail/templates/de_findings.new.tmpl | 8 ++++---- .../mail/templates/en_document.published.tmpl | 2 +- internal/mail/templates/en_findings.new.tmpl | 8 ++++---- internal/mail/templates/layout.html | 17 ++++++++--------- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/internal/mail/templates/de_document.published.tmpl b/internal/mail/templates/de_document.published.tmpl index 6d693d9..572f08f 100644 --- a/internal/mail/templates/de_document.published.tmpl +++ b/internal/mail/templates/de_document.published.tmpl @@ -4,7 +4,7 @@ {{define "html"}}

Ein neues Dokument liegt für Sie bereit

BreakPilot hat im Arbeitsbereich {{.Tenant}} ein Dokument veröffentlicht:

{{.D.title}}

-{{if .D.description}}

{{.D.description}}

{{end}} +{{if .D.description}}

{{.D.description}}

{{end}}

Sie finden es im Portal unter Dokumente. Jeder Download wird im Audit-Log festgehalten.

{{end}} {{define "text"}}Ein neues Dokument liegt für Sie bereit diff --git a/internal/mail/templates/de_findings.new.tmpl b/internal/mail/templates/de_findings.new.tmpl index 229b4cd..a787c64 100644 --- a/internal/mail/templates/de_findings.new.tmpl +++ b/internal/mail/templates/de_findings.new.tmpl @@ -4,10 +4,10 @@ {{define "html"}}

Prüfwerk hat neue Befunde gefunden

Die letzte Prüfung von {{.D.target_name}} im Arbeitsbereich {{.Tenant}} hat {{.D.new_count}} Befunde ergeben, die es vorher nicht gab.

- - - - + + + +
Kritisch{{or .D.critical 0}}
Hoch{{or .D.high 0}}
Mittel{{or .D.medium 0}}
Niedrig / Info{{or .D.low 0}}
Kritisch{{or .D.critical 0}}
Hoch{{or .D.high 0}}
Mittel{{or .D.medium 0}}
Niedrig / Info{{or .D.low 0}}

Jeder Befund hat eine KI-Bewertung, einen Beleg im Code und einen Behebungsvorschlag.

{{end}} {{define "text"}}Prüfwerk hat neue Befunde gefunden diff --git a/internal/mail/templates/en_document.published.tmpl b/internal/mail/templates/en_document.published.tmpl index d667908..1772b18 100644 --- a/internal/mail/templates/en_document.published.tmpl +++ b/internal/mail/templates/en_document.published.tmpl @@ -4,7 +4,7 @@ {{define "html"}}

A new document is ready for you

BreakPilot published a document in the {{.Tenant}} workspace:

{{.D.title}}

-{{if .D.description}}

{{.D.description}}

{{end}} +{{if .D.description}}

{{.D.description}}

{{end}}

You find it in the portal under Documents. Every download is recorded in the audit log.

{{end}} {{define "text"}}A new document is ready for you diff --git a/internal/mail/templates/en_findings.new.tmpl b/internal/mail/templates/en_findings.new.tmpl index f15d77d..5f7429d 100644 --- a/internal/mail/templates/en_findings.new.tmpl +++ b/internal/mail/templates/en_findings.new.tmpl @@ -4,10 +4,10 @@ {{define "html"}}

Prüfwerk found new findings

The latest scan of {{.D.target_name}} in the {{.Tenant}} workspace produced {{.D.new_count}} findings that were not there before.

- - - - + + + +
Critical{{or .D.critical 0}}
High{{or .D.high 0}}
Medium{{or .D.medium 0}}
Low / info{{or .D.low 0}}
Critical{{or .D.critical 0}}
High{{or .D.high 0}}
Medium{{or .D.medium 0}}
Low / info{{or .D.low 0}}

Every finding comes with an AI assessment, the code evidence and a suggested fix.

{{end}} {{define "text"}}Prüfwerk found new findings diff --git a/internal/mail/templates/layout.html b/internal/mail/templates/layout.html index 9c5908d..0810a45 100644 --- a/internal/mail/templates/layout.html +++ b/internal/mail/templates/layout.html @@ -1,25 +1,24 @@ {{define "layout"}} {{.Subject}} - - + +
- -
+ + -
- - +
BBreakPilotBreakPilot
{{template "html" .}}
-{{template "button" .}} +{{template "button" .}}
+
{{template "footer" .}}
-BreakPilot GmbH · {{if eq .Lang "de"}}Impressum{{else}}Imprint{{end}} · {{if eq .Lang "de"}}Datenschutz{{else}}Privacy{{end}} +Breakpilot GmbH · {{if eq .Lang "de"}}Impressum{{else}}Imprint{{end}} · {{if eq .Lang "de"}}Datenschutz{{else}}Privacy{{end}}