-
Notifications
You must be signed in to change notification settings - Fork 10.3k
feat: add availabilityLoaded embed event #21350
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
base: main
Are you sure you want to change the base?
feat: add availabilityLoaded embed event #21350
Conversation
@kart1ka is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Graphite Automations"Add consumer team as reviewer" took an action on this PR • (05/16/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add community label" took an action on this PR • (05/16/25)1 label was added to this PR based on Keith Williams's automation. |
This PR is being marked as stale due to inactivity. |
@kart1ka Why is it draft. Is something pending? Looks to be going into the right direction to me. |
@hariombalhara some merge conflicts are remaining. Everything else is done. I will resolve them and make it ready to review. |
WalkthroughAdds a new embed event "availabilityLoaded" with payload { eventId, eventSlug, eventTitle }. The EventDataMap type was extended to include this event. useSchedule (and its argument types) now accepts an optional eventTitle and emits "availabilityLoaded" via sdkActionManager after successful schedule queries (API v2 and legacy). The eventTitle parameter is threaded through useScheduleForEvent, EmailEmbed, and BookerWebWrapper. The playground and React inline code register one-time listeners that log the payload and unregister themselves. Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope functional code changes were identified. Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 180000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
What does this PR do?
availabilityLoaded
when all the availability for a booking page has loaded in embed #21045 (GitHub issue number)Visual Demo (For contributors especially)
https://www.loom.com/share/43f2287a67404fc6a1ec6b9a63a9a0ef?sid=8e20798d-6832-41ca-9d87-e1171e1649f4
Mandatory Tasks (DO NOT REMOVE)
Summary by mrge
Added a new "availabilityLoaded" embed event that fires when event availability data is loaded, providing event ID, slug, and title. This allows consumers to react when availability is ready in embedded components.