Skip to content

feat: split /events into upcoming and past pages#2508

Open
mroderick wants to merge 1 commit intocodebar:masterfrom
mroderick:feature/events-upcoming-past
Open

feat: split /events into upcoming and past pages#2508
mroderick wants to merge 1 commit intocodebar:masterfrom
mroderick:feature/events-upcoming-past

Conversation

@mroderick
Copy link
Collaborator

@mroderick mroderick commented Feb 25, 2026

The motivation for this PR that when a user wants to know about upcoming events, they not very likely to be interested in past events, yet the /events page would still spend a lot of effort (and user time) on fetching and rendering past events.

The PR splits the /events route into two routes /events/upcoming and /events/past, and adds pagination to each of these.

Summary

  • /events now redirects to /events/upcoming
  • /events/upcoming shows upcoming events (paginated at 20)
  • /events/past shows past events (paginated at 20, sorted descending by date)
  • Updated navigation dropdown with "Upcoming Events" and "Past Events" items
  • Updated footer and dashboard links to point to upcoming_events_path

Test Plan

  • Visit /events - should redirect to /events/upcoming
  • Visit /events/upcoming - should show upcoming events
  • Visit /events/past - should show past events
  • Verify pagination works (20 events per page)
  • Verify navigation menu works correctly

Open questions

  • Is 20 events per page too many? Would it make more sense to show 10?

- /events now redirects to /events/upcoming
- /events/upcoming shows upcoming events (paginated at 20)
- /events/past shows past events (paginated at 20, sorted descending)
- Updated navigation with Upcoming Events and Past Events items
- Updated footer and dashboard links to point to upcoming_events_path
- Renamed index.html.haml to upcoming.html.haml
- Updated tests for new behavior
@mroderick mroderick marked this pull request as ready for review February 25, 2026 08:56
Copy link
Contributor

@KimberleyCook KimberleyCook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niiiiice 👏

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.

2 participants