Skip to content

feat: events attached to commits - #151

Open
vtlxx wants to merge 1 commit into
dev-null-sh:productionfrom
vtlxx:feat/events
Open

vtlxx wants to merge 1 commit into
dev-null-sh:productionfrom
vtlxx:feat/events

Conversation

@vtlxx

@vtlxx vtlxx commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Summary

A commit can now carry an event: a meetup, a stream, or both. It shows up in the log as a small ticket, opens into the full event in place, and goes to your calendar in one tap.

  • Create: the calendar button next to the image button in the composer adds an event: title, start and end in your time zone, and on-site, online or hybrid with the matching fields (venue and address, or platform and join link), plus an optional 16:9 cover. On phones it opens as a full-screen sheet. An event goes on a top-level commit without images, and through moderation like any other commit.
  • In the log: a ticket with the date, time, title and place. Tapping it smoothly expands the full event in place: cover, address with "Open in maps", and the join link. Moderators see it expanded, with "Opens once approved".
  • Going: one tap, with the count. Nobody sees a list of who is going. The host, pending, ended and cancelled events can't take it.
  • Add to calendar: Apple Calendar (opens the .ics in place), Google, Outlook, or a .ics download. The entry reminds you 1h before, and later changes keep the same UID with a higher SEQUENCE, so calendars update the event instead of adding a second one.
  • Edit and cancel: the host can change the details, even after it starts (to fix the room, say), or cancel it. The cover can only change before approval. Rescheduling or cancelling notifies everyone going.
  • Sharing: the link preview is an event card with a calendar tile. "Copy link" works everywhere, and "Share" shows up only where there is a system share sheet.
  • Privacy: events, covers and .ics files stay behind login, like every other commit. The personal data export includes hosted events and attendances.

Two migrations (events, event_attendees) and new routes under commits/{commit}/event (PATCH, .ics, attendance, cancellation) plus event-covers/{event}. Every check lives in form requests and App\Rules, and actions follow CRUD by design (CreateEventAttendance, CreateEventCancellation, UpdateEventCover, …). Image optimization moved from CreateCommitImages to App\Services\Images, so commit images and covers share it.

Screenshots

Log Expanded Create Moderation
image image image image
Log Expanded Add to calendar Create Link preview
image image image image image

Testing

  • pest, PHPStan, Pint, Rector, type coverage, lint, types and build all pass.
  • Checked by hand on desktop and mobile: create, going and un-going, expand and collapse, the calendar menu, editing, moderation, and signed-out access.

@vtlxx
vtlxx force-pushed the feat/events branch 5 times, most recently from 3e33bca to cf5fbfa Compare October 16, 2026 14:13
A commit can carry an event: title, start and end in the author's timezone, and an
on-site, online or hybrid format with the matching venue or stream fields, plus an
optional cover image.

- Event card in the log expands in place into the full event; moderators see it expanded
- Going button with optimistic count; attendees are notified when the event is rescheduled or cancelled
- Add to calendar: .ics download, Apple Calendar, Google and Outlook links
- Host can edit details or cancel; the cover can change only before approval
- Open Graph image for event commits; copy link, and share when the system share sheet exists
- Events and covers stay behind login like every other commit
- All checks live in form requests and App\Rules, with feature and unit tests
@xHeaven

xHeaven commented Oct 18, 2026

Copy link
Copy Markdown
Member

@nunomaduro This PR touches database migrations, new services, and authentication / permissions. Could you take a look?

@rohitsasi720

Copy link
Copy Markdown
Contributor

Nice work on this! I opened an RFC for nearly the same thing (#1440) before I spotted this PR, so I've closed it as a duplicate.

Two small ideas from it that might fit on top of this, if you and the maintainers want them:

  1. A reminder on /dev/null itself. An on-site notification about 5 minutes before the start, only for people who tapped Going, for anyone who doesn't add the event to their calendar. It's opt-in, so it shouldn't run into the concerns from feat: let streamers notify their followers when they go live #687.
  2. Going live automatically. For an online event with a YouTube or Twitch link, turn on the host's Go live status at the start time, so the Live ring and "Live now" show up without an extra click.

Happy to help with either as a follow-up PR once this lands.

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.

3 participants