Skip to content

Commit d997d11

Browse files
committed
🚸(front) add more context if available about message delivery status
We recently display recipient delivery status tooltip when the message is not yet delivered or in failure. To help user to understand why the message is not delivered, we now display the delivery message if there is one.
1 parent 08635be commit d997d11

File tree

26 files changed

+99
-57
lines changed

26 files changed

+99
-57
lines changed

src/backend/core/api/openapi.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6351,6 +6351,11 @@
63516351
"readOnly": true,
63526352
"nullable": true
63536353
},
6354+
"delivery_message": {
6355+
"type": "string",
6356+
"readOnly": true,
6357+
"nullable": true
6358+
},
63546359
"retry_at": {
63556360
"type": "string",
63566361
"format": "date-time",
@@ -6367,6 +6372,7 @@
63676372
"required": [
63686373
"contact",
63696374
"delivered_at",
6375+
"delivery_message",
63706376
"delivery_status",
63716377
"retry_at"
63726378
]

src/backend/core/api/serializers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,12 +602,13 @@ class MessageRecipientSerializer(serializers.ModelSerializer):
602602
read_only=True,
603603
allow_null=True,
604604
)
605+
delivery_message = serializers.CharField(read_only=True, allow_null=True)
605606
retry_at = serializers.DateTimeField(read_only=True, allow_null=True)
606607
delivered_at = serializers.DateTimeField(read_only=True, allow_null=True)
607608

608609
class Meta:
609610
model = models.MessageRecipient
610-
fields = ["contact", "delivery_status", "retry_at", "delivered_at"]
611+
fields = ["contact", "delivery_status", "delivery_message", "retry_at", "delivered_at"]
611612

612613

613614
class MessageSerializer(serializers.ModelSerializer):
0 Bytes
Binary file not shown.

src/backend/locale/br_FR/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-messages\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2025-10-15 12:16+0000\n"
6-
"PO-Revision-Date: 2025-10-15 12:15\n"
5+
"POT-Creation-Date: 2025-10-16 14:12+0000\n"
6+
"PO-Revision-Date: 2025-10-16 14:11\n"
77
"Last-Translator: \n"
88
"Language-Team: Breton\n"
99
"Language: br_FR\n"
@@ -61,7 +61,7 @@ msgstr ""
6161
msgid "Keys"
6262
msgstr ""
6363

64-
#: core/api/serializers.py:1024
64+
#: core/api/serializers.py:1031
6565
msgid "A mailbox with this local part already exists in this domain."
6666
msgstr ""
6767

@@ -724,7 +724,7 @@ msgid ""
724724
msgstr ""
725725

726726
#: core/models.py:1687
727-
msgid "Type of template (reply, new_message, signature)"
727+
msgid "Type of template (message, signature)"
728728
msgstr ""
729729

730730
#: core/models.py:1693
0 Bytes
Binary file not shown.

src/backend/locale/de_DE/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-messages\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2025-10-15 12:16+0000\n"
6-
"PO-Revision-Date: 2025-10-15 12:15\n"
5+
"POT-Creation-Date: 2025-10-16 14:12+0000\n"
6+
"PO-Revision-Date: 2025-10-16 14:11\n"
77
"Last-Translator: \n"
88
"Language-Team: German\n"
99
"Language: de_DE\n"
@@ -58,7 +58,7 @@ msgstr ""
5858
msgid "Keys"
5959
msgstr ""
6060

61-
#: core/api/serializers.py:1024
61+
#: core/api/serializers.py:1031
6262
msgid "A mailbox with this local part already exists in this domain."
6363
msgstr ""
6464

@@ -721,7 +721,7 @@ msgid ""
721721
msgstr ""
722722

723723
#: core/models.py:1687
724-
msgid "Type of template (reply, new_message, signature)"
724+
msgid "Type of template (message, signature)"
725725
msgstr ""
726726

727727
#: core/models.py:1693

src/backend/locale/en_US/LC_MESSAGES/django.po

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-docs\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2025-10-15 12:16+0000\n"
5+
"POT-Creation-Date: 2025-10-16 14:12+0000\n"
66
"PO-Revision-Date: 2025-01-27 09:27\n"
77
"Last-Translator: \n"
88
"Language-Team: English\n"
@@ -58,7 +58,7 @@ msgstr ""
5858
msgid "Keys"
5959
msgstr ""
6060

61-
#: core/api/serializers.py:1024
61+
#: core/api/serializers.py:1031
6262
msgid "A mailbox with this local part already exists in this domain."
6363
msgstr ""
6464

@@ -721,7 +721,7 @@ msgid ""
721721
msgstr ""
722722

723723
#: core/models.py:1687
724-
msgid "Type of template (reply, new_message, signature)"
724+
msgid "Type of template (message, signature)"
725725
msgstr ""
726726

727727
#: core/models.py:1693
0 Bytes
Binary file not shown.

src/backend/locale/es_ES/LC_MESSAGES/django.po

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ msgid ""
22
msgstr ""
33
"Project-Id-Version: lasuite-messages\n"
44
"Report-Msgid-Bugs-To: \n"
5-
"POT-Creation-Date: 2025-10-15 12:16+0000\n"
6-
"PO-Revision-Date: 2025-10-15 12:15\n"
5+
"POT-Creation-Date: 2025-10-16 14:12+0000\n"
6+
"PO-Revision-Date: 2025-10-16 14:11\n"
77
"Last-Translator: \n"
88
"Language-Team: Spanish\n"
99
"Language: es_ES\n"
@@ -58,7 +58,7 @@ msgstr ""
5858
msgid "Keys"
5959
msgstr ""
6060

61-
#: core/api/serializers.py:1024
61+
#: core/api/serializers.py:1031
6262
msgid "A mailbox with this local part already exists in this domain."
6363
msgstr ""
6464

@@ -721,7 +721,7 @@ msgid ""
721721
msgstr ""
722722

723723
#: core/models.py:1687
724-
msgid "Type of template (reply, new_message, signature)"
724+
msgid "Type of template (message, signature)"
725725
msgstr ""
726726

727727
#: core/models.py:1693
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)