From bf6262e2c65675797524db1191162e93128f5e1f Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Fri, 13 Mar 2026 07:27:12 +0100 Subject: [PATCH] feat: render DM conversations as threaded view on mention tab --- views/activitypub-notifications.njk | 43 +++++++++++++++++++---------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/views/activitypub-notifications.njk b/views/activitypub-notifications.njk index 03c7459..ce03d4a 100644 --- a/views/activitypub-notifications.njk +++ b/views/activitypub-notifications.njk @@ -48,22 +48,35 @@ - {% if items.length > 0 %} -
- {% for item in items %} - {% include "partials/ap-notification-card.njk" %} - {% endfor %} -
- - {# Pagination — preserve active tab #} - {% if before %} - + {% if tab == "mention" %} + {# DM thread view — grouped by conversation #} + {% if conversations and conversations.length > 0 %} +
+ {% for conv in conversations %} + {% include "partials/ap-dm-thread.njk" %} + {% endfor %} +
+ {% else %} + {{ prose({ text: "No direct messages yet." }) }} {% endif %} {% else %} - {{ prose({ text: __("activitypub.notifications.empty") }) }} + {% if items.length > 0 %} +
+ {% for item in items %} + {% include "partials/ap-notification-card.njk" %} + {% endfor %} +
+ + {# Pagination — preserve active tab #} + {% if before %} + + {% endif %} + {% else %} + {{ prose({ text: __("activitypub.notifications.empty") }) }} + {% endif %} {% endif %} {% endblock %}