Skip to content
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

fix: Add /embed route for booking/[uid] #11976

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

hariombalhara
Copy link
Member

@hariombalhara hariombalhara commented Oct 18, 2023

What does this PR do?

Support embedding /booking/[uid] page separately

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

Try to open an existing booking link with /embed in the end e.g. http://app.cal.local:3000/booking/iHFhuzFdQz3xxCXjHUjSke/embed. It was not required to be supported earlier but now it's supported as requested.

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Checklist

  • I haven't added tests that prove my fix is effective or that my feature works

@hariombalhara hariombalhara changed the title Add /embed route for booking/[uid] fix: Add /embed route for booking/[uid] Oct 18, 2023
@vercel
Copy link

vercel bot commented Oct 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 6:35pm
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 6:35pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 6:35pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 18, 2023 6:35pm
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2023 6:35pm
qa ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2023 6:35pm
ui ⬜️ Ignored (Inspect) Visit Preview Oct 18, 2023 6:35pm

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@zomars zomars added the core area: core, team members only label Oct 18, 2023
@hariombalhara hariombalhara marked this pull request as ready for review October 18, 2023 14:26
@@ -1100,7 +1100,7 @@ export async function getServerSideProps(context: GetServerSidePropsContext) {
if (!bookingInfoRaw) {
return {
notFound: true,
};
} as const;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as const is required for withEmbedSsr to have correct types.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

New Page Added

The following page was added to the bundle from the code in this PR:

Page Size (compressed) First Load % of Budget (350 KB)
/booking/[uid]/embed 180.94 KB 336.93 KB 96.27%

One Page Changed Size

The following page changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/apps/[slug]/[...pages] 535.91 KB 691.9 KB 197.69% (🟢 -0.16%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@deploysentinel
Copy link

deploysentinel bot commented Oct 18, 2023

Current Playwright Test Results Summary

✅ 162 Passing - ⚠️ 2 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 10/18/2023 06:42:18pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 4faf66c

Started: 10/18/2023 06:37:13pm UTC

⚠️ Flakes

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
3% (10) 10 / 333 runs
failed over last 7 days
36.64% (122) 122 / 333 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 2Retry 1Initial Attempt
9.04% (30) 30 / 332 runs
failed over last 7 days
89.46% (297) 297 / 332 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Member

@alishaz-polymath alishaz-polymath left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tested and works 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only High priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants