Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Adds ability to see multiday events in sidebar #609

Merged
merged 6 commits into from
Oct 29, 2024

Conversation

brrusselburg
Copy link
Contributor

@brrusselburg brrusselburg commented Sep 16, 2024

(This PR refers to the interactivity between the discourse-calendar plugin and the right-sidebar-blocks component.)

As of now, only the first day of an event gets listed in the Upcoming Events sidebar. So if the event is from 10-22-2024 to 10-26-2024, only the 22nd would have the event on it. On the 23rd, you wouldn't know the event was still happening.

Before:
Screenshot 2024-10-28 at 1 47 38 PM
(Note that this screenshot was taken on October 28th, and the event's start date shows up)

After:
Screenshot 2024-10-28 at 1 36 43 PM
(Taken on the same day, so only the remaining event days show up)

I tested this with both single-day events and multi-day events. We might need to add a limit on the number of results we get back. (If someone throws in a month-long event, it'll get real hairy real quick.) I have some ideas, but I'm not positive of the best place to put that limiter. Ideas welcome!

@brrusselburg brrusselburg force-pushed the br/multiday_event branch 2 times, most recently from 06452ef to 5db5fcf Compare October 22, 2024 19:46
@brrusselburg brrusselburg marked this pull request as ready for review October 23, 2024 22:14
@brrusselburg brrusselburg merged commit 55004c2 into main Oct 29, 2024
6 checks passed
@brrusselburg brrusselburg deleted the br/multiday_event branch October 29, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants