From 88f54d9a7699944b7d56f978e724b1c0b54dde98 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 19 Nov 2026 19:42:41 +0100 Subject: feat(sender): add bulk resend and delivery history Allow admins to resend all failed Webmentions globally or requeue every delivery for a source using the shared confirmation workflow. Record outgoing status history, expand sent source details, and provide human-readable guidance for current and historical delivery failures. --- .../templates/includes/failure_guidance.html | 26 ++++++++++++++++++++++ .../templates/includes/received_failure.html | 22 ------------------ 2 files changed, 26 insertions(+), 22 deletions(-) create mode 100644 webmentions_ssg/templates/includes/failure_guidance.html delete mode 100644 webmentions_ssg/templates/includes/received_failure.html (limited to 'webmentions_ssg/templates/includes') diff --git a/webmentions_ssg/templates/includes/failure_guidance.html b/webmentions_ssg/templates/includes/failure_guidance.html new file mode 100644 index 0000000..9a36d89 --- /dev/null +++ b/webmentions_ssg/templates/includes/failure_guidance.html @@ -0,0 +1,26 @@ + + +{% macro render_failure(reason, direction="received") %} + {% if direction == "sent" %} + {% set guidance = reason | sent_failure_guidance %} + {% else %} + {% set guidance = reason | received_failure_guidance %} + {% endif %} + {% if guidance %} +
{{ guidance.explanation }}
+ {% if guidance.next_step %} +
Suggested next step: {{ guidance.next_step }}
+ {% endif %} +
+ Technical reason +
{{ reason }}
+
+ {% else %} +
{{ reason }}
+
Check the application logs for details before {{ 'resending' if direction == 'sent' else 'reverifying' }}.
+ {% endif %} +{% endmacro %} diff --git a/webmentions_ssg/templates/includes/received_failure.html b/webmentions_ssg/templates/includes/received_failure.html deleted file mode 100644 index 65ed7a3..0000000 --- a/webmentions_ssg/templates/includes/received_failure.html +++ /dev/null @@ -1,22 +0,0 @@ - - -{% macro render_failure(reason) %} - {% set guidance = reason | received_failure_guidance %} - {% if guidance %} -
{{ guidance.explanation }}
- {% if guidance.next_step %} -
Suggested next step: {{ guidance.next_step }}
- {% endif %} -
- Technical reason -
{{ reason }}
-
- {% else %} -
{{ reason }}
-
Check the application logs for details before reverifying.
- {% endif %} -{% endmacro %} -- cgit v1.3.1