Changeset 4fee228 in Klonkt


Ignore:
Timestamp:
06/16/2026 06:43:49 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
151a72c
Parents:
f63cbc2
Message:

Circle UI: show reason for outdated/unknown status instead of silent "paused"

The status display only handled active/error; everything else (including the
new 'outdated' status) fell into an else that showed "paused" with no
reason. Now a dedicated 'outdated' branch (version mismatch + last_error),
a real 'paused' branch, and a catch-all that shows the raw status + reason.
No more silent messages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-circle.ejs

    rf63cbc2 r4fee228  
    6363                  <%= counts[l.id] || 0 %> posts
    6464                  <% if (l.last_synced) { %>&middot; laatst: <%= l.last_synced %><% } %>
     65                <% } else if (l.status === 'outdated') { %>
     66                  <span class="circ-badge err">&#8635; versie-mismatch</span>
     67                  <%= l.last_error || 'Deze site draait een andere Klonkt-protocolversie — bijwerken nodig om te federeren.' %>
    6568                <% } else if (l.status === 'error') { %>
    6669                  <span class="circ-badge err">&#9888; fout</span>
    6770                  <%= l.last_error || '' %>
     71                <% } else if (l.status === 'paused') { %>
     72                  <span class="circ-badge">&#9208; gepauzeerd</span>
    6873                <% } else { %>
    69                   <span class="circ-badge">&#9208; gepauzeerd</span>
     74                  <%# Onbekende status: toon 'm rauw + eventuele reden i.p.v. stil "gepauzeerd". %>
     75                  <span class="circ-badge"><%= l.status %></span>
     76                  <%= l.last_error || '' %>
    7077                <% } %>
    7178              </small>
Note: See TracChangeset for help on using the changeset viewer.