From e30ff4d694ed10cebf28aca9a9c1925b430dc64a Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 9 Apr 2026 19:59:36 +0000 Subject: [PATCH] Fix: Add Discord channel status to matrix body template (inline cards, not partial) --- .../src/views/admin/servers/_matrix_body.ejs | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/services/arbiter-3.0/src/views/admin/servers/_matrix_body.ejs b/services/arbiter-3.0/src/views/admin/servers/_matrix_body.ejs index ba697ca..d8f6f26 100644 --- a/services/arbiter-3.0/src/views/admin/servers/_matrix_body.ejs +++ b/services/arbiter-3.0/src/views/admin/servers/_matrix_body.ejs @@ -7,6 +7,7 @@ <% txServers.forEach(server => { const isOnline = server.log.is_online; const hasError = !!server.log.last_error; + const discordComplete = server.discord?.complete; let borderClass = 'border-gray-200 dark:border-gray-700'; if (isOnline && !hasError) borderClass = 'border-green-500 shadow-[0_0_10px_rgba(34,197,94,0.2)]'; if (hasError) borderClass = 'border-red-500 shadow-[0_0_10px_rgba(239,68,68,0.2)]'; @@ -38,6 +39,19 @@ + +
+ Discord Channels + <% if (discordComplete) { %> + ✅ All 4 channels + <% } else if (server.discord?.missing?.length > 0) { %> +
+ Missing: <%= server.discord.missing.join(', ') %> +
+ <% } else { %> + Unable to check + <% } %> +
<% if (hasError) { %>
Error: <%= server.log.last_error %> @@ -64,6 +78,7 @@ <% ncServers.forEach(server => { const isOnline = server.log.is_online; const hasError = !!server.log.last_error; + const discordComplete = server.discord?.complete; let borderClass = 'border-gray-200 dark:border-gray-700'; if (isOnline && !hasError) borderClass = 'border-green-500 shadow-[0_0_10px_rgba(34,197,94,0.2)]'; if (hasError) borderClass = 'border-red-500 shadow-[0_0_10px_rgba(239,68,68,0.2)]'; @@ -95,6 +110,19 @@
+ +
+ Discord Channels + <% if (discordComplete) { %> + ✅ All 4 channels + <% } else if (server.discord?.missing?.length > 0) { %> +
+ Missing: <%= server.discord.missing.join(', ') %> +
+ <% } else { %> + Unable to check + <% } %> +
<% if (hasError) { %>
Error: <%= server.log.last_error %>