Skip to content

BaseballHelm: Persist and surface requires_rsvp for baseball calendar events #445

Description

@njrini99-code

Problem

Baseball calendar hardcodes requires_rsvp: false on read, and createBaseballEvent never writes requires_rsvp even when the shared calendar UI sends requiresRsvp. Player RSVP controls in EventDetailModal/MobileEventSheet are gated on event.requires_rsvp, so RSVP is effectively dead for BaseballHelm.

Evidence

  • src/app/baseball/(dashboard)/dashboard/calendar/page.tsx line 107: requires_rsvp: false
  • src/app/baseball/actions/calendar.ts insert (lines 132-147): omits requires_rsvp; RSVP attendance is only created when input.requiresRsvp (line 153)
  • scripts/seed-baseball-demo.ts / team-ops seeds show the column exists on baseball_events

Why it matters

Coaches cannot run mandatory RSVPs for practices/games; players never see RSVP buttons despite coach intent.

Acceptance criteria

  • Create/update actions persist requires_rsvp (and existing deadline/max fields).
  • Calendar page maps the DB value into CalendarEvent.
  • Coach-created RSVP-required event shows player RSVP UI; non-RSVP events do not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    baseballBaseballHelmbugIncorrect behavior or regression

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions