fix: Make routing-form a preinstalled app#9836
Conversation
CAL-1869 Make Routing Form a core component.
We are going to support creating a Routing Form for a team. After that, it would require all team members to be able to access a Routing Form(even if the Routing Form App isn't installed by that user). So, it makes even more sense to move it to core now. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Ignored Deployments
|
|
Thank you for following the naming conventions! 🙏 |
📦 Next.js Bundle Analysis for @calcom/webThis analysis was generated by the Next.js Bundle Analysis action. 🤖 This PR introduced no changes to the JavaScript bundle! 🙌 |
Current Playwright Test Results Summary✅ 105 Passing - Run may still be in progress, this comment will be updated as current testing workflow or job completes... (Last updated on 07/26/2023 04:43:34pm UTC) Run DetailsRunning Workflow PR Update on Github Actions Commit: 3307ac9 Started: 07/26/2023 04:41:26pm UTC
|
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Stripe integration Can book a paid booking
Retry 1 • Initial Attempt |
1.63% (5)5 / 307 runsfailed over last 7 days |
1.63% (5)5 / 307 runsflaked over last 7 days |
📄 packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes
Top 1 Common Error Messages
|
|
2 Test Cases Affected |
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
Popup Tests should be able to reschedule
Retry 1 • Initial Attempt |
1.38% (3)3 / 217 runsfailed over last 7 days |
98.16% (213)213 / 217 runsflaked over last 7 days |
|
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1 • Initial Attempt |
0% (0)0 / 216 runsfailed over last 7 days |
6.48% (14)14 / 216 runsflaked over last 7 days |
📄 apps/web/playwright/webhook.e2e.ts • 1 Flake
Test Case Results
| Test Case | Last 7 days Failures | Last 7 days Flakes |
|---|---|---|
|
FORM_SUBMITTED can submit a form and get a submission event
Retry 1 • Initial Attempt |
1.94% (6)6 / 309 runsfailed over last 7 days |
7.44% (23)23 / 309 runsflaked over last 7 days |
|
This PR is being marked as stale due to inactivity. |
…routing-form-a-core-component
154c8d9 to
091c02a
Compare
| }; | ||
|
|
||
| function useShouldDisplayNavigationItem(item: NavigationItemType) { | ||
| const { status } = useSession(); |
There was a problem hiding this comment.
No condition needed now.
| const path = router.asPath.split("?")[0]; | ||
| // During Server rendering path is /v2/apps but on client it becomes /apps(weird..) | ||
| return ( | ||
| (path.startsWith(item.href) || path.startsWith("/v2" + item.href)) && !path.includes("routing-forms/") |
There was a problem hiding this comment.
We would be accessing routing-forms as /routing-forms now instead of /apps/routing-forms. So, Apps navigation item doesn't need to detect if it's Routing Form or App that's selected.
| destination: "/booking/:path*", | ||
| }, | ||
| { | ||
| source: "/routing-forms/:slug*", |
There was a problem hiding this comment.
Routing Forms is now system app. So, allow accessing it directly. This also allows us to never have to move Routing Forms app outside AppStore unless needed for some other reason.
| "/*": "Don't modify slug - If required, do it using cli edit command", | ||
| "name": "Routing Forms", | ||
| "title": "Routing Forms", | ||
| "isGlobal": true, |
There was a problem hiding this comment.
Make Routing Forms app preinstalled.
091c02a to
c15a313
Compare
b5872cb to
290de0d
Compare
| return NextResponse.rewrite(url); | ||
| } | ||
|
|
||
| // Don't 404 old routing_forms links |
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: zomars <zomars@me.com>
Co-authored-by: zomars <zomars@me.com>


What does this PR do?
Fixes #10372
Fixes #9351
Routing Forms is a Default app now, globally installed.

It will remain accessible at
/apps/routing-formsbut will be referred to as/routing-formsthroughout the app.Demo Loom
Type of change
How should this be tested?
Mandatory Tasks
Checklist