diff --git a/server/src/admin-schema/events.js b/server/src/admin-schema/events.js
index 253a1b8..3b5e791 100644
--- a/server/src/admin-schema/events.js
+++ b/server/src/admin-schema/events.js
@@ -67,6 +67,8 @@ export const events = {
bool("is_published"),
bool("is_listed"),
bool("in_timeline"),
+ bool("show_contents"),
+ text("links_heading"),
// A repeating schedule. Columns rather than a side table: the
// schedule is always exactly one per event, and the public view
diff --git a/server/src/migrations/089_event_page_options.sql b/server/src/migrations/089_event_page_options.sql
new file mode 100644
index 0000000..073c77e
--- /dev/null
+++ b/server/src/migrations/089_event_page_options.sql
@@ -0,0 +1,14 @@
+-- ═══════════════════════════════════════════════════════════════
+-- 089 EVENT PAGE OPTIONS
+--
+-- show_contents the page's headings listed beside its content
+-- blocks, as a blog post's are (PostContents.tsx)
+-- links_heading a heading above the event's link buttons; null
+-- shows none
+--
+-- v_events is SELECT e.*, so it carries both with no rebuild.
+-- ═══════════════════════════════════════════════════════════════
+
+ALTER TABLE events ADD COLUMN show_contents INTEGER NOT NULL DEFAULT 0
+ CHECK (show_contents IN (0, 1));
+ALTER TABLE events ADD COLUMN links_heading TEXT;
diff --git a/server/src/routes/content.js b/server/src/routes/content.js
index 3191e17..629192d 100644
--- a/server/src/routes/content.js
+++ b/server/src/routes/content.js
@@ -591,7 +591,14 @@ content.get("/events/:id", (c) => {
citation: r.citation,
}));
- const event = { ...shapeEvent(row, links, cards, hosts), blocks: body, people, awards };
+ const event = {
+ ...shapeEvent(row, links, cards, hosts),
+ show_contents: row.show_contents === 1,
+ links_heading: row.links_heading,
+ blocks: body,
+ people,
+ awards,
+ };
attachTags(db, "event", [event]);
return json(c, { event });
diff --git a/src/components/ScheduleBlock.tsx b/src/components/ScheduleBlock.tsx
index bc7ee4d..b5c838a 100644
--- a/src/components/ScheduleBlock.tsx
+++ b/src/components/ScheduleBlock.tsx
@@ -28,8 +28,8 @@
Tags (087) are the block's own: an entry or sub-item shows its
tags as chips, and each tag (unless it's set No tab) is a tab
- after the days, gathering what it's on from every day under the
- day's name. A tagged entry comes whole; an untagged block comes
+ in a row of its own under the days, with a note saying what it
+ does, gathering what it's on from every day under the day's name. A tagged entry comes whole; an untagged block comes
with only its tagged sub-items. A tag on nothing draws no tab.
An entry's place on the block's venue (088) links to the map
@@ -48,7 +48,7 @@
it, no map frame (ReadingSchedule).
═══════════════════════════════════════════════════════════════ */
-import { CaretDown, MapPin, Star } from '@phosphor-icons/react'
+import { CaretDown, MapPin, Star, Tag as TagIcon } from '@phosphor-icons/react'
import { Fragment, createContext, useContext, useId, useState, type KeyboardEvent, type ReactNode } from 'react'
import { Link, useLocation } from 'react-router-dom'
@@ -496,9 +496,41 @@ export default function ScheduleBlock({
.map((tag) => ({ label: tag.name, days: daysWithTag(days, tag.key), color: tag.color, tag: true }))
.filter((tab) => tab.days.length),
]
+ const dayCount = days.length
const at = Math.min(active, tabs.length - 1)
const current = tabs[at]
+ // A day's tab, or a tag's: smaller, its tag icon in front.
+ const tabButton = (tab: Tab, index: number) => {
+ const selected = index === at
+ const color = tab.color || accent
+ return (
+
+ )
+ }
+
// Arrows move one tab and wrap; Home and End jump to the ends.
const onKey = (e: KeyboardEvent) => {
const last = tabs.length - 1
@@ -524,32 +556,28 @@ export default function ScheduleBlock({
)}
{tabs.length > 1 && (
-
- {tabs.map((tab, index) => {
- const selected = index === at
- const color = tab.color || accent
- return (
-
- )
- })}
+
+ {/* Days, then the tags in a row of their own: one tablist,
+ so the arrow keys still walk every tab. */}
+