Skip to content

PMM-15031: Point PMM emails at the new logo URL - #921

Open
mattiasimonato wants to merge 3 commits into
mainfrom
PMM-15031-email-logo
Open

PMM-15031: Point PMM emails at the new logo URL#921
mattiasimonato wants to merge 3 commits into
mainfrom
PMM-15031-email-logo

Conversation

@mattiasimonato

@mattiasimonato mattiasimonato commented Aug 24, 2026

Copy link
Copy Markdown

Ticket number: PMM-15031

Feature build: SUBMODULES-4543

PMM emails showed a broken logo. The header pointed at a percona.com product-logo URL that was deleted during the rebranding. The logo now lives on the PMM docs site, which is a public host we control, so the email header points there instead.

The PR has two commits. The first is mechanical: emails/package.json pins mjml at ^4.13.0 with no lockfile, so rebuilding the templates today uses 4.18, which adds role, aria-roledescription and aria-label to the wrapper div. Upstream already ships that markup in public/emails/verify_email.html, so this only brings the other templates in line. It also moves the <!-- @PERCONA --> markers out of <mj-title>, because mjml copies the title into aria-label and the comment ended up inside that attribute. The second commit is the real fix: the new logo URL in emails/templates/partials/layout/header.mjml, plus the regenerated HTML.

The asset itself is added by percona/pmm#5829, which must merge first, so the URL already works when these templates start using it.

emails/package.json pins mjml at ^4.13.0 with no lockfile, so a fresh
install now resolves 4.18, where mj-body emits role,
aria-roledescription and aria-label. Upstream already ships that markup
in public/emails/verify_email.html, so regenerating only brings the
other templates in line with it.

The @percona markers have to leave mj-title for that. mjml copies the
title content into aria-label, so with the comment inside the marker
landed in the generated HTML as
aria-label="{{ __dangerouslyInjectHTML `<!-- @percona -->` }} ...".
Moving them one line up keeps both the marker and the attribute clean.

The rendered subject does not change: subjectTemplateFunc caches its
result, so the extra call from aria-label is a no-op.
The percona.com product-logo URL the header used disappeared with the
rebranding, so every PMM email rendered a broken image. The logo now
ships with the PMM docs site, a public host we control, and its source
of truth is documentation/docs/assets/pmm-logo-email.png in
percona/pmm.

The asset is 432x193 and is rendered at 216px so it stays sharp on 2x
displays.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants