Closed fabiodrg closed 2 years ago
Nvm. We have the lib locally within the project. I think it is fine to to extend the addEvent
to support a status that is either 'BUSY' or 'FREE' and set the 'TRANSP' accordingly.
One additional idea. Add a addSigEvent
in ics.js
that supports the new CalEvent
class?
One more thing. The ics.js
lib is setting the events class as public. This parameter is optional and I think we should remove it. When the events are imported to a calender service, if CLASS
is omitted, then the default for that event is used, which resembles the behaviour of going to Google Calendar and add an event manually.
All events generated via
ics.js
show as 'Free' in calendar clients and I think it is quite correct. It could be a configurable option of course, but I think by default all events associated to timetables and exams should appear as 'Busy'. A bill deadline is more a reminder, thus that should be fine to show as 'Free' (in my opinion). I guess it would be nice to tweak the default per extractor-basis and let the user customise if he needs to.After reading the standard and inspecting the code, the problem is the lib adding a
TRANSP
field onVEVENT
: https://github.com/nwcell/ics.js/blob/dfec67f37a3c267b3f97dd229c9b6a3521222794/ics.js#L187.I guess we cannot easily override this behaviour... The lib is no longer maintained either. Should we fork it? Consider using another lib?