Skip to content

Commit 46eb533

Browse files
authored
chore: tidy up typos across docs, comments, and setup copy (calcom#29260)
1 parent e64de00 commit 46eb533

18 files changed

Lines changed: 34 additions & 34 deletions

File tree

apps/api/v2/src/platform/schedules/schedules_2024_06_11/controllers/schedules.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ export class SchedulesController_2024_06_11 {
6060
6161
The point of creating schedules is for event types to be available at specific times.
6262
63-
The first goal of schedules is to have a default schedule. If you are platform customer and created managed users, then it is important to note that each managed user should have a default schedule.
64-
1. If you passed \`timeZone\` when creating managed user, then the default schedule from Monday to Friday from 9AM to 5PM will be created with that timezone. The managed user can then change the default schedule via the \`AvailabilitySettings\` atom.
63+
The first goal of schedules is to have a default schedule. If you are a platform customer and have created managed users, then it is important to note that each managed user should have a default schedule.
64+
1. If you passed \`timeZone\` when creating a managed user, then the default schedule from Monday to Friday from 9AM to 5PM will be created with that timezone. The managed user can then change the default schedule via the \`AvailabilitySettings\` atom.
6565
2. If you did not, then we assume you want the user to have this specific schedule right away. You should create a default schedule by specifying
6666
\`"isDefault": true\` in the request body. Until the user has a default schedule the user can't be booked nor manage their schedule via the AvailabilitySettings atom.
6767

apps/docs/content/installation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installation
22

3-
There are multiple ways in which you can deploy Cal.diy, providing support for customers who want to implement Cal.diy within their existing infrastructure stack. Let's go through them one-by-one. You can find the instructions for deployment in our README file, which is the section you see when you scroll down in our GitHub repository, or if you've got a copy of Cal.diy downloaded already, you can open the file contained in the downloaded repository called `README.md`.
3+
There are multiple ways in which you can deploy Cal.diy, providing support for customers who want to implement Cal.diy within their existing infrastructure stack. Let's go through them one by one. You can find the instructions for deployment in our README file, which is the section you see when you scroll down in our GitHub repository, or if you've got a copy of Cal.diy downloaded already, you can open the file contained in the downloaded repository called `README.md`.
44

55
## Requirements
66

apps/web/components/apps/paypal/Setup.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -83,19 +83,19 @@ export default function PayPalSetup() {
8383
</div>
8484
</form>
8585
<div>
86-
<p className="text-lgf text-default mt-5 font-bold">Getting started with Paypal APP</p>
86+
<p className="text-lgf text-default mt-5 font-bold">Getting started with the PayPal app</p>
8787
<p className="text-default font-semi mt-2">
88-
Here in Cal.diy we offer Paypal as one of our payment gateway. You can use your own Paypal
89-
Business account to receive payments from your customers enabling and setting up price and
90-
currency for each of your event types.
88+
Cal.diy offers PayPal as one of its payment gateways. You can use your own PayPal
89+
Business account to receive payments from your customers by setting a price and currency
90+
for each of your event types.
9191
</p>
9292

9393
<p className="text-lgf text-default mt-5 inline-flex font-bold">
9494
<CircleAlertIcon className="mr-2 mt-1 h-4 w-4" /> Important requirements:
9595
</p>
9696
<ul className="text-default ml-1 mt-2 list-disc pl-2">
97-
<li>Paypal Business account</li>
98-
<li>Paypal Developer account</li>
97+
<li>PayPal Business account</li>
98+
<li>PayPal Developer account</li>
9999
</ul>
100100

101101
<p className="text-default mb-2 mt-5 font-bold">Resources:</p>
@@ -118,7 +118,7 @@ export default function PayPalSetup() {
118118
<ol className="text-default ml-1 mt-5 list-decimal pl-2">
119119
{/* @TODO: translate */}
120120
<li>
121-
Log into your Paypal Developer account and create a new app{" "}
121+
Log into your PayPal Developer account and create a new app{" "}
122122
<a
123123
target="_blank"
124124
href="https://developer.paypal.com/dashboard/applications/live"

apps/web/pagesAndRewritePaths.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { nextJsOrgRewriteConfig } from "./getNextjsOrgRewriteConfig";
44

55
// Top-level route names that are explicitly allowed for org rewrite (whitelist)
66
export const topLevelRouteNamesWhitelistedForRewrite: string[] = [
7-
// We don't allow all dashboard route names to be used as slug because people are probably accustomed to access links like acme.cal.com/event-types etc.
7+
// We don't allow all dashboard route names to be used as slug because people are probably accustomed to accessing links like acme.cal.com/event-types etc.
88
// So, we carefully allow, what is absolutely needed.
99
// Allowed to be a team/user slug in organization because onboarding is a common team name
1010
"onboarding",
@@ -81,7 +81,7 @@ function getRegExpMatchingAllReservedRoutes(suffix: string): string {
8181
const staticAssets = ["embed"];
8282

8383
// FIXME: I am not sure why public is needed here, an asset 'test' in public isn't accessible through "/public/test" but only through "/test"
84-
// We should infact scan through all files in public and exclude them instead.
84+
// We should in fact scan through all files in public and exclude them instead.
8585
const nextJsSpecialPaths = ["_next", "public"];
8686

8787
const allTopLevelRoutesExcludedFromOrgRewrite = topLevelRoutesExcludedFromOrgRewrite

apps/web/playwright/availability.e2e.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ test.describe("Availability", () => {
116116
await page.getByTestId("new-schedule").first().click();
117117
await page.locator('[id="name"]').fill("More working hours");
118118
page.locator('[type="submit"]').click();
119-
await expect(page.getByTestId("availablity-title")).toHaveValue("More working hours");
119+
await expect(page.getByTestId("availability-title")).toHaveValue("More working hours");
120120
});
121121
await test.step("Can delete a schedule", async () => {
122122
await page.getByTestId("go-back-button").click();
@@ -147,11 +147,11 @@ test.describe("Availability", () => {
147147
const save = (await localize("en"))("save");
148148
const copyTimesTo = (await localize("en"))("copy_times_to");
149149

150-
const availTitle = page.getByTestId("availablity-title");
150+
const availTitle = page.getByTestId("availability-title");
151151
await availTitle.locator("xpath=..").locator("span.whitespace-pre").first().click();
152152
await expect(availTitle).toBeEditable();
153153
// change availability name
154-
await page.getByTestId("availablity-title").fill("Working Hours test");
154+
await page.getByTestId("availability-title").fill("Working Hours test");
155155
await expect(page.getByTestId("subtitle").first()).toBeVisible();
156156
await page.getByTestId(sunday).getByRole("switch").click();
157157
await page.getByTestId(monday).first().click();

apps/web/playwright/payment-apps.e2e.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ test.describe("Payment app", () => {
239239

240240
await page.getByRole("button", { name: "Setup" }).click();
241241

242-
// Expect "Getting started with Paypal APP" to be displayed
243-
await expect(page.locator("text=Getting started with Paypal APP").first()).toBeVisible();
242+
await expect(page).toHaveURL(/\/apps\/paypal\/setup/);
243+
await expect(page.getByText("Getting started with the PayPal app")).toBeVisible();
244244
});
245245

246246
/**

packages/app-store/_utils/stripe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const userType = {
3030
} satisfies Prisma.UserSelect;
3131

3232
export type UserType = Prisma.UserGetPayload<{ select: typeof userType }>;
33-
/** This will retrieve the customer ID from Stripe or create it if it doesn't exists yet. */
33+
/** This will retrieve the customer ID from Stripe or create it if it doesn't exist yet. */
3434
export async function getStripeCustomerId(user: UserType): Promise<string> {
3535
let customerId: string | null = null;
3636

packages/app-store/stripepayment/lib/customer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const userType = {
3030

3131
type UserType = Prisma.UserGetPayload<{ select: typeof userType }>;
3232

33-
/** This will retrieve the customer ID from Stripe or create it if it doesn't exists yet. */
33+
/** This will retrieve the customer ID from Stripe or create it if it doesn't exist yet. */
3434
export async function getStripeCustomerId(user: UserType): Promise<string> {
3535
let customerId: string | null = null;
3636

packages/app-store/vital/lib/reschedule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const Reschedule = async (bookingUid: string, cancellationReason: string) => {
113113
startTime: bookingToReschedule.startTime.toISOString(),
114114
endTime: bookingToReschedule.endTime.toISOString(),
115115
attendees: usersToPeopleType(
116-
// username field doesn't exists on attendee but could be in the future
116+
// username field doesn't exist on attendee but could be added in the future
117117
bookingToReschedule.attendees as unknown as PersonAttendeeCommonFields[],
118118
tAttendees
119119
),

packages/app-store/wipemycalother/lib/reschedule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ const Reschedule = async (bookingUid: string, cancellationReason: string) => {
116116
startTime: bookingToReschedule.startTime.toISOString(),
117117
endTime: bookingToReschedule.endTime.toISOString(),
118118
attendees: usersToPeopleType(
119-
// username field doesn't exists on attendee but could be in the future
119+
// username field doesn't exist on attendee but could be added in the future
120120
bookingToReschedule.attendees as unknown as PersonAttendeeCommonFields[],
121121
tAttendees
122122
),

0 commit comments

Comments
 (0)