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

@ -295,12 +295,14 @@ function Facts({ event, accent }: { event: EventRecord; accent: string }) {
sentence, so they're joined with commas and an "and" rather than
stacked. A host whose id didn't resolve to a route renders as
plain text, refHref returns null for that, because a dead link
is worse than a name. */
is worse than a name. An organization host with a team set shows
the team instead, linked to the team's page. */
function HostList({ hosts, accent }: { hosts: EventHost[]; accent: string }) {
return (
<>
{hosts.map((host, index) => {
const to = refHref(host.kind, host.id, host.org_kind)
const to = host.team ? refHref('team', host.team.id) : refHref(host.kind, host.id, host.org_kind)
const name = host.team?.name ?? host.name
return (
<span key={`${host.kind}:${host.id}`}>
@ -312,10 +314,10 @@ function HostList({ hosts, accent }: { hosts: EventHost[]; accent: string }) {
className="font-medium hover:underline"
style={{ color: accentText(accent) }}
>
{host.name}
{name}
</Link>
) : (
<span className="font-medium">{host.name}</span>
<span className="font-medium">{name}</span>
)}
</span>
)