Changeset 8ea3d0d in Klonkt for src/services


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/services/ensurePrimarySite.js

    r1578f5d r8ea3d0d  
    3939      id, slug, title, description, tagline, owner_id,
    4040      language, palette, accent, profile_photo,
    41       is_public, robots_index, require_login_to_comment, enable_audio_player
    42     ) VALUES (?, ?, ?, '', '', ?, 'nl', 'sage', '#c2410c', NULL, 1, 1, 0, 1)
     41      is_public, robots_index, require_login_to_comment, enable_audio_player,
     42      feed_view_default, comments_moderation_mode
     43    ) VALUES (?, ?, ?, '', '', ?, 'nl', 'sage', '#c2410c', NULL, 1, 1, 0, 1, 'grid', 'moderate')
    4344  `).run(siteId, slug, defaultTitle(), owner.id);
    4445
Note: See TracChangeset for help on using the changeset viewer.