From f681784e7e3d1b6510f9da6a88c8cd867a477119 Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Sun, 26 Apr 2026 15:11:53 +0200 Subject: [PATCH] fix: move email styles to - - -
-
- Cameleer.io + +
+
+ Cameleer.io
-
- -
-

Lost in the dunes?

-

No worries — enter this code to reset your password and get back on the trail.

-
-
- {{code}} -
+
+

Lost in the dunes?

+

No worries — enter this code to reset your password and get back on the trail.

+
+
+ {{code}}
-

This code expires in 10 minutes. If you didn't request a password reset, you can safely ignore this email.

-

This password reset was requested for your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. For security, this code can only be used once. If you continue to have trouble accessing your account, please contact your administrator for assistance.

+

This code expires in 10 minutes. If you didn't request a password reset, you can safely ignore this email.

+

This password reset was requested for your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. For security, this code can only be used once. If you continue to have trouble accessing your account, please contact your administrator for assistance.

-
-

Questions? Contact your administrator

-

Cameleer — Apache Camel observability

+
- diff --git a/src/main/resources/email-templates/generic.html b/src/main/resources/email-templates/generic.html index 4ed60ea..7816405 100644 --- a/src/main/resources/email-templates/generic.html +++ b/src/main/resources/email-templates/generic.html @@ -5,32 +5,45 @@ Your Cameleer verification code + - - -
-
- Cameleer.io + +
+
+ Cameleer.io
-
- -
-

Quick checkpoint

-

Here's your verification code. Just making sure it's really you at the reins.

-
-
- {{code}} -
+
+

Quick checkpoint

+

Here's your verification code. Just making sure it's really you at the reins.

+
+
+ {{code}}
-

This code expires in 10 minutes.

-

You are receiving this email because a verification was requested on your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. If you did not request this verification, please ignore this email or contact your administrator for assistance.

+

This code expires in 10 minutes.

+

You are receiving this email because a verification was requested on your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. If you did not request this verification, please ignore this email or contact your administrator for assistance.

-
-

Questions? Contact your administrator

-

Cameleer — Apache Camel observability

+
- diff --git a/src/main/resources/email-templates/password-reset-notification.html b/src/main/resources/email-templates/password-reset-notification.html index 0147d26..e9ab9d9 100644 --- a/src/main/resources/email-templates/password-reset-notification.html +++ b/src/main/resources/email-templates/password-reset-notification.html @@ -5,30 +5,42 @@ Your password was reset + - - -
-
- Cameleer.io + +
+
+ Cameleer.io
-
- -
-

Your password was reset

-

Your Cameleer account password was successfully changed on {{timestamp}}.

-
-

Note: Multi-factor authentication (MFA) was not required for this password reset. We recommend enabling MFA to add an extra layer of security to your account.

-
-

If this wasn't you, contact your administrator immediately.

-

This is an automated security notification from your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. You are receiving this notification because a password change was completed. For your security, we recommend reviewing your account activity and ensuring your credentials are kept safe.

+
+

Your password was reset

+

Your Cameleer account password was successfully changed on {{timestamp}}.

+
+

Note: Multi-factor authentication (MFA) was not required for this password reset. We recommend enabling MFA to add an extra layer of security to your account.

+

If this wasn't you, contact your administrator immediately.

+

This is an automated security notification from your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. You are receiving this notification because a password change was completed. For your security, we recommend reviewing your account activity and ensuring your credentials are kept safe.

-
-

Questions? Contact your administrator

-

Cameleer — Apache Camel observability

+
- diff --git a/src/main/resources/email-templates/register.html b/src/main/resources/email-templates/register.html index cbab74b..9cd2860 100644 --- a/src/main/resources/email-templates/register.html +++ b/src/main/resources/email-templates/register.html @@ -5,32 +5,45 @@ Your caravan pass is almost ready + - - -
-
- Cameleer.io + +
+
+ Cameleer.io
-
- -
-

Welcome to the caravan!

