Regions: featured cards in the region list and on the region's page (migration 072)
A region owns featured cards like the front page does, set in its editor (shown when Kind is region). They show in its row of the region list when opened, and in a Featured section on its page. featured_cards takes an 'organization' owner kind; the table is rebuilt, and a region's cards go when it does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
07be48d770
commit
2977168af5
9 changed files with 181 additions and 17 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import { mediaUrl } from "../media.ts";
|
||||
import { PLACE_FIELDS, PUBLISH_FIELDS, timelineGroup, timelineDetailGroup, linksChild, blocksChild, tagsChild } from "./shared.ts";
|
||||
import { PLACE_FIELDS, PUBLISH_FIELDS, timelineGroup, timelineDetailGroup, linksChild, blocksChild, tagsChild, featuredCardsChild } from "./shared.ts";
|
||||
|
||||
/* ── Organizations ───────────────────────────────────────────── */
|
||||
|
||||
|
|
@ -90,6 +90,11 @@ export const organizations = {
|
|||
|
||||
children: [
|
||||
tagsChild,
|
||||
{
|
||||
...featuredCardsChild,
|
||||
when: { path: "kind", value: "region" },
|
||||
note: "Shown in this region's row of the region list (when it's opened) and on its page, in this order.",
|
||||
},
|
||||
{
|
||||
key: "region_areas",
|
||||
label: "Map areas",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue