From ffb9548d27aeae6f6d5a7eb6c253550eefb31dc9 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Fri, 25 Sep 2026 15:45:29 -0300 Subject: [PATCH] feat(mail): add the cross-request toolbar tooltip and the missing-file text to MailMessage. --- src/Panel/Mail/MailMessage.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Panel/Mail/MailMessage.php b/src/Panel/Mail/MailMessage.php index 60f960c..61c2ebe 100644 --- a/src/Panel/Mail/MailMessage.php +++ b/src/Panel/Mail/MailMessage.php @@ -79,6 +79,11 @@ enum MailMessage: string */ case FAILED_SUFFIX = ' failed'; + /** + * Body of the `404` response when a requested `.eml` download does not exist in the mail directory. + */ + case FILE_NOT_FOUND = 'Mail file not found'; + /** * Header of the sender column, also used as its detail field label. */ @@ -119,6 +124,12 @@ enum MailMessage: string */ case PLACEHOLDER = '—'; + /** + * `sprintf()` template of the toolbar metric tooltip that opens the request which sent the mail before a + * redirect; it receives the request method and path. + */ + case PREVIOUS_REQUEST = 'Sent in the previous request (%s %s) — open it.'; + /** * Detail field label of the reply-to recipients. */