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

feat: Calendar Events implemented. #174

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

develoopeer
Copy link

  • Ics files widely used format to represent calendar info parsed via https://github.com/arran4/golang-ical library. It is super lightweight and can parse ics files from different sources. Google calendar, Trello and local files were tested by me.

  • Events in calendar will be highlighted with color-primary color, and have hover text.

  • If you have more than 1 event at the same day for one day, only first one will be displayed.
    Complete version looks like this:
    Screencast 2024-07-28 23_39_46 (1)

  • Icsurl option added to yaml configuration

- type: calendar
  icsurl: https://testsite/validurl.ics

For example to grab url from google calendar you need to make your calendar public, click on calendar settings and get url from ics field. Instruction. Same goes for Trello

  • Events will be updated every hour, because of default Calendar Widget Initialize function declared with withCacheOnTheHour() function. This time can be increased or decreased, but i don`t think it is necessary.
  • I feel like icsurl option can be replaced with icsurls option, to allow you gather events from different sources. This behavior can be simply implemented, but i don`t know is it really useful. I need your opinion for that.

@develoopeer develoopeer marked this pull request as draft August 3, 2024 10:49
@develoopeer develoopeer marked this pull request as ready for review September 29, 2024 22:11
@develoopeer
Copy link
Author

Hello @svilenmarkov. Will this PR be merged in the near future?

@svilenmarkov
Copy link
Member

@develoopeer Hey, yeah sorry, calendar events were planned for v0.7.0 so I'll get it merged before that comes out, just wanted to make a couple of changes that I haven't had the chance to work on yet.

@develoopeer
Copy link
Author

Ooh i got it. I will resolve emerging conflicts in this PR in near future. Hope v0.7.0 will be coming out soon.

develoopeer and others added 2 commits November 13, 2024 22:19
- Bug with ics events, from another years fixed
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