Changeset 0091cb7 in Klonkt for src/views


Ignore:
Timestamp:
06/16/2026 12:59:24 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
efdde37
Parents:
25d4041
Message:

Circles v1 — steps 4+5: Admin UI + /cirkel feed

  • Mode 'Circles' in Admin > Settings (radio + section).
  • Admin > Circle (admin-circle): add sources/list/status, per source Refresh (syncOne) + Delete (cleans up orphaned cache), and a visibility toggle (sites.allow_circle, opt-out for surfacing).
  • /cirkel feed: cached remote_posts as static cards (source/avatar, title, summary, cover, link to source). Only when tenancy=circle.
  • allow_circle column (ensureColumn) + CircleFederation respects it.
  • Output escaped everywhere + URL-scheme guards (http/https) against XSS import.

v1 functionally complete (publish + pull + UI + feed). Remaining: hardening/review.

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

Location:
src/views/pages
Files:
2 added
1 edited

Legend:

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

    r25d4041 r0091cb7  
    2525          <strong>Hub</strong> — bedrijfssite met <code>/user/</code>.
    2626          <small>Jij (admin) wijst gebruikers een eigen Klonkt Hub toe. Gesloten cirkel: geen open registratie.</small>
     27        </span>
     28      </label>
     29      <label class="set-opt">
     30        <input type="radio" name="tenancy" value="circle" <%= tenancy === 'circle' ? 'checked' : '' %>>
     31        <span>
     32          <strong>Cirkels</strong> &mdash; solo + federatie.
     33          <small>E&eacute;n eigen site die de publieke posts van andere Klonkt-sites toont. Asymmetrisch: jij bepaalt wie in jouw cirkel zit.</small>
    2734        </span>
    2835      </label>
     
    5966  </section>
    6067  <% } %>
     68
     69  <% if (tenancy === 'circle') { %>
     70  <section class="set-card" style="margin-top:1rem">
     71    <h2>Cirkel</h2>
     72    <p class="set-help">
     73      Beheer welke andere Klonkt-sites je in je cirkel toont, en of jouw site in
     74      cirkels van anderen mag verschijnen.
     75    </p>
     76    <p><a href="/admin/circle" class="btn btn-primary">Beheer je cirkel &rarr;</a></p>
     77  </section>
     78  <% } %>
    6179</div>
    6280
Note: See TracChangeset for help on using the changeset viewer.