Changeset 8ea3d0d in Klonkt for src/routes/circle.js


Ignore:
Timestamp:
06/16/2026 07:35:21 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
04a6b15
Parents:
1578f5d
Message:

Defaults: new sites grid + moderate; Circle page graphical header

(A) New-site defaults aligned with Robin's preference: feed_view_default
'timeline'->'grid' and comments_moderation_mode 'trust'->'moderate'. Set in
column defaults (fresh installs), siteEditableFields + createSite INSERT,
and ensurePrimarySite. Other defaults were already correct (public/index/
audio/switcher/search/archive on, login-to-comment off).
(B) /circle header redesigned: centred, graphical "connected circles"
motif in accent colour + chips with the avatars/names of the synced circle
sites.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/routes/circle.js

    r1578f5d r8ea3d0d  
    5858  });
    5959
    60   renderPage(req, res, 'pages/circle-feed', { pageTitle: 'Cirkel', bodyClass: 'on-cirkel', posts });
     60  // Sites in de cirkel (alleen succesvol gesyncte = proto-compatibel) — voor de
     61  // grafische header met avatars.
     62  const sites = db.prepare('SELECT name, url, avatar FROM remote_actors ORDER BY name')
     63    .all()
     64    .map((s) => ({
     65      name: s.name || 'Onbekend',
     66      url: safeUrl(s.url),
     67      avatar: safeUrl(s.avatar),
     68    }));
     69
     70  renderPage(req, res, 'pages/circle-feed', { pageTitle: 'Cirkel', bodyClass: 'on-cirkel', posts, sites });
    6171});
    6272
Note: See TracChangeset for help on using the changeset viewer.