chore: tidy up typos across docs, comments, and setup copy (#29260)

This commit is contained in:
Mandar Joshi authored and GitHub committed 2026-05-03 13:45:57 +00:00
1 parent e64de009ec
commit 46eb533dbd
18 files changed
+34 -34

No files matched your search

+1 -1
View File
@@ -30,7 +30,7 @@ const userType = {
} satisfies Prisma.UserSelect;
export type UserType = Prisma.UserGetPayload<{ select: typeof userType }>;
/** This will retrieve the customer ID from Stripe or create it if it doesn't exists yet. */
/** This will retrieve the customer ID from Stripe or create it if it doesn't exist yet. */
export async function getStripeCustomerId(user: UserType): Promise<string> {
let customerId: string | null = null;
@@ -30,7 +30,7 @@ const userType = {
type UserType = Prisma.UserGetPayload<{ select: typeof userType }>;
/** This will retrieve the customer ID from Stripe or create it if it doesn't exists yet. */
/** This will retrieve the customer ID from Stripe or create it if it doesn't exist yet. */
export async function getStripeCustomerId(user: UserType): Promise<string> {
let customerId: string | null = null;
+1 -1
View File
@@ -113,7 +113,7 @@ const Reschedule = async (bookingUid: string, cancellationReason: string) => {
startTime: bookingToReschedule.startTime.toISOString(),
endTime: bookingToReschedule.endTime.toISOString(),
attendees: usersToPeopleType(
// username field doesn't exists on attendee but could be in the future
// username field doesn't exist on attendee but could be added in the future
bookingToReschedule.attendees as unknown as PersonAttendeeCommonFields[],
tAttendees
),
@@ -116,7 +116,7 @@ const Reschedule = async (bookingUid: string, cancellationReason: string) => {
startTime: bookingToReschedule.startTime.toISOString(),
endTime: bookingToReschedule.endTime.toISOString(),
attendees: usersToPeopleType(
// username field doesn't exists on attendee but could be in the future
// username field doesn't exist on attendee but could be added in the future
bookingToReschedule.attendees as unknown as PersonAttendeeCommonFields[],
tAttendees
),
@@ -7,7 +7,7 @@ function getStyle() {
<style>
/*
Modal box is added as a child of the top-most element which is body(the container)
If the container has grid layout being used. Even if the cal-modal-box is visiblity:hidden, it causes it to take up space in the grid layout
If the container has grid layout being used. Even if the cal-modal-box is visibility:hidden, it causes it to take up space in the grid layout
It causes that space to keep on increasing as modal box is opened and closed repeatedly
We set position:absolute to move it out of the regular flow of the grid layout
*/
@@ -1130,9 +1130,9 @@ export default class EventManager {
let result = [];
for (const reference of calendarReference) {
const { uid: bookingRefUid, externalCalendarId: bookingExternalCalendarId } = reference;
let calenderExternalId: string | null = null;
let calendarExternalId: string | null = null;
if (bookingExternalCalendarId) {
calenderExternalId = bookingExternalCalendarId;
calendarExternalId = bookingExternalCalendarId;
}
if (reference.credentialId) {
@@ -1161,14 +1161,14 @@ export default class EventManager {
};
}
}
result.push(updateEvent(credential, event, bookingRefUid, calenderExternalId));
result.push(updateEvent(credential, event, bookingRefUid, calendarExternalId));
} else {
const credentials = this.calendarCredentials.filter(
(credential) => credential.type === reference?.type
);
for (const credential of credentials) {
log.silly("updateAllCalendarEvents-credential", JSON.stringify({ credentials }));
result.push(updateEvent(credential, event, bookingRefUid, calenderExternalId));
result.push(updateEvent(credential, event, bookingRefUid, calendarExternalId));
}
}
}
@@ -1185,7 +1185,7 @@ describe("intersect function comprehensive tests", () => {
});
describe("timezone offset exclusion bug", () => {
it("should succesfully mix UTC and timezone-aware dayjs objects in subtract", () => {
it("should successfully mix UTC and timezone-aware dayjs objects in subtract", () => {
const TIMEZONE = "Asia/Kolkata"; // IST timezone (+05:30)
const sourceRanges = [
@@ -417,7 +417,7 @@ export const AvailabilitySettings = forwardRef<AvailabilitySettingsFormRef, Avai
isReady={!isLoading}
disabled={disableEditableHeading}
{...field}
data-testid="availablity-title"
data-testid="availability-title"
/>
)}
/>
@@ -345,7 +345,7 @@ export class CreateBookingInput_2024_08_13 {
],
})
@Type(() => Object)
// note(Lauris): string is for backwards compatability
// note(Lauris): string is for backwards compatibility
location?: BookingInputLocation_2024_08_13 | string;
@ApiProperty({
@@ -129,7 +129,7 @@ export const requestRescheduleHandler = async ({ ctx, input, source }: RequestRe
endTime: bookingToReschedule.endTime.toISOString(),
hideOrganizerEmail: eventType?.hideOrganizerEmail,
attendees: usersToPeopleType(
// username field doesn't exists on attendee but could be in the future
// username field doesn't exist on attendee but could be added in the future
bookingToReschedule.attendees as unknown as PersonAttendeeCommonFields[],
tAttendees
),
@@ -229,7 +229,7 @@ export const requestRescheduleHandler = async ({ ctx, input, source }: RequestRe
endTime: bookingToReschedule.endTime ? dayjs(bookingToReschedule.endTime).format() : "",
organizer,
attendees: usersToPeopleType(
// username field doesn't exists on attendee but could be in the future
// username field doesn't exist on attendee but could be added in the future
bookingToReschedule.attendees as unknown as PersonAttendeeCommonFields[],
tAttendees
),
@@ -20,7 +20,7 @@ const DatePicker = ({ minDate, disabled, date, onDatesChange, className, label }
onDatesChange?.(newDate ?? new Date());
}
const fromDate = minDate ?? new Date();
const calender = (
const calendar = (
<Calendar
initialFocus
fromDate={minDate === null ? undefined : fromDate}
@@ -53,7 +53,7 @@ const DatePicker = ({ minDate, disabled, date, onDatesChange, className, label }
align="start"
sideOffset={4}
>
{calender}
{calendar}
</Popover.Content>
</Popover.Portal>
</Popover.Root>