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

feat: new App install flow #11975

Merged
merged 36 commits into from Apr 10, 2024
Merged

feat: new App install flow #11975

merged 36 commits into from Apr 10, 2024

Conversation

ThyMinimalDev
Copy link
Contributor

@ThyMinimalDev ThyMinimalDev commented Oct 18, 2023

What does this PR do?

Fixes # (issue)

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is ab UI/UX design document, please, share it here.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Mandatory Tasks

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

Checklist

  • I haven't read the contributing guide
  • My code doesn't follow the style guidelines of this project
  • I haven't commented my code, particularly in hard-to-understand areas
  • I haven't checked if my PR needs changes to the documentation
  • I haven't checked if my changes generate no new warnings
  • I haven't added tests that prove my fix is effective or that my feature works
  • I haven't checked if new and existing unit tests pass locally with my changes

@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)
api ❌ Failed (Inspect) Apr 10, 2024 4:09pm
dev 🔄 Building (Inspect) Visit Preview 💬 Add feedback Apr 10, 2024 4:09pm
6 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 4:09pm
cal ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 4:09pm
cal-demo ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 4:09pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 4:09pm
qa ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 4:09pm
ui ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2024 4:09pm

@CLAassistant
Copy link

CLAassistant commented Oct 18, 2023

CLA assistant check
All committers have signed the CLA.

@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.

@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)
/apps/installation/[[...step]] 166.42 KB 395.07 KB 112.88%

