a gallery is a carousel
It always rendered as one — data-carousel, a snap track, two arrows, driven by carousel.client.js. The entity was the last thing still calling it something else, and that collided with the site's own Gallery section: two nav rows reading Gallery and Galleries, meaning a list of objects and a list of photograph sets. GalleriesPanel, GalleryPicker and GalleryItems become Carousels*, the endpoint becomes /fofos-admin/carousels, the block kind becomes carousel and subject-gallery becomes subject-carousel. The publish allowlist follows the renamed tables. What did NOT move: GALLERY_CONFIG at /fofos-admin/gallery, subjects.ts's base '/gallery', and home_gallery_media. Those are the Gallery section and the legacy rows, and both are correct. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -26,7 +26,7 @@ import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/u
|
||||
export type ComponentKind =
|
||||
| 'free-text'
|
||||
| 'media'
|
||||
| 'gallery'
|
||||
| 'carousel'
|
||||
| 'contact-form'
|
||||
| 'partners'
|
||||
| 'collections'
|
||||
@@ -35,7 +35,7 @@ export type ComponentKind =
|
||||
| 'subject-title'
|
||||
| 'subject-description'
|
||||
| 'subject-specs'
|
||||
| 'subject-gallery';
|
||||
| 'subject-carousel';
|
||||
|
||||
/*
|
||||
The blocks that draw whatever the page is ABOUT.
|
||||
@@ -48,7 +48,7 @@ export const SUBJECT_KINDS: ComponentKind[] = [
|
||||
'subject-title',
|
||||
'subject-description',
|
||||
'subject-specs',
|
||||
'subject-gallery',
|
||||
'subject-carousel',
|
||||
];
|
||||
|
||||
type Choice = {
|
||||
@@ -62,7 +62,7 @@ type Choice = {
|
||||
* `kind: null` means not built.
|
||||
*
|
||||
* Named rather than omitted, and the ones named are things the site already HAS — media, video and
|
||||
* galleries all exist as concepts here. That is the difference between saying what is coming and
|
||||
* carousels all exist as concepts here. That is the difference between saying what is coming and
|
||||
* inventing a roadmap. Gallery stopped being one of them on 2026-08-31: the set, its ordering and the
|
||||
* carousel that draws it were all already built, so the block is a reference to one.
|
||||
*/
|
||||
@@ -77,7 +77,7 @@ export const CHOICES: Choice[] = [
|
||||
always done.
|
||||
*/
|
||||
{ kind: 'media', label: 'Media', hint: 'A photograph or a video, from the media store', Icon: Image },
|
||||
{ kind: 'gallery', label: 'Gallery', hint: 'A named set of media', Icon: Images },
|
||||
{ kind: 'carousel', label: 'Carousel', hint: 'A named set of media', Icon: Images },
|
||||
/*
|
||||
Three that place something the site already draws.
|
||||
|
||||
@@ -108,7 +108,7 @@ export const CHOICES: Choice[] = [
|
||||
{ kind: 'subject-title', label: 'Its name', hint: 'What this page is about', Icon: Heading },
|
||||
{ kind: 'subject-description', label: 'Its description', hint: 'What was written about it', Icon: Type },
|
||||
{ kind: 'subject-specs', label: 'Its specs', hint: 'Measurement, material, colours, and the rest', Icon: Ruler },
|
||||
{ kind: 'subject-gallery', label: 'Its photographs', hint: 'The gallery it points at', Icon: Images },
|
||||
{ kind: 'subject-carousel', label: 'Its photographs', hint: 'The gallery it points at', Icon: Images },
|
||||
];
|
||||
|
||||
export const AddComponentDialog = ({
|
||||
|
||||
Reference in New Issue
Block a user