opensearch-project / project-website

The source to opensearch.org
https://opensearch.org
BSD 3-Clause "New" or "Revised" License
40 stars 479 forks source link

[Feature Request] Paginate Events #3209

Open nateynateynate opened 2 months ago

nateynateynate commented 2 months ago

Is your feature request related to a problem? Please describe

We're prepping to populate the pre-scheduled events in our events calendars all the way into 2025 or so via automation. In testing, the number of events added to the events page caused it to scroll for pages and pages. We need to implement pagination and/or filtering for the events listing pages.

Describe the solution you'd like to see

A simple pagination implemented like on the blog page would be great.

Describe alternatives you've considered

No response

Additional context

No response

kaimmej commented 2 months ago

Hi Nate, I am not 100% following - Could you elaborate?

Calendar pagination: image

Events page - no pagination image

Questions:

nateynateynate commented 2 months ago

Ahh thanks - I didn't clarify. The #3160 Meetup integration is going to create a huge number of events way into the future. When testing, the list view for those doesn't stop at the end of the month, so i ended up with this: image

I wanted to implement pagination for the list view of events so I didn't get that huge wall of cards.

nateynateynate commented 2 months ago
  • are you asking for the events page, to return a limited number of event cards? And beyond that number, we paginate the rest of the results into other pages?

This one. Yes. 8-)

krisfreedain commented 2 months ago

I think similar to how we paginate the blog: Screenshot 2024-08-23 at 9 01 36 AM

For this, we'll want to come up with how to paginate. The blog seems to have 15 in its list (featured + 14 links) on each page. I imagine that's the easiest way to roll this out. But, would we want something else for this date-driven area of the site?

nateynateynate commented 2 months ago

For this, we'll want to come up with how to paginate. The blog seems to have 15 in its list (featured + 14 links) on each page. I imagine that's the easiest way to roll this out. But, would we want something else for this date-driven area of the site?

Paginating by month also makes sense. Any strong preference?

krisfreedain commented 2 months ago

I wonder if pagination by week would be more manageable for the audience. I was thinking about this recently - would be really nice to have a 'week's view' on Monday morning so everyone know what meetings/triage are happening that week. This could be a way to do so.