Sixty-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)
/apps/[slug]/[...pages] 584.31 KB 812.95 KB 232.27% (🟢 -0.24%)
/apps/categories 253.8 KB 482.44 KB 137.84% (🟢 -0.40%)
/auth/forgot-password/[id] 105.61 KB 334.25 KB 95.50% (🟢 -0.22%)
/availability 461.67 KB 690.31 KB 197.23% (🟢 -0.20%)
/availability/[schedule] 407.8 KB 636.45 KB 181.84% (🟢 -0.40%)
/bookings/[status] 321.54 KB 550.19 KB 157.20% (🟢 -0.40%)
/enterprise 253.85 KB 482.5 KB 137.86% (🟢 -0.40%)
/event-types 553.59 KB 782.23 KB 223.50% (🟢 -0.34%)
/event-types/[type] 432.58 KB 661.23 KB 188.92% (🟢 -0.32%)
/getting-started/[[...step]] 405.45 KB 634.09 KB 181.17% (🟡 +0.33%)
/insights 472.26 KB 700.91 KB 200.26% (🟢 -0.40%)
/more 253.36 KB 482.01 KB 137.72% (🟢 -0.40%)
/settings/admin 259.65 KB 488.3 KB 139.51% (🟢 -0.40%)
/settings/admin/apps 272.72 KB 501.36 KB 143.25% (🟢 -0.40%)
/settings/admin/apps/[category] 272.7 KB 501.35 KB 143.24% (🟢 -0.40%)
/settings/admin/flags 263.45 KB 492.09 KB 140.60% (🟢 -0.40%)
/settings/admin/impersonation 259.95 KB 488.59 KB 139.60% (🟢 -0.40%)
/settings/admin/oAuth 271.66 KB 500.3 KB 142.94% (🟢 -0.40%)
/settings/admin/orgMigrations/_OrgMigrationLayout 248.24 KB 476.88 KB 136.25% (🟢 -0.40%)
/settings/admin/orgMigrations/moveTeamToOrg 297.72 KB 526.37 KB 150.39% (🟢 -0.40%)
/settings/admin/orgMigrations/moveUserToOrg 316.84 KB 545.49 KB 155.85% (🟢 -0.40%)
/settings/admin/orgMigrations/removeTeamFromOrg 297.48 KB 526.13 KB 150.32% (🟢 -0.40%)
/settings/admin/orgMigrations/removeUserFromOrg 297.49 KB 526.14 KB 150.33% (🟢 -0.40%)
/settings/admin/organizations 261.53 KB 490.17 KB 140.05% (🟢 -0.40%)
/settings/admin/organizations/[id]/edit 260.2 KB 488.84 KB 139.67% (🟢 -0.40%)
/settings/admin/users 262.29 KB 490.94 KB 140.27% (🟢 -0.40%)
/settings/admin/users/[id]/edit 390.55 KB 619.19 KB 176.91% (🟢 -0.40%)
/settings/admin/users/add 390.21 KB 618.86 KB 176.82% (🟢 -0.40%)
/settings/billing 259.85 KB 488.5 KB 139.57% (🟢 -0.40%)
/settings/developer/api-keys 264.22 KB 492.87 KB 140.82% (🟢 -0.40%)
/settings/developer/webhooks 264.35 KB 493 KB 140.86% (🟢 -0.40%)
/settings/developer/webhooks/[id] 265.8 KB 494.44 KB 141.27% (🟢 -0.25%)
/settings/developer/webhooks/new 265.86 KB 494.51 KB 141.29% (🟢 -0.25%)
/settings/my-account/appearance 312.22 KB 540.87 KB 154.53% (🟢 -0.40%)
/settings/my-account/conferencing 272.29 KB 500.94 KB 143.13% (🟢 -0.24%)
/settings/my-account/general 347.77 KB 576.41 KB 164.69% (🟢 -0.40%)
/settings/my-account/out-of-office 264.83 KB 493.48 KB 140.99% (🟢 -0.40%)
/settings/my-account/profile 402.86 KB 631.5 KB 180.43% (🟢 -0.40%)
/settings/organizations/[id]/onboard-members 170.91 KB 399.56 KB 114.16% (🟢 -0.16%)
/settings/organizations/appearance 283.37 KB 512.02 KB 146.29% (🟢 -0.40%)
/settings/organizations/billing 259.89 KB 488.53 KB 139.58% (🟢 -0.40%)
/settings/organizations/dsync 330.01 KB 558.66 KB 159.62% (🟢 -0.28%)
/settings/organizations/general 347.75 KB 576.4 KB 164.68% (🟢 -0.40%)
/settings/organizations/members 428.51 KB 657.15 KB 187.76% (🟢 -0.21%)
/settings/organizations/platform/oauth-clients 261.53 KB 490.18 KB 140.05% (🟢 -0.40%)
/settings/organizations/platform/oauth-clients/create 261.05 KB 489.69 KB 139.91% (🟢 -0.40%)
/settings/organizations/privacy 265.24 KB 493.88 KB 141.11% (🟢 -0.40%)
/settings/organizations/profile 394.53 KB 623.17 KB 178.05% (🟢 -0.40%)
/settings/organizations/sso 270.5 KB 499.15 KB 142.61% (🟢 -0.40%)
/settings/organizations/teams/other 260.72 KB 489.36 KB 139.82% (🟢 -0.40%)
/settings/organizations/teams/other/[id]/appearance 272.38 KB 501.03 KB 143.15% (🟢 -0.40%)
/settings/organizations/teams/other/[id]/members 267.19 KB 495.83 KB 141.67% (🟢 -0.40%)
/settings/organizations/teams/other/[id]/profile 466.14 KB 694.79 KB 198.51% (🟢 -0.30%)
/settings/security/impersonation 265.03 KB 493.68 KB 141.05% (🟢 -0.40%)
/settings/security/password 302.5 KB 531.14 KB 151.76% (🟢 -0.40%)
/settings/security/sso 269.9 KB 498.55 KB 142.44% (🟢 -0.40%)
/settings/security/two-factor-auth 268.48 KB 497.13 KB 142.04% (🟢 -0.40%)
/settings/teams 259.39 KB 488.03 KB 139.44% (🟢 -0.40%)
/settings/teams/[id]/appearance 272.37 KB 501.01 KB 143.15% (🟢 -0.40%)
/settings/teams/[id]/billing 259.89 KB 488.54 KB 139.58% (🟢 -0.40%)
/settings/teams/[id]/members 379.14 KB 607.78 KB 173.65% (🟢 -0.40%)
/settings/teams/[id]/onboard-members 170.09 KB 398.74 KB 113.92% (🟢 -0.15%)
/settings/teams/[id]/profile 466.98 KB 695.63 KB 198.75% (🟢 -0.30%)
/settings/teams/new 197.23 KB 425.87 KB 121.68% (🟢 -0.25%)
/signup 177.7 KB 406.34 KB 116.10% (🟢 -0.25%)
/teams 253.58 KB 482.23 KB 137.78% (🟢 -0.40%)
/upgrade 253.71 KB 482.35 KB 137.81% (🟢 -0.40%)
/workflows 284.85 KB 513.5 KB 146.71% (🟢 -0.40%)
/workflows/[workflow] 407.04 KB 635.68 KB 181.62% (🟢 -0.40%)
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

✅ 309 Passing - ⚠️ 17 Flaky

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

