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: platform onboarding flow and dashboard #14721
Conversation
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
Graphite Automations"Add platform team as reviewer" took an action on this PR • (04/23/24)1 reviewer was added to this PR based on Keith Williams's automation. "Add foundation team as reviewer" took an action on this PR • (05/02/24)1 reviewer was added to this PR based on Keith Williams's automation. |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 New Pages AddedThe following pages were added to the bundle from the code in this PR:
Three Pages Changed SizeThe following pages changed size from the code in this PR compared to its base branch:
DetailsOnly 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 Any third party scripts you have added directly to your app using the 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. |
Current Playwright Test Results Summary✅ 63 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 05/09/2024 03:03:16pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 15f8f99 Started: 05/09/2024 03:01:24pm UTC
|
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Stripe integration Pending payment booking should not be confirmed by default
Retry 1 • Initial Attempt |
1.32% (4)4 / 304 runsfailed over last 7 days |
18.42% (56)56 / 304 runsflaked over last 7 days |
📄 apps/web/playwright/impersonation.e2e.ts • 1 Flake
Test Case Results
Test Case | Last 7 days Failures | Last 7 days Flakes |
---|---|---|
Users can impersonate App Admin can impersonate users with impersonation enabled
Retry 1 • Initial Attempt |
1.54% (5)5 / 324 runsfailed over last 7 days |
10.19% (33)33 / 324 runsflaked over last 7 days |
📄 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 -- future user can add multiple organizer address
Retry 1 • Initial Attempt |
1.48% (5)5 / 338 runsfailed over last 7 days |
28.99% (98)98 / 338 runsflaked over last 7 days |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[MEDIUM] plan column of PlatformBilling
I saw in your loom and also tried myself - after finishing stripe payment the plan
is none
- shouldn't it be one of the PlatformPlan
enum values?
[LOW] Sidebar
Personally, I would remove "Cal.com atoms" entry from sidebar and just rename "Platform docs" to "Documentation". Also, instead of having "Examples app" in the sidebar I would just put it in docs - I don't know how much value do people have of having a link to examples app because docs should mention it.
[HIGH] OAuth client users not appearing?
I created OAuth client and then created managed user for it via API- managed user email has the same OAuth client ID as in dashboard below. However, after creating the user I refresh "settings/platform" and the managed user is not appearing.
Does OAuth client users show up for you under the "Managed users" ?
}); | ||
}; | ||
|
||
const isPending = isSaving; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed anymore, you can use isPending from useCreateOAuthClient directly
}; | ||
const isPending = isSaving || isUpdating; | ||
|
||
const isPending = isUpdating; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed anymore, just use isPending from useUpdateOAuthClient directly
What does this PR do?
This PR adds a new flow for creating a platform client, previously we were using the flow that is used to create an organization. This PR fixes that and also adds a new dashboard for a platform user under which they can manage their oauth clients (create, update or delete) and see a list of their managed users. There are also other tabs for seeing platform docs, and other examples. This PR also includes billing in the app itself using stripe.
Steps to create a new platform client:
/settings/platform/new
and create a new platform user@PeerRich: also try:
https://localhost:3000/signup?redirect=https://app.cal.com/settings/platform/new
Loom: https://www.loom.com/share/eb02cfc3aa654e07b29c90a95c93fac4