Skip to content

Conversation

@portdeveloper
Copy link
Member

Add some buttons to add the events to the calendar.

- 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
@vercel
Copy link

vercel bot commented Oct 15, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
devconnect-buidlguidl Ready Ready Preview Comment Oct 16, 2025 8:10am

@portdeveloper
Copy link
Member Author

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
Copy link
Member

@carletex carletex left a 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

@carletex carletex merged commit e29d501 into main Oct 16, 2025
2 of 3 checks passed
@carletex carletex deleted the add-calendar-feature branch October 16, 2025 08:10
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.

3 participants