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

Retroactive event calendar #70

Merged
merged 3 commits into from
May 3, 2024
Merged

Conversation

Alvinn8
Copy link
Contributor

@Alvinn8 Alvinn8 commented Apr 25, 2024

It works, and can display events from weeks in the past and future. But the solution isn't the prettiest. It was a bit tricky to get the relative week numbers the calendar component uses to line up when the events change. The calendar component is now instead fed with events from only one week at the time, and then always displays the current widgetWeekGroups instead of calculating which events to show and not. It might also be perceived as slower when viewing future events as they are no longer reused and instead fetched per week.

Feel free to suggest or request changes!

@Alvinn8 Alvinn8 requested a review from foodelevator April 25, 2024 19:17
Copy link
Member

@foodelevator foodelevator left a comment

Choose a reason for hiding this comment

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

Sorry for taking so long to review this! Except for these two tiny things I everything looks great!

src/components/Calypso.js Outdated Show resolved Hide resolved
src/components/Calypso.js Outdated Show resolved Hide resolved
@foodelevator foodelevator merged commit c5ba93d into master May 3, 2024
1 check passed
@foodelevator foodelevator deleted the alvin/retroactive-calendar branch May 3, 2024 22:39
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