-

Enter this code to verify your email and claim your spot. The dunes wait for no one.

-
-
- {{code}} -
+
+

Welcome to the caravan!

+

Enter this code to verify your email and claim your spot. The dunes wait for no one.

+
+
+ {{code}}
-

This code expires in 10 minutes. If you didn't request this, you can safely ignore this email — no camels were harmed.

-

Cameleer is an observability platform for Apache Camel integrations. It provides real-time route tracing, message inspection, and performance monitoring to help your team debug and optimize integration flows. Your account gives you access to your dedicated Cameleer instance where you can connect your Camel applications and start monitoring immediately.

+

This code expires in 10 minutes. If you didn't request this, you can safely ignore this email — no camels were harmed.

+

Cameleer is an observability platform for Apache Camel integrations. It provides real-time route tracing, message inspection, and performance monitoring to help your team debug and optimize integration flows. Your account gives you access to your dedicated Cameleer instance where you can connect your Camel applications and start monitoring immediately.

-
-

Questions? Contact your administrator

-

Cameleer — Apache Camel observability

+
- diff --git a/src/main/resources/email-templates/sign-in.html b/src/main/resources/email-templates/sign-in.html index baa27d8..fc1038a 100644 --- a/src/main/resources/email-templates/sign-in.html +++ b/src/main/resources/email-templates/sign-in.html @@ -5,32 +5,45 @@ Your Cameleer sign-in code + - - -
-
- Cameleer.io + +
+
+ Cameleer.io
-
- -
-

Back at the oasis already?

-

Here's your sign-in code. The caravan master is checking credentials.

-
-
- {{code}} -
+
+

Back at the oasis already?

+

Here's your sign-in code. The caravan master is checking credentials.

+
+
+ {{code}}
-

This code expires in 10 minutes.

-

You are receiving this email because a sign-in attempt was made on your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. If you did not initiate this sign-in, please ignore this email or contact your administrator.

+

This code expires in 10 minutes.

+

You are receiving this email because a sign-in attempt was made on your Cameleer account. Cameleer is an observability platform for Apache Camel integrations providing real-time route tracing, message inspection, and performance monitoring. If you did not initiate this sign-in, please ignore this email or contact your administrator.

-
-

Questions? Contact your administrator

-

Cameleer — Apache Camel observability

+
- diff --git a/src/test/java/net/siegeln/cameleer/saas/vendor/EmailTemplateLoadingTest.java b/src/test/java/net/siegeln/cameleer/saas/vendor/EmailTemplateLoadingTest.java index 8fd650d..4adb108 100644 --- a/src/test/java/net/siegeln/cameleer/saas/vendor/EmailTemplateLoadingTest.java +++ b/src/test/java/net/siegeln/cameleer/saas/vendor/EmailTemplateLoadingTest.java @@ -35,24 +35,16 @@ class EmailTemplateLoadingTest { } @Test - void templatesContainWatermarkPlaceholder() throws IOException { + void templatesContainHtmlStructure() throws IOException { for (String path : TEMPLATE_FILES) { String content = new ClassPathResource(path).getContentAsString(StandardCharsets.UTF_8); - assertTrue(content.contains("{{watermarkUrl}}"), - path + " must contain {{watermarkUrl}} placeholder"); + assertTrue(content.contains(""), + path + " must contain DOCTYPE declaration"); + assertTrue(content.contains(" tag"); } } - @Test - void watermarkPlaceholderIsReplaced() throws IOException { - String content = new ClassPathResource("email-templates/register.html") - .getContentAsString(StandardCharsets.UTF_8); - String resolved = content.replace("{{watermarkUrl}}", - "https://example.com/platform/assets/email-watermark.png"); - assertFalse(resolved.contains("{{watermarkUrl}}")); - assertTrue(resolved.contains("https://example.com/platform/assets/email-watermark.png")); - } - @Test void templatesContainBrandElements() throws IOException { for (String path : TEMPLATE_FILES) {