People blocks and host teams

- A "People" content block: a team's members as people tiles, people
  picked one by one as items (each with a title), or both.
  content_blocks gains team_id (migration 054 rebuilds it for the
  type CHECK); a picked person rides on the item's person_id.
- An organization host can name a team (any organization's) to show
  in its place: event_hosts.team_id, carried by v_event_hosts. The
  event page reads "Hosted by" the team, linked to its page.
- Admin fields can show on `when: { path, filled: true }`.
- The showcase post has a people block; the past showcase event is
  hosted by the region shown as its team.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-30 20:26:26 -05:00
parent 6f86a113e0
commit 7c7cdaac14
10 changed files with 228 additions and 11 deletions

View file

@ -144,6 +144,10 @@ const ALL_BLOCKS = [
{ text: "A card with a picture", detail: "Its description, up to three lines, under the title. The whole card is the link.", url: "/retreats", media: IMAGE },
{ text: "An outside link, text only", detail: "The card shows the site it goes to above the title.", url: "https://example.org" },
]],
["subheading", { text: "People" }],
["people", { team_id: TEAM }, [
{ person_id: PERSON, text: "Picked as an item, with a title" },
]],
];
/* A record page's body: a handful of types, so it reads like a
@ -426,7 +430,8 @@ tx(db, () => {
is_published: 1,
is_listed: LISTED,
});
insert("event_hosts", { event_id: PAST, org_id: REGION, sort_order: 0 });
// Hosted by the region, shown as its team (054).
insert("event_hosts", { event_id: PAST, org_id: REGION, team_id: TEAM, sort_order: 0 });
insert("event_people", { event_id: PAST, person_id: PERSON, role: "host", is_public: 1, sort_order: 0 });
blocks("event", PAST, "card", cardText("past event"));