(Last updated on 04/10/2024 04:23:30pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 954d8cc

Started: 04/10/2024 04:18:58pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking-pages.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
pro user -- legacy Time slots should be reserved when selected
Retry 1Initial Attempt
0% (0) 0 / 303 runs
failed over last 7 days
10.89% (33) 33 / 303 runs
flaked over last 7 days

📄   apps/web/playwright/login.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
user can login & logout succesfully -- future login flow user & logout using dashboard
Retry 2Retry 1Initial Attempt
5.69% (17) 17 / 299 runs
failed over last 7 days
23.75% (71) 71 / 299 runs
flaked over last 7 days

📄   apps/web/playwright/teams.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Teams - NonOrg -- future Team Onboarding Invite Members
Retry 1Initial Attempt
9.84% (31) 31 / 315 runs
failed over last 7 days
28.89% (91) 91 / 315 runs
flaked over last 7 days

📄   apps/web/playwright/event-types.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
Event Types tests -- legacy user Different Locations Tests can add Attendee Phone Number location and book with it
Retry 1Initial Attempt
0% (0) 0 / 304 runs
failed over last 7 days
0.99% (3) 3 / 304 runs
flaked over last 7 days
Event Types tests -- legacy user Different Locations Tests Can add Organzer Phone Number location and book with it
Retry 1Initial Attempt
0% (0) 0 / 304 runs
failed over last 7 days
1.32% (4) 4 / 304 runs
flaked over last 7 days

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

Top 1 Common Error Messages

null

8 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
0.33% (1) 1 / 306 run
failed over last 7 days
62.75% (192) 192 / 306 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-169.03% (-191) -191 / 113 runs
failed over last 7 days
169.03% (191) 191 / 113 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-169.03% (-191) -191 / 113 runs
failed over last 7 days
169.03% (191) 191 / 113 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1Initial Attempt
-168.14% (-190) -190 / 113 runs
failed over last 7 days
169.03% (191) 191 / 113 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when configured with 'auto' theme using Embed API
Retry 1Initial Attempt
-170.54% (-191) -191 / 112 runs
failed over last 7 days
170.54% (191) 191 / 112 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-170.54% (-191) -191 / 112 runs
failed over last 7 days
170.54% (191) 191 / 112 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-170.54% (-191) -191 / 112 runs
failed over last 7 days
170.54% (191) 191 / 112 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-170.54% (-191) -191 / 112 runs
failed over last 7 days
170.54% (191) 191 / 112 runs
flaked over last 7 days

📄   apps/web/playwright/organization/organization-invitation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization Email not matching orgAutoAcceptEmail nonexisting user invited to a Team inside organization
Retry 1Initial Attempt
2.22% (7) 7 / 315 runs
failed over last 7 days
15.56% (49) 49 / 315 runs
flaked over last 7 days

📄   apps/web/playwright/integrations-stripe.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Stripe integration Can book a paid booking
Retry 1Initial Attempt
2.29% (7) 7 / 306 runs
failed over last 7 days
33.99% (104) 104 / 306 runs
flaked over last 7 days

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Test preview should return correct route
Retry 1Initial Attempt
0% (0) 0 / 307 runs
failed over last 7 days
31.92% (98) 98 / 307 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/preview.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Preview Preview - embed-core should load
Retry 1Initial Attempt
0% (0) 0 / 308 runs
failed over last 7 days
34.09% (105) 105 / 308 runs
flaked over last 7 days

View Detailed Build Results


@keithwillcode
Copy link
Contributor

Reopening this since #14077 was merged into this branch.

@keithwillcode keithwillcode reopened this Apr 9, 2024
@keithwillcode keithwillcode marked this pull request as ready for review April 10, 2024 14:58
@dosubot dosubot bot added app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar ✨ feature New feature or request labels Apr 10, 2024
@keithwillcode keithwillcode requested review from a team April 10, 2024 14:59
@keithwillcode keithwillcode enabled auto-merge (squash) April 10, 2024 14:59
Copy link
Contributor

@joeauyeung joeauyeung left a comment

Choose a reason for hiding this comment

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

Since most of these changes were tested and approved in #14077 I feel good about approving this PR.

@keithwillcode keithwillcode merged commit 6d5d2a1 into main Apr 10, 2024
38 of 40 checks passed
@keithwillcode keithwillcode deleted the new-app-install-flow branch April 10, 2024 16:24
@zomars zomars added the high-risk Requires approval by Foundation team label Apr 11, 2024
exception added a commit that referenced this pull request Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin api area: API, enterprise API, access token, OAuth app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar consumer core area: core, team members only devops ❗️ .env changes contains changes to env variables ✨ feature New feature or request high-risk Requires approval by Foundation team Medium priority Created by Linear-GitHub Sync ❗️ migrations contains migration files platform Anything related to our platform plan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants