Skip to content

feat: cal.ai enterprise phone calls#14100

Merged
emrysal merged 35 commits intomainfrom
14094-calai-to-event-types
Mar 28, 2024
Merged

feat: cal.ai enterprise phone calls#14100
emrysal merged 35 commits intomainfrom
14094-calai-to-event-types

Conversation

@PeerRich
Copy link
Copy Markdown
Member

@PeerRich PeerRich commented Mar 15, 2024

  • Create an Org event type
  • Go to Cal.ai Tab
Screenshot 2024-03-27 at 7 51 13 PM

CleanShot 2024-03-22 at 23 36 46@2x

@PeerRich PeerRich linked an issue Mar 15, 2024 that may be closed by this pull request
@PeerRich PeerRich changed the title added empty layout feat: cal.ai enterprise Mar 15, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 15, 2024

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

@github-actions github-actions Bot added the ✨ feature New feature or request label Mar 15, 2024
@keithwillcode keithwillcode added the core area: core, team members only label Mar 15, 2024
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 15, 2024

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

4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 1:56pm
cal ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 1:56pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 1:56pm
qa ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 1:56pm

Comment thread apps/web/components/eventtype/AIEventController.tsx
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 15, 2024

📦 Next.js Bundle Analysis for @calcom/web

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

Ninety-six 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]/[type] 412.24 KB 601.83 KB 171.95% (🟡 +8.03%)
/[user]/[type]/embed 412.24 KB 601.84 KB 171.95% (🟡 +8.03%)
/apps 282.97 KB 472.57 KB 135.02% (🟡 +0.35%)
/apps/[slug] 301 KB 490.6 KB 140.17% (🟡 +0.37%)
/apps/[slug]/[...pages] 590.67 KB 780.27 KB 222.93% (🟡 +8.49%)
/apps/categories 260.83 KB 450.43 KB 128.69% (🟡 +0.32%)
/apps/categories/[category] 265.14 KB 454.74 KB 129.93% (🟡 +0.31%)
/apps/installed/[category] 285.11 KB 474.71 KB 135.63% (🟡 +0.39%)
/availability 468.66 KB 658.25 KB 188.07% (🟡 +8.61%)
/availability/[schedule] 415.04 KB 604.63 KB 172.75% (🟡 +8.40%)
/availability/troubleshoot 201.81 KB 391.41 KB 111.83% (🟡 +7.87%)
/booking/[uid] 222.14 KB 411.74 KB 117.64% (🟡 +8.16%)
/booking/[uid]/embed 222.14 KB 411.74 KB 117.64% (🟡 +8.16%)
/bookings/[status] 329.08 KB 518.68 KB 148.19% (🟡 +0.49%)
/d/[link]/[slug] 412.05 KB 601.65 KB 171.90% (🟡 +8.02%)
/enterprise 261.34 KB 450.94 KB 128.84% (🟡 +0.35%)
/event-types 561.8 KB 751.39 KB 214.68% (🟡 +0.59%)
/event-types/[type] 440.09 KB 629.69 KB 179.91% (🟡 +0.89%)
/getting-started/[[...step]] 407.16 KB 596.76 KB 170.50% (🟡 +0.28%)
/insights 479.97 KB 669.57 KB 191.30% (🟡 +0.37%)
/more 260.41 KB 450.01 KB 128.57% (🟡 +0.32%)
/org/[orgSlug] 266.81 KB 456.41 KB 130.40% (🟡 +8.17%)
/org/[orgSlug]/[user] 273.18 KB 462.78 KB 132.22% (🟡 +8.14%)
/org/[orgSlug]/[user]/[type] 412.44 KB 602.04 KB 172.01% (🟡 +8.02%)
/org/[orgSlug]/[user]/[type]/embed 412.46 KB 602.06 KB 172.02% (🟡 +8.02%)
/org/[orgSlug]/[user]/embed 273.2 KB 462.8 KB 132.23% (🟡 +8.14%)
/org/[orgSlug]/embed 266.83 KB 456.43 KB 130.41% (🟡 +8.16%)
/org/[orgSlug]/instant-meeting/team/[slug]/[type] 412.06 KB 601.66 KB 171.90% (🟡 +8.03%)
/org/[orgSlug]/team/[slug] 266.82 KB 456.42 KB 130.41% (🟡 +8.16%)
/org/[orgSlug]/team/[slug]/[type] 412.26 KB 601.86 KB 171.96% (🟡 +8.02%)
/settings/admin 267.39 KB 456.99 KB 130.57% (🟡 +0.35%)
/settings/admin/apps 281.24 KB 470.84 KB 134.53% (🟡 +0.41%)
/settings/admin/apps/[category] 281.23 KB 470.82 KB 134.52% (🟡 +0.42%)
/settings/admin/flags 271.2 KB 460.8 KB 131.66% (🟡 +0.35%)
/settings/admin/impersonation 267.69 KB 457.28 KB 130.65% (🟡 +0.36%)
/settings/admin/oAuth 279.44 KB 469.04 KB 134.01% (🟡 +0.36%)
/settings/admin/orgMigrations/_OrgMigrationLayout 256 KB 445.6 KB 127.31% (🟡 +0.36%)
/settings/admin/orgMigrations/moveTeamToOrg 305.27 KB 494.87 KB 141.39% (🟡 +8.42%)
/settings/admin/orgMigrations/moveUserToOrg 324.3 KB 513.9 KB 146.83% (🟡 +8.44%)
/settings/admin/orgMigrations/removeTeamFromOrg 305.04 KB 494.64 KB 141.33% (🟡 +8.41%)
/settings/admin/orgMigrations/removeUserFromOrg 305.05 KB 494.65 KB 141.33% (🟡 +8.42%)
/settings/admin/organizations 269.46 KB 459.06 KB 131.16% (🟡 +0.36%)
/settings/admin/organizations/[id]/edit 267.95 KB 457.55 KB 130.73% (🟡 +0.35%)
/settings/admin/users 270.29 KB 459.88 KB 131.40% (🟡 +0.37%)
/settings/admin/users/[id]/edit 398.03 KB 587.63 KB 167.89% (🟡 +8.42%)
/settings/admin/users/add 397.78 KB 587.38 KB 167.82% (🟡 +8.42%)
/settings/billing 267.59 KB 457.19 KB 130.63% (🟡 +0.35%)
/settings/developer/api-keys 272.07 KB 461.67 KB 131.91% (🟡 +0.35%)
/settings/developer/webhooks 272.13 KB 461.72 KB 131.92% (🟡 +0.36%)
/settings/developer/webhooks/[id] 273.09 KB 462.69 KB 132.20% (🟡 +0.35%)
/settings/developer/webhooks/new 273.13 KB 462.72 KB 132.21% (🟡 +0.35%)
/settings/my-account/appearance 319.84 KB 509.44 KB 145.55% (🟡 +8.43%)
/settings/my-account/calendars 278.88 KB 468.47 KB 133.85% (🟡 +0.36%)
/settings/my-account/conferencing 279.61 KB 469.21 KB 134.06% (🟡 +0.35%)
/settings/my-account/general 355.91 KB 545.5 KB 155.86% (🟡 +0.35%)
/settings/my-account/out-of-office 271.84 KB 461.43 KB 131.84% (🟡 +0.36%)
/settings/my-account/profile 410.67 KB 600.27 KB 171.50% (🟡 +0.57%)
/settings/organizations/[id]/about 152.89 KB 342.49 KB 97.85% (🟢 -0.17%)
/settings/organizations/[id]/add-teams 152.94 KB 342.54 KB 97.87% (🟢 -0.17%)
/settings/organizations/[id]/onboard-members 174.29 KB 363.88 KB 103.97% (🟡 +0.14%)
/settings/organizations/[id]/set-password 152.87 KB 342.47 KB 97.85% (🟢 -0.17%)
/settings/organizations/appearance 291.15 KB 480.75 KB 137.36% (🟡 +0.36%)
/settings/organizations/billing 267.63 KB 457.23 KB 130.64% (🟡 +0.35%)
/settings/organizations/dsync 337.5 KB 527.1 KB 150.60% (🟡 +0.56%)
/settings/organizations/general 355.47 KB 545.07 KB 155.73% (🟡 +0.36%)
/settings/organizations/members 436.69 KB 626.29 KB 178.94% (🟡 +0.60%)
/settings/organizations/new 152.89 KB 342.49 KB 97.85% (🟢 -0.16%)
/settings/organizations/platform/oauth-clients 269.38 KB 458.98 KB 131.14% (🟡 +0.35%)
/settings/organizations/platform/oauth-clients/create 268.77 KB 458.37 KB 130.96% (🟡 +0.36%)
/settings/organizations/privacy 272.99 KB 462.59 KB 132.17% (🟡 +0.35%)
/settings/organizations/profile 402.36 KB 591.96 KB 169.13% (🟡 +0.55%)
/settings/organizations/sso 278.3 KB 467.89 KB 133.68% (🟡 +0.36%)
/settings/organizations/teams/other 268.47 KB 458.07 KB 130.88% (🟡 +0.35%)
/settings/organizations/teams/other/[id]/appearance 280.19 KB 469.79 KB 134.23% (🟡 +0.36%)
/settings/organizations/teams/other/[id]/members 274.93 KB 464.53 KB 132.72% (🟡 +0.36%)
/settings/organizations/teams/other/[id]/profile 473.65 KB 663.25 KB 189.50% (🟡 +0.55%)
/settings/security/impersonation 272.79 KB 462.39 KB 132.11% (🟡 +0.36%)
/settings/security/password 310.09 KB 499.69 KB 142.77% (🟡 +8.42%)
/settings/security/sso 277.69 KB 467.29 KB 133.51% (🟡 +0.36%)
/settings/security/two-factor-auth 276.6 KB 466.19 KB 133.20% (🟡 +0.35%)
/settings/teams 267.13 KB 456.73 KB 130.49% (🟡 +0.36%)
/settings/teams/[id]/appearance 280.18 KB 469.78 KB 134.22% (🟡 +0.36%)
/settings/teams/[id]/billing 267.63 KB 457.23 KB 130.64% (🟡 +0.35%)
/settings/teams/[id]/members 387.07 KB 576.67 KB 164.76% (🟡 +0.59%)
/settings/teams/[id]/onboard-members 173.47 KB 363.07 KB 103.73% (🟡 +0.15%)
/settings/teams/[id]/profile 474.48 KB 664.08 KB 189.74% (🟡 +0.54%)
/settings/teams/new 201.42 KB 391.02 KB 111.72% (🟡 +0.18%)
/signup 179.09 KB 368.69 KB 105.34% (🟡 +7.93%)
/team/[slug] 266.78 KB 456.37 KB 130.39% (🟡 +8.17%)
/team/[slug]/[type] 412.22 KB 601.82 KB 171.95% (🟡 +8.02%)
/team/[slug]/[type]/embed 412.26 KB 601.85 KB 171.96% (🟡 +8.02%)
/team/[slug]/embed 266.82 KB 456.41 KB 130.40% (🟡 +8.17%)
/teams 260.64 KB 450.24 KB 128.64% (🟡 +0.32%)
/upgrade 260.95 KB 450.55 KB 128.73% (🟡 +0.34%)
/workflows 292.5 KB 482.09 KB 137.74% (🟡 +0.39%)
/workflows/[workflow] 413.68 KB 603.28 KB 172.36% (🟡 +0.52%)
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
Copy Markdown

deploysentinel Bot commented Mar 15, 2024

Current Playwright Test Results Summary

✅ 303 Passing - ⚠️ 6 Flaky

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

(Last updated on 03/28/2024 01:52:50pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: a2c1dff

Started: 03/28/2024 01:49:05pm UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests -- legacy user Different Locations Tests Can remove location from multiple locations that are saved
Retry 1Initial Attempt
0% (0) 0 / 186 runs
failed over last 7 days
20.43% (38) 38 / 186 runs
flaked over last 7 days

📄   apps/web/playwright/eventType/limit-tab.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Limits Tab - Event Type Check the functionalities of the Limits Tab
Retry 1Initial Attempt
0% (0) 0 / 186 runs
failed over last 7 days
4.84% (9) 9 / 186 runs
flaked over last 7 days

📄   apps/web/playwright/profile.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
Update Profile Newly added secondary email should show as Unverified
Retry 1Initial Attempt
0% (0) 0 / 187 runs
failed over last 7 days
6.42% (12) 12 / 187 runs
flaked over last 7 days
Update Profile Can resend verification link if the secondary email is unverified
Retry 1Initial Attempt
8.02% (15) 15 / 187 runs
failed over last 7 days
24.60% (46) 46 / 187 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Team Invitation (non verified)
Retry 1Initial Attempt
0% (0) 0 / 200 runs
failed over last 7 days
4.50% (9) 9 / 200 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
1.52% (3) 3 / 197 runs
failed over last 7 days
40.10% (79) 79 / 197 runs
flaked over last 7 days

View Detailed Build Results


@PeerRich PeerRich added this to the v4.0 milestone Mar 16, 2024
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Mar 22, 2024

Graphite Automations

"Add foundation team as reviewer" took an action on this PR • (03/22/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add consumer team as reviewer" took an action on this PR • (03/22/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@PeerRich PeerRich changed the title feat: cal.ai enterprise chore: layout for cal.ai enterprise Mar 22, 2024
Copy link
Copy Markdown
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.

Great work so far @Udit-takkar. I know we're just trying to get a V1 out the door but I still have a few blocking comments.

Non-blocking

  • What's up with all the Lucide icon changes? Do we need those?

Comment thread apps/web/components/eventtype/EventTypeSingleLayout.tsx Outdated
Comment thread apps/web/modules/event-types/views/event-types-single-view.tsx Outdated
Comment thread packages/trpc/server/routers/viewer/eventTypes/update.handler.ts Outdated
Comment thread packages/prisma/schema.prisma Outdated
);
const formMethods = useFormContext<FormValues>();

const isOrg = !!session.data?.user?.org?.id;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NIT: Could find a more reusable way to determine this in a follow up.

Comment thread apps/web/components/eventtype/AIEventController.tsx
Comment thread apps/web/components/eventtype/AIEventController.tsx
Comment thread apps/ai/.env.example Outdated
Comment on lines +241 to +246
<Button
disabled={createCallMutation.isPending}
loading={createCallMutation.isPending}
onClick={handleSubmit}>
Make a Call
</Button>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

NIT: I think this button should be renamed. I see "Make a call" I expect a call to happen on the frontend but I see it's just creating the LLM. This could be confusing.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is creating LLM and then making the call to "numberToCall"

@Udit-takkar
Copy link
Copy Markdown
Contributor

What's up with all the Lucide icon changes? Do we need those?

zomars upgraded that package. I just fixed the type errors related to that change

Copy link
Copy Markdown
Member Author

@PeerRich PeerRich left a comment

Choose a reason for hiding this comment

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

awesome! approved. lets get this to prod today. added RETELL_AI_KEY to production environments

emrysal
emrysal previously approved these changes Mar 28, 2024
Copy link
Copy Markdown
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Reviewed, happy to merge

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 ❗️ .env changes contains changes to env variables ✨ feature New feature or request ❗️ migrations contains migration files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cal.ai to event-types

6 participants