From 52e27bab536501b3842f1b1826c44f0e41bebab3 Mon Sep 17 00:00:00 2001
From: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
Date: Fri, 7 Nov 2025 07:58:34 +0000
Subject: [PATCH] chore: Add shared onboarding components (OnboardingCard,
OnboardingLayout, browser views) (#24946)
## What does this PR do?
Creates new onboarding UI components for the user onboarding flow, including:
- `OnboardingCard` - A reusable card component with title, subtitle, content, and footer sections
- `OnboardingLayout` - A layout component with progress indicators and sign-out functionality
- `OnboardingBrowserView` - A browser preview showing how the user's booking page will look
- `OnboardingCalendarBrowserView` - A calendar preview showing sample events
- `OnboardingInviteBrowserView` - A preview of the team invitation email
- Enhanced `PlanIcon` component with new variants and animations for organization and team plans
## Visual Demo (For contributors especially)
#### Image Demo:
The PR adds several visual components for the onboarding flow, including browser previews, calendar views, and animated plan icons with concentric rings and user avatars.
## Mandatory Tasks (DO NOT REMOVE)
- [x] I have self-reviewed the code.
- [x] I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
- [x] I confirm automated tests are in place that prove my fix is effective or that my feature works.
## How should this be tested?
- Navigate to the onboarding flow to see the new components in action
- Test the layout with different screen sizes to ensure responsive behavior
- Verify that the browser previews render correctly with sample data
- Check that the plan icon animations work properly for different variants (single, team, organization)
- Ensure the calendar view displays sample events correctly
## Checklist
- I have read the [contributing guide](https://github.com/calcom/cal.com/blob/main/CONTRIBUTING.md)
- My code follows the style guidelines of this project
- I have commented my code, particularly in hard-to-understand areas
- I have checked if my changes generate no new warnings
---
.../onboarding/components/OnboardingCard.tsx | 41 ++++
.../components/OnboardingLayout.tsx | 64 ++++++
.../components/onboarding-browser-view.tsx | 134 +++++++++++
.../onboarding-invite-browser-view.tsx | 67 ++++++
.../onboarding/components/plan-icon.tsx | 209 +++++++++++-------
.../getting-started/onboarding-view.tsx | 4 +-
6 files changed, 439 insertions(+), 80 deletions(-)
create mode 100644 apps/web/modules/onboarding/components/OnboardingCard.tsx
create mode 100644 apps/web/modules/onboarding/components/OnboardingLayout.tsx
create mode 100644 apps/web/modules/onboarding/components/onboarding-browser-view.tsx
create mode 100644 apps/web/modules/onboarding/components/onboarding-invite-browser-view.tsx
diff --git a/apps/web/modules/onboarding/components/OnboardingCard.tsx b/apps/web/modules/onboarding/components/OnboardingCard.tsx
new file mode 100644
index 0000000000..72ca7500db
--- /dev/null
+++ b/apps/web/modules/onboarding/components/OnboardingCard.tsx
@@ -0,0 +1,41 @@
+import type { ReactNode } from "react";
+
+import { SkeletonText } from "@calcom/ui/components/skeleton";
+
+type OnboardingCardProps = {
+ title: string;
+ subtitle: string;
+ children: ReactNode;
+ footer: ReactNode;
+ isLoading?: boolean;
+};
+
+export const OnboardingCard = ({ title, subtitle, children, footer, isLoading }: OnboardingCardProps) => {
+ return (
+