hackgvl / hackgreenville-com

HackGreenville's Website
https://hackgreenville.com
MIT License
16 stars 15 forks source link

Center the Calendar to the Current Week #253

Closed allella closed 2 weeks ago

allella commented 1 month ago

The HG calendar doesn't move to the current week, which can be a bit inconvenient or confusing.

We should explore it's it's possible to automatically center / jump the calendar to the current date / week? Maybe with https://fullcalendar.io/docs/Calendar-gotoDate

allella commented 4 weeks ago

Perhaps the solution to auto-center / jump to the current day and week while in the dayGridMonth view is more like this solution https://stackoverflow.com/a/48100619

allella commented 3 weeks ago

@all-contributors please add @MhdGhaithAlhelwany for code

allcontributors[bot] commented 3 weeks ago

@allella

We had trouble processing your request. Please try again later.

allella commented 3 weeks ago

@all-contributors please add @MhdGhaithAlhelwany for code

allcontributors[bot] commented 3 weeks ago

@allella

Could not find the user MhdGhaithAlhelwany on github.

allella commented 3 weeks ago

Reopening as Bogdan found in #261 that the Next and Previous buttons stopped working.

bogdankharchenko commented 3 weeks ago

@allella should we close this now?

allella commented 3 weeks ago

Was something re-implemented? Having it center on the current week would still be nice.

JSn1nj4 commented 2 weeks ago

@allella I can take this on if you want. Do you just want it scrolled into view on page load?

allella commented 2 weeks ago

It just seems like centering / focusing on the current week would be a nice improvement. Though, it's not a critical feature if it's going to be hard.

We had a PR that did the job, but it wouldn't uncenter when next or previous arrows were clicked, so we rolled that PR back.

JSn1nj4 commented 2 weeks ago

So is the summary of the desired behavior...

If so, that doesn't sound like it'll be too hard.

I saw your note on a function Fullcalendar may have built in. If that doesn't work out, I know roughly how to do this vanilla.

allella commented 2 weeks ago

@JSn1nj4 yes that sounds good.