From b908ee61770dc78f8d8fbbbfc4f3c00d7877d42a Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Wed, 18 Nov 2026 08:01:26 +0100 Subject: feat(core): add dashboard overview Replace the root redirect with an authenticated dashboard showing received and outgoing status counts, recent activity, pending sends, retries, and queue depth. Persist the last completed source scan so operational status survives restarts and only advances after a successful, conclusive scan. --- webmentions_ssg/templates/dashboard.html | 148 +++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 webmentions_ssg/templates/dashboard.html (limited to 'webmentions_ssg/templates/dashboard.html') diff --git a/webmentions_ssg/templates/dashboard.html b/webmentions_ssg/templates/dashboard.html new file mode 100644 index 0000000..a7f968e --- /dev/null +++ b/webmentions_ssg/templates/dashboard.html @@ -0,0 +1,148 @@ + +{% extends "base.html" %} + +{% block content %} +
+

Dashboard

+ Single-site overview +
+ +
+
+
+
+
+

Received

+ View all +
+

{{ received_total }} total

+
+
+ Pending +
{{ received_counts.received }}
+
+
+ Verifying +
{{ received_counts.verifying }}
+
+
+ Verified +
{{ received_counts.verified }}
+
+
+ Declined +
{{ received_counts.failed + received_counts.source_removed }}
+

Failed: {{ received_counts.failed }} ยท Source removed: {{ received_counts.source_removed }}

+
+
+
+
+
+ +
+
+
+
+

Outgoing

+ View sources +
+

{{ sent_total }} total

+
+
+
Sent
+
{{ sent_counts.sent }}
+
+
+
No endpoint
+
{{ sent_counts.no_endpoint }}
+
+
+
Failed (final)
+
{{ sent_counts.failed }}
+
+
+
Not attempted
+
{{ not_attempted }}
+
+
+
Pending
+
{{ pending_sends }}
+

Waiting to retry: {{ waiting_retries }}

+
+
+
+
+
+
+ +
+

Recent activity

+
+ + + + + + + + + + + + + + + + + + + + +
Activity (UTC)Last 7 daysLast 30 days
New received Webmentions{{ recent[7].received }}{{ recent[30].received }}
Webmentions last sent successfully{{ recent[7].sent }}{{ recent[30].sent }}
+
+
+ +
+

Operations

+
+
+
+
+

Source documents

+

{{ source_count }}

+
+
+
+
+
+
+

Last completed source scan

+ {% if last_scan %} + + {% else %} +

No completed scan yet

+ {% endif %} +
+
+
+
+
+
+

Huey pending tasks

+ {% if queue_size is not none %} +

{{ queue_size }}

+ {% else %} +

Unavailable

+ {% endif %} +
+
+
+
+
+{% endblock %} -- cgit v1.3.1