a block that lists every collection

The first block whose content is a QUERY rather than something somebody typed. It stores nothing at
all: a page holding "the collections" must not also hold a copy of which collections there were, or
adding one tomorrow would mean remembering to edit every page that lists them.

That makes it a places-only kind alongside the contact form and the partner row — one click to add, no
editor behind it. The hint says "every collection" rather than naming a picker, because there is
nothing to pick.

Gallery, Drops and Collabs all want the same shape. This is the one that decides it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-04 13:27:49 +01:00
co-authored by Claude Opus 5
parent 5da573b219
commit dde7de67aa
2 changed files with 10 additions and 4 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ const LABELS: Record<string, string> = {
gallery: 'Gallery',
'contact-form': 'Contact form',
partners: 'Partners',
collections: 'Collections',
};
/*
@@ -30,7 +31,7 @@ const LABELS: Record<string, string> = {
Both the picker and the canvas ask the same question — one to decide whether to open an editor, the
other whether to draw an Edit button — and two lists would drift into a button that opens nothing.
*/
const PLACES_ONLY: string[] = ['contact-form', 'partners'];
const PLACES_ONLY: string[] = ['contact-form', 'partners', 'collections'];
import { AddSectionDialog, type SectionLayout } from './AddSectionDialog';
import { FreeTextEditor } from './FreeTextEditor';
import { SpacingEditor, type Padding } from './SpacingEditor';