Scheduling infrastructure for absolutely everyone.
fix(ui): change phone booking display from Organizer Phone Number to Phone Call (#27636)
Everton Resendea71d62dc3301
diff --git a/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsx b/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsxindex 84e83a4a1b0..3134438fd9e 100644--- a/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsx+++ b/apps/web/components/dialog/__tests__/EditLocationDialog.test.tsx@@ -47,7 +47,7 @@ vi.mock("@calcom/features/form/components/LocationSelect", () => {});const AttendeePhoneNumberLabel = "Attendee phone number";-const OrganizerPhoneLabel = "Organizer phone number";+const OrganizerPhoneLabel = "Phone call";const CampfireLabel = "Campfire";const ZoomVideoLabel = "Zoom Video";const OrganizerDefaultConferencingAppLabel = "Organizer's default app";@@ -202,7 +202,7 @@ describe("EditLocationDialog", () => {});describe("Team Booking Case", () => {- it("should not show Attendee Phone Number but show Organizer Phone Number and dynamic link Conferencing apps", async () => {+ it("should not show Attendee Phone Number but show Phone Call option and dynamic link Conferencing apps", async () => {render(<EditLocationDialog {...mockProps} booking={{ location: "Office" }} teamId={1} />);expect(screen.queryByText(AttendeePhoneNumberLabel)).not.toBeInTheDocument();diff --git a/apps/web/playwright/event-types.e2e.ts b/apps/web/playwright/event-types.e2e.tsindex 0eb357fcce3..ac0940a1637 100644--- a/apps/web/playwright/event-types.e2e.ts+++ b/apps/web/playwright/event-types.e2e.ts@@ -365,7 +365,7 @@ test.describe("Event Types tests", () => {await page.getByTestId(removeButtomId).nth(0).click();await page.getByTestId(removeButtomId).nth(0).click();- // Add Multiple Organizer Phone Number options+ // Add Multiple Phone Call location optionsawait page.getByTestId("location-select").last().click();await page.getByTestId("location-select-item-userPhone").click();diff --git a/companion/components/event-type-detail/constants.ts b/companion/components/event-type-detail/constants.tsindex dff9194f1ef..73c780f43e7 100644--- a/companion/components/event-type-detail/constants.ts+++ b/companion/components/event-type-detail/constants.ts@@ -62,7 +62,7 @@ export const defaultLocations = [{ label: "Organizer Address", type: "inPerson" as const },{ label: "Link Meeting", type: "link" as const },{ label: "Attendee Phone Number", type: "phone" as const },- { label: "Organizer Phone Number", type: "userPhone" as const },+ { label: "Phone Call", type: "userPhone" as const },];export const tabs = [diff --git a/companion/utils/defaultLocations.ts b/companion/utils/defaultLocations.tsindex 94e99129cf1..ef2969b451d 100644--- a/companion/utils/defaultLocations.ts+++ b/companion/utils/defaultLocations.ts@@ -71,7 +71,7 @@ export const defaultLocations: DefaultLocation[] = [},{type: DefaultLocationType.UserPhone,- label: "Organizer Phone Number",+ label: "Phone Call",iconUrl: "https://app.cal.com/phone.svg",category: "phone",organizerInputType: "phone",diff --git a/companion/utils/locationHelpers.ts b/companion/utils/locationHelpers.tsindex bf072553ff8..74336b49ca4 100644--- a/companion/utils/locationHelpers.ts+++ b/companion/utils/locationHelpers.ts@@ -83,7 +83,7 @@ export function mapApiLocationToItem(apiLocation: ApiLocation): LocationItem {id,type: "phone",phone: apiLocation.phone || "",- displayName: "Organizer Phone Number",+ displayName: "Phone Call",iconUrl: "https://app.cal.com/phone.svg",public: apiLocation.public,};@@ -198,7 +198,7 @@ export function getLocationDisplayName(locationType: string, integration?: strinaddress: "In Person (Organizer Address)",attendeeAddress: "In Person (Attendee Address)",link: "Link Meeting",- phone: "Organizer Phone Number",+ phone: "Phone Call",attendeePhone: "Attendee Phone Number",attendeeDefined: "Custom Attendee Location",};diff --git a/packages/app-store/locations.ts b/packages/app-store/locations.tsindex 50281c145cc..8d60b580348 100644--- a/packages/app-store/locations.ts+++ b/packages/app-store/locations.ts@@ -192,7 +192,7 @@ export const defaultLocations: DefaultEventLocationType[] = [{default: true,type: DefaultEventLocationTypeEnum.UserPhone,- label: "organizer_phone_number",+ label: "phone_call",messageForOrganizer: "Provide your phone number",organizerInputType: "phone",organizerInputLabel: "phone_number",@@ -209,7 +209,7 @@ const translateAbleKeys = ["in_person","attendee_phone_number","link_meeting",- "organizer_phone_number",+ "phone_call","organizer_default_conferencing_app","somewhere_else","custom_attendee_location",