-
Notifications
You must be signed in to change notification settings - Fork 2
Add calendar feature #16
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
Conversation
- Add iCalendar (.ics) generation utility functions - Add "Add to Calendar" button to individual session modals - Add "Add All Events to Calendar" button to schedule view - Support for importing events into Google Calendar, Apple Calendar, Outlook, etc. - Properly handle timezone conversion (Argentina time to UTC) - Style buttons to match page theme with semi-transparent white backgrounds
- Replace data URI with direct ICS download for better compatibility - Add dropdown menu to individual events (Google Calendar or ICS options) - Simplify "Add all events" button to underlined text link - Add auto-dismissing tooltip on first event (5 second timeout) - Update calendar utility functions to use streamlined approach
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Converted this into a draft for a while when I'm making some changes. |
- Use TZID format instead of UTC for ICS files - Add VTIMEZONE block to properly define Argentina timezone - Fix Google Calendar URL to use local time with ctz parameter - Rename toISODateString to formatDateTimeForICS for clarity - Ensures events display correctly regardless of user's timezone
- Extract buildEventData() helper function - Remove duplicate event data generation logic - Single source of truth for description, title, location, uid - Reduces code size and improves maintainability
- Add try-catch blocks to all calendar operations - Validate session data before processing - Protect DOM manipulation with try-finally in openICS - Detect and handle popup blockers for Google Calendar - Show user-friendly error messages with fallback options - Log all errors to console for debugging - Prevent app crashes from malformed data or failed operations
carletex
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Port, looking great!!
Removed the tooltip since I wasn't sold on it and tweaked some styling stuff (some of it existing on previous code)
Merging
Add some buttons to add the events to the calendar.