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 - webmentions_ssg/templates/received_detail.html | 2 +- webmentions_ssg/templates/sent.html | 22 +- webmentions_ssg/templates/sent_source.html | 442 ++++++++++++--------- 5 files changed, 304 insertions(+), 210 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') 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 %} +
| Details | @@ -98,9 +111,7 @@ SPDX-License-Identifier: BSD-3-Clause{{ status_text }} | -- {{ source.path }} - | +{{ source.path }} | {{ source.url }} | @@ -132,6 +143,11 @@ SPDX-License-Identifier: BSD-3-Clause {{ source.last_seen_at | relative_time }} ++ Details + | {% endfor %} diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index a24bde3..600934c 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -6,6 +6,7 @@ SPDX-License-Identifier: BSD-3-Clause {% extends "base.html" %} {% from "bootstrap5/pagination.html" import render_pagination %} +{% from "includes/failure_guidance.html" import render_failure %} {% set sent_status_presentation = { "sent": { "row_class": "table-success", @@ -28,204 +29,277 @@ SPDX-License-Identifier: BSD-3-Clause -
|---|