cal.com
cal.com copied to clipboard
fix: embed non-transparent dark background on success page
What does this PR do?
Makes sure that embed is detected correctly on success page which would automatically remove color-scheme dark on that page.
Also, fixes a possible case of theme flicker.
Fixes #9084 Fixes #9173 Loom for bug demo
Type of change
- Bug fix (non-breaking change which fixes an issue)
How should this be tested?
See loom
Followup
- [ ] A testcase for this https://github.com/calcom/cal.com/issues/9086. Would pick it up on dedicated automation day.
Checklist
- I haven't added tests that prove my fix is effective or that my feature works
CAL-1752 Dark instead of transparent background on success page in embed.
It would look really bad in an inline embed. https://www.loom.com/share/da6707443dde43efb9f536ed4a7a612f
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| cal | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 6, 2023 11:53pm |
| ui | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 6, 2023 11:53pm |
| web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 6, 2023 11:53pm |
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| api | ⬜️ Ignored (Inspect) | Visit Preview | Jun 6, 2023 11:53pm |
📦 Next.js Bundle Analysis for @calcom/web
This analysis was generated by the Next.js Bundle Analysis action. 🤖
Nine Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
| Page | Size (compressed) | First Load | % of Budget (350 KB) |
|---|---|---|---|
/[user]/book |
253.37 KB |
404.15 KB | 115.47% (🟡 +0.27%) |
/apps/installed/[category] |
276.17 KB |
426.96 KB | 121.99% (🟡 +0.19%) |
/d/[link]/book |
253.01 KB |
403.8 KB | 115.37% (🟡 +0.27%) |
/getting-started/[[...step]] |
425.47 KB |
576.25 KB | 164.64% (🟡 +0.23%) |
/new-booker/[user]/[type] |
289.06 KB |
439.85 KB | 125.67% (🟡 +0.27%) |
/new-booker/d/[link]/[slug] |
289.06 KB |
439.85 KB | 125.67% (🟡 +0.27%) |
/new-booker/team/[slug]/[type] |
289.07 KB |
439.85 KB | 125.67% (🟡 +0.27%) |
/settings/my-account/calendars |
250.88 KB |
401.66 KB | 114.76% (🟡 +0.23%) |
/team/[slug]/book |
253.02 KB |
403.8 KB | 115.37% (🟡 +0.27%) |
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 "+/-
Current Playwright Test Results Summary
✅ 106 Passing - ❌ 1 Failing - ⚠️ 1 Flaky
Run may still be in progress, this comment will be updated as current testing workflow or job completes...
(Last updated on 06/06/2023 11:50:44pm UTC)
Run Details
Running Workflow PR Update on Github Actions
Commit: fddacc5d7d19a5fbab5760997a2940dff0f2e803
Started: 06/06/2023 11:49:05pm UTC
❌ Failures
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Failure
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Popup Tests should be able to reschedule
Retry 2 • Retry 1 • Initial Attempt Error: calNamespace is not defined
|
4.81% (13)13 / 270 runsfailed over last 7 days |
95.19% (257)257 / 270 runsflaked over last 7 days |
⚠️ Flakes
📄 apps/web/playwright/booking-seats.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Reschedule for booking with seats -- old-booker Should reschedule booking with seats and if everyone rescheduled it should be deleted
Retry 1 • Initial Attempt |
1.49% (6)6 / 402 runsfailed over last 7 days |
11.19% (45)45 / 402 runsflaked over last 7 days |