Skip to content

feat: event series and agendas (#194) - #211

Merged
themightychris merged 9 commits into
developfrom
feat/events-series-agenda
Oct 14, 2026
Merged

themightychris merged 9 commits into
developfrom
feat/events-series-agenda

Conversation

@themightychris

Copy link
Copy Markdown
Member

Summary

Implements plan events-series-agenda on top of the merged events feature.

  • Series: event-series sheet (config merged upstream as codeforphilly-data feat(workspace): scaffold monorepo per workspace plan #9/feat(plans): adopt awaits: field; declare storage-foundation awaits gitsheets v1.0 #10/chore(plans): clear storage-foundation awaits after gitsheets v1.0.3 #11 and vendored), EventSeries schema, five /api/event-series endpoints (list, detail with upcoming/past, create, rename with slug history, delete guarded by has_events), seriesSlug on event create/edit, series: { slug, title } on every event, /events/series/:slug redirects for renamed slugs, visibility rule (a series with nothing a non-staff caller may see is hidden).
  • Agenda: server validation (within the event range, ≤ 50, sorted on write) with per-row 422 fields, agenda items in the .ics description, and on the web the day-grouped ScheduleBlock (venue line only when it changes, with the event's venue as each day's baseline), the "Add a schedule" row editor on the event form, and duplicate mode shifting rows one month into the editor.
  • Series UI: "Part of …" above the event title, a combobox series picker that reuses an existing series by title or creates one on save, /events/series/:slug with staff edit and guarded delete, ?series= prefill.
  • Specs: two micro-decisions written back (venue baseline; row end-time rule).
  • Tests: 7 new API tests (series lifecycle, visibility, redirect, agenda validation and ICS), web tests for the series page, schedule grouping, row editor, and duplicate shift. Browser-checked the event with a schedule, the series page, and the duplicate form.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV

themightychris added a commit that referenced this pull request Oct 14, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
themightychris added a commit that referenced this pull request Oct 14, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
@themightychris
themightychris force-pushed the feat/events-series-agenda branch from 5e9bbb0 to bfa2c4b Compare October 14, 2026 04:03
themightychris added a commit that referenced this pull request Oct 14, 2026
Every public sheet now implements an app-published contract (#212);
this adds `codeforphilly.org/event-series/v1` for the sheet #211
introduces. The pre-contracts JSON-schema file goes with its generator.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
themightychris and others added 9 commits October 14, 2026 00:18
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
A series is a label with a page, never a generator
(specs/data-model.md#eventseries-new). `event_series` joins the
legacy-handle rules so series slugs get the same redirect treatment.
Config merged upstream as codeforphilly-data #9/#10/#11.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
`event-series` sheet in the store with slug and by-series indices
(loader, state-apply, incremental reload); EventSeriesService splits a
series' events into upcoming and past and hides series with nothing a
non-staff caller may see; EventSeriesWriteService creates, renames with
slug history, and refuses to delete while events reference it.
POST/PATCH /api/events accept `seriesSlug`; every Event and EventSummary
carries `series: { slug, title } | null`. /events/series/:slug joins the
slug-redirect patterns ahead of the event pattern.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
…le block

/events/series/:slug (registered ahead of /events/:slug) with staff edit,
"New event in this series", and a guarded Delete; a combobox SeriesPicker
on the event form that reuses an existing series by title or creates one
on save; the "Add a schedule" row editor with range validation and
sort-on-submit; duplicate mode shifts agenda rows one month into the
editor. ScheduleBlock renders the day-grouped agenda with a venue line
only when the venue changes, starting from the event's own venue.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
Resolved while building: the venue line compares against the previous
item's venue with the event venue as each day's baseline; a row's end is
a time on its start date, and an end at or before the start runs past
midnight.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
Every public sheet now implements an app-published contract (#212);
this adds `codeforphilly.org/event-series/v1` for the sheet #211
introduces. The pre-contracts JSON-schema file goes with its generator.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
apps/api/gitsheets/ matches codeforphilly-data#empty after the adoption
commits (contract document, sources.toml provenance, implements line), so
test data repos open event-series in declared mode and the drift check
stays green.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WVK3JSficcyHViXj36opqV
@themightychris
themightychris force-pushed the feat/events-series-agenda branch from 5e5c4b7 to abade7a Compare October 14, 2026 04:18
@themightychris
themightychris merged commit 21f1316 into develop Oct 14, 2026
1 check passed
@themightychris
themightychris deleted the feat/events-series-agenda branch October 14, 2026 04:22
@themightychris themightychris mentioned this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant