Repository navigation
feat: Add ICS Feed support - #13337
Conversation
|
💵 To receive payouts, sign up on Algora, link your Github account and connect with Stripe/Alipay. |
|
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
|
|
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
|
awesome initiative this will come handy for many people using ics |
| // for Apple's Travel Time feature only (for now) | ||
| const getTravelDurationInSeconds = (vevent: ICAL.Component) => { | ||
| const travelDuration: ICAL.Duration = vevent.getFirstPropertyValue("x-apple-travel-duration"); | ||
| if (!travelDuration) return 0; | ||
|
|
||
| // we can't rely on this being a valid duration and it's painful to check, so just try and catch if anything throws | ||
| try { | ||
| const travelSeconds = travelDuration.toSeconds(); | ||
| // integer validation as we can never be sure with ical.js | ||
| if (!Number.isInteger(travelSeconds)) return 0; | ||
| return travelSeconds; | ||
| } catch (e) { | ||
| return 0; | ||
| } | ||
| }; | ||
|
|
||
| const applyTravelDuration = (event: ICAL.Event, seconds: number) => { | ||
| if (seconds <= 0) return event; | ||
| // move event start date back by the specified travel time | ||
| event.startDate.second -= seconds; | ||
| return event; | ||
| }; |
There was a problem hiding this comment.
not sure how much this is actually needed? it certainly doesn't hurt though
emrysal
left a comment
There was a problem hiding this comment.
Tested, code wise this looks really good too; Happy to approve - Thank you!
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
|
So cool! 😎 |
* feat: ics-feed proof of concept pt. 1 * feat: ics-feedcalendar fixes * fix: ics feed i18n and icon issues * fix: remove debug log * chore: revert yarn.lock * fix: remove debug log --------- Co-authored-by: Omar López <zomars@me.com> Co-authored-by: Alex van Andel <me@alexvanandel.com>
|
Really cool! Is this already live on the cal.com version yet? I can't seem to find it... |
|
Someone added the labels for milestone v3.9, v3.8. So when 3.9 is out for sure this seems included! |

What does this PR do?
Adds an "ICS Feed" app to the app store that allows the linking of ICS Feeds for usage via
getAvailabilityFixes #3167
/claim #3167
Type of change
How should this be tested?
Criteria:
There's an ICS feed of German holidays in #3167 that I used for testing.