From 02026fac5a558c2c29dfcaf6e1d459a689977dc7 Mon Sep 17 00:00:00 2001 From: Ibrahim Suleiman Date: Thu, 21 May 2026 11:32:21 +0100 Subject: [PATCH 1/3] feat: enhance message_to_future template with improved styling and layout --- templates/message_to_future.hbs | 186 ++++++++++++++++++++++---------- 1 file changed, 130 insertions(+), 56 deletions(-) diff --git a/templates/message_to_future.hbs b/templates/message_to_future.hbs index 80e576f..065acc7 100644 --- a/templates/message_to_future.hbs +++ b/templates/message_to_future.hbs @@ -2,82 +2,156 @@ Message from the past + + + - + - +
- - + - + - @@ -88,4 +162,4 @@
+ - - - - - + - - + - - + - - +
- - A MESSAGE FROM YOUR PAST - -
-

- Written on {{writtenOn}} -

+
+
-

- {{title}} -

-
- -
-
-
- - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- {{content}} -
+ A Message from Your Past +
+
+
+ Written on {{writtenOn}} +
+

{{title}}

+
+ ✦ ✦ ✦ +
+ {{content}} +
+ — {{senderName}}, your past self +
+
+

Sent Across Time

+
- -
-
- - - {{senderName}}, your past self
- Sent across time + +
- \ No newline at end of file + From e2b2360980162fb5158a3195ac6903746e03b2ee Mon Sep 17 00:00:00 2001 From: Ibrahim Suleiman Date: Thu, 21 May 2026 11:59:53 +0100 Subject: [PATCH 2/3] refactor: format payload and error handling in ComposePage for improved readability --- frontend/src/pages/ComposePage.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/ComposePage.tsx b/frontend/src/pages/ComposePage.tsx index 8ae5b51..72bc733 100644 --- a/frontend/src/pages/ComposePage.tsx +++ b/frontend/src/pages/ComposePage.tsx @@ -52,7 +52,11 @@ export function ComposePage() { try { const payload = mode === 'relative' - ? { title: title.trim(), content: content.trim(), send_after: sendAfter.trim() } + ? { + title: title.trim(), + content: content.trim(), + send_after: sendAfter.trim(), + } : { title: title.trim(), content: content.trim(), @@ -64,7 +68,9 @@ export function ComposePage() { setTitle(''); setContent(''); } catch (err) { - setError(err instanceof ApiError ? err.message : 'Could not schedule letter.'); + setError( + err instanceof ApiError ? err.message : 'Could not schedule letter.', + ); } finally { setLoading(false); } From 4e53dbe3bcdfea620a8230f53a0b5357eb620c89 Mon Sep 17 00:00:00 2001 From: Ibrahim Suleiman Date: Thu, 21 May 2026 12:15:23 +0100 Subject: [PATCH 3/3] feat: add relaxed version of message_to_future email template for enhanced user experience --- src/constants/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/constants/index.ts b/src/constants/index.ts index 3ba8e7b..d9e9e61 100644 --- a/src/constants/index.ts +++ b/src/constants/index.ts @@ -15,6 +15,7 @@ export enum ENVIRONMENT { export enum EMAIL_TEMPLATES { SIGNIN_MAGIC_LINK = 'signin_magic_link', MESSAGE_TO_FUTURE = 'message_to_future', + MESSAGE_TO_FUTURE_RELAXED = 'message_to_future_relaxed', FORGET_PASSWORD = 'forget_password', TEST = 'test', }