feat: routing forms integration for booker atom#18726
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 2 Skipped Deployments
|
Graphite Automations"Add platform team as reviewer" took an action on this PR • (01/17/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (01/24/25)1 reviewer was added to this PR based on Keith Williams's automation. "Add ready-for-e2e label" took an action on this PR • (01/29/25)1 label was added to this PR based on Keith Williams's automation. |
| rest.teamId ?? false, | ||
| rest.usernameList, | ||
| rest.routedTeamMemberIds, | ||
| rest.skipContactOwner, |
There was a problem hiding this comment.
we are missing shouldServeCache here, no?
There was a problem hiding this comment.
ah yes, will fix this one
There was a problem hiding this comment.
salesforce related query param is also missing.
There was a problem hiding this comment.
I don't see the salesforce parameter in the schema of the trpc endpoint for slots here packages/trpc/server/routers/viewer/slots/types.ts is it used at all ?
There was a problem hiding this comment.
Added some comments to explain why some parameters are left out here
…success-for-platform' into remove-redirect-on-success-for-platform
|
No dependency changes detected. Learn more about Socket for GitHub ↗︎ 👍 No dependency changes detected in pull request |
| "text-default flex min-h-full w-full flex-col items-center", | ||
| layout === BookerLayouts.MONTH_VIEW ? "overflow-visible" : "overflow-clip" | ||
| layout === BookerLayouts.MONTH_VIEW ? "overflow-visible" : "overflow-clip", | ||
| `${customClassNames?.bookerWrapper}` |
There was a problem hiding this comment.
new custom class for booker, can be used to enable dark mode by given dark as a class
| fields: serializableForm.fields, | ||
| searchParams: new URLSearchParams(stringify(paramsToBeForwardedAsIs)), | ||
| searchParams: new URLSearchParams( | ||
| stringify({ ...paramsToBeForwardedAsIs, "cal.action": "eventTypeRedirectUrl" }) |
There was a problem hiding this comment.
new action param in order for Router atom to know what to do easily
| ); | ||
| // Use Routing Form Url To Display Correct Booker | ||
| const routingFormUrlProps = useGetRoutingFormUrlProps(props); | ||
| if (props?.routingFormUrl && routingFormUrlProps) { |
There was a problem hiding this comment.
if routing form prop is defined, ignore all other props and extract everything from the url
| new URLSearchParams({ | ||
| isBookingDryRun: "true", | ||
| Territory: "Europe", | ||
| action: "externalRedirectUrl", | ||
| }) |
There was a problem hiding this comment.
responses to the routing form
E2E results are ready! |
* update booker atom for routing form * remove logs * hide routing form properties from docs * fixup * add comments to explain why certain fields are not defined for routing forms in v2 * chore: routing for handler return team and org id * bump libraries platform * fixup! bump libraries platform * chore: get routing form params to embed * logs to remove * fix import path * chore: handle routing form params in booker embed * wip need router api v2 endpoint * resolve merge conflicts * fixup * fixup! Merge branch 'main' into remove-redirect-on-success-for-platform * fixup! fixup! Merge branch 'main' into remove-redirect-on-success-for-platform * router atom * fix libraries version * cleanup * remove console logs * bump libraries --------- Co-authored-by: Morgan Vernay <morgan@cal.com> Co-authored-by: Morgan <33722304+ThyMinimalDev@users.noreply.github.com>
What does this PR do?
Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
This can be tested in the examples app