Scheduling infrastructure for absolutely everyone.
fix: typos in packages/features (#19220)
luzpaz197a7ba6e984
diff --git a/packages/features/auth/lib/getServerSession.ts b/packages/features/auth/lib/getServerSession.tsindex cd89c8ba8ae..b5df23fca19 100644--- a/packages/features/auth/lib/getServerSession.ts+++ b/packages/features/auth/lib/getServerSession.ts@@ -42,7 +42,7 @@ export async function getServerSession(options: {log.debug("Getting server session", safeStringify({ token }));if (!token || !token.email || !token.sub) {- log.debug("Couldnt get token");+ log.debug("Couldn't get token");return null;}diff --git a/packages/features/bookings/Booker/components/Section.tsx b/packages/features/bookings/Booker/components/Section.tsxindex abfcbc76ea9..b2450a3866c 100644--- a/packages/features/bookings/Booker/components/Section.tsx+++ b/packages/features/bookings/Booker/components/Section.tsx@@ -38,7 +38,7 @@ const gridAreaClassNameMap: { [key in BookerAreas]: string } = {};/**- * Small helper compnent that renders a booker section in a specific grid area.+ * Small helper component that renders a booker section in a specific grid area.*/export const BookerSection = forwardRef<HTMLDivElement, BookerSectionProps>(function BookerSection({ children, area, visible, className, ...props },diff --git a/packages/features/bookings/Booker/config.ts b/packages/features/bookings/Booker/config.tsindex 516db66c94b..c50d2c7817c 100644--- a/packages/features/bookings/Booker/config.ts+++ b/packages/features/bookings/Booker/config.ts@@ -141,8 +141,8 @@ export const getBookerSizeClassNames = ("[--booker-timeslots-width:240px] lg:[--booker-timeslots-width:280px]",// Small calendar defaultslayout === BookerLayouts.MONTH_VIEW && getBookerMetaClass("[--booker-meta-width:240px]"),- // Meta column get's wider in booking view to fit the full date on a single row in case- // of a multi occurance event. Also makes form less wide, which also looks better.+ // Meta column gets wider in booking view to fit the full date on a single row in case+ // of a multi occurence event. Also makes form less wide, which also looks better.layout === BookerLayouts.MONTH_VIEW &&bookerState === "booking" &&`[--booker-main-width:420px] ${getBookerMetaClass("lg:[--booker-meta-width:340px]")}`,diff --git a/packages/features/bookings/Booker/store.ts b/packages/features/bookings/Booker/store.tsindex 331217cecc5..7cddc54b2d5 100644--- a/packages/features/bookings/Booker/store.ts+++ b/packages/features/bookings/Booker/store.ts@@ -134,7 +134,7 @@ export type BookerStore = {initialize: (data: StoreInitializeType) => void;/*** Stored form state, used when user navigates back and- * forth between timeslots and form. Get's cleared on submit+ * forth between timeslots and form. Gets cleared on submit* to prevent sticky data.*/formValues: Record<string, any>;diff --git a/packages/features/bookings/components/EventTypeFilter.tsx b/packages/features/bookings/components/EventTypeFilter.tsxindex 7888a81851b..cf86eb8d5f1 100644--- a/packages/features/bookings/components/EventTypeFilter.tsx+++ b/packages/features/bookings/components/EventTypeFilter.tsx@@ -51,7 +51,7 @@ export const EventTypeFilter = () => {(item) => item?.team?.name || ""); // Add the team nameconst individualEvents = data.filter((el) => !el.team);- // push indivdual events to the start of grouped array+ // push individual events to the start of grouped arrayreturn individualEvents.length > 0 ? { user_own_event_types: individualEvents, ...grouped } : grouped;}, [eventTypes.data]);diff --git a/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.tsx b/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.tsxindex 095817395de..47bbb2fe960 100644--- a/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.tsx+++ b/packages/features/bookings/lib/book-event-form/booking-to-mutation-input-mapper.tsx@@ -95,7 +95,7 @@ export const mapBookingToMutationInput = ({// This method is here to ensure that the types are correct (recurring count is required),// as well as generate a unique ID for the recurring bookings and turn one single booking-// into an array of mutiple bookings based on the recurring count.+// into an array of multiple bookings based on the recurring count.// Other than that it forwards the mapping to mapBookingToMutationInput.export const mapRecurringBookingToMutationInput = (booking: BookingOptions,diff --git a/packages/features/bookings/lib/getBookingFields.ts b/packages/features/bookings/lib/getBookingFields.tsindex d113c0c80e2..05c1d1bc356 100644--- a/packages/features/bookings/lib/getBookingFields.ts+++ b/packages/features/bookings/lib/getBookingFields.ts@@ -315,7 +315,7 @@ export const ensureBookingInputsHaveSystemFields = ({// Backward Compatibility for SMS Reminder Number// Note: We still need workflows in `getBookingFields` due to Backward Compatibility. If we do a one time entry for all event-types, we can remove workflows from `getBookingFields`- // Also, note that even if Workflows don't explicity add smsReminderNumber field to bookingFields, it would be added as a side effect of this backward compatibility logic+ // Also, note that even if Workflows don't explicitly add smsReminderNumber field to bookingFields, it would be added as a side effect of this backward compatibility logicif (smsNumberSources.length &&!bookingFields.find((f) => getFieldIdentifier(f.name) !== getFieldIdentifier(SMS_REMINDER_NUMBER_FIELD))diff --git a/packages/features/bookings/lib/getBookingResponsesSchema.test.ts b/packages/features/bookings/lib/getBookingResponsesSchema.test.tsindex 8160b584edc..5e59511c51b 100644--- a/packages/features/bookings/lib/getBookingResponsesSchema.test.ts+++ b/packages/features/bookings/lib/getBookingResponsesSchema.test.ts@@ -717,7 +717,7 @@ describe("getBookingResponsesSchema", () => {});describe("multiemail field type", () => {- test("should succesfully parse a multiemail type field", async () => {+ test("should successfully parse a multiemail type field", async () => {const schema = getBookingResponsesSchema({bookingFields: [{@@ -794,7 +794,7 @@ describe("getBookingResponsesSchema", () => {);});- test("should succesfully parse a multiemail type field response, even when the value is just a string[Prefill needs it]", async () => {+ test("should successfully parse a multiemail type field response, even when the value is just a string[Prefill needs it]", async () => {const schema = getBookingResponsesSchema({bookingFields: [{@@ -833,7 +833,7 @@ describe("getBookingResponsesSchema", () => {});describe("multiselect field type", () => {- test("should succesfully parse a multiselect type field", async () => {+ test("should successfully parse a multiselect type field", async () => {const schema = getBookingResponsesSchema({bookingFields: [{@@ -870,7 +870,7 @@ describe("getBookingResponsesSchema", () => {testMultiselect: ["option1", "option-2"],});});- test("should succesfully parse a multiselect type field", async () => {+ test("should successfully parse a multiselect type field", async () => {const schema = getBookingResponsesSchema({bookingFields: [{@@ -950,7 +950,7 @@ describe("getBookingResponsesSchema", () => {});describe("multiselect field type", () => {- test("should succesfully parse a multiselect type field", async () => {+ test("should successfully parse a multiselect type field", async () => {const schema = getBookingResponsesSchema({bookingFields: [{@@ -1321,7 +1321,7 @@ describe("excluded email/domain validation", () => {});describe("require email/domain validation", () => {- test("should fail if the requried email/domain is not present", async () => {+ test("should fail if the required email/domain is not present", async () => {const requiredEmails = "gmail.com, [email protected], @yahoo.com";const schema = getBookingResponsesSchema({bookingFields: [diff --git a/packages/features/bookings/lib/getLocationOptionsForSelect.ts b/packages/features/bookings/lib/getLocationOptionsForSelect.tsindex 8a8963a0d41..14ae49799af 100644--- a/packages/features/bookings/lib/getLocationOptionsForSelect.ts+++ b/packages/features/bookings/lib/getLocationOptionsForSelect.ts@@ -22,7 +22,7 @@ export default function getLocationsOptionsForSelect(const translatedLocation = getTranslatedLocation(location, eventLocation, t);return {- // XYZ: is considered a namespace in i18next https://www.i18next.com/principles/namespaces and thus it get's cleaned up.+ // XYZ: is considered a namespace in i18next https://www.i18next.com/principles/namespaces and thus it gets cleaned up.label: translatedLocation || locationString,value: type,inputPlaceholder: t(eventLocation?.attendeeInputPlaceholder || ""),diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.tsindex 4cc96113a63..86fbf51186b 100644--- a/packages/features/bookings/lib/handleNewBooking.ts+++ b/packages/features/bookings/lib/handleNewBooking.ts@@ -701,7 +701,7 @@ async function handler();// no more freeUsers after subtracting notAvailableLuckyUsers from luckyUsers :(if (freeUsers.length === 0) break;- assertNonEmptyArray(freeUsers); // make sure TypeScript knows it too wih an assertion; the error will never be thrown.+ assertNonEmptyArray(freeUsers); // make sure TypeScript knows it too with an assertion; the error will never be thrown.// freeUsers is ensuredconst userIdsSet = new Set(users.map((user) => user.id));@@ -976,7 +976,7 @@ async function handler(organizerEmail = eventType.secondaryEmail.email;}- //udpate cal event responses with latest location value , later used by webhook+ //update cal event responses with latest location value , later used by webhookif (reqBody.calEventResponses)reqBody.calEventResponses["location"].value = {value: platformBookingLocation ?? bookingLocation,diff --git a/packages/features/bookings/lib/handleNewBooking/test/dynamic-group-booking.test.ts b/packages/features/bookings/lib/handleNewBooking/test/dynamic-group-booking.test.tsindex dc4718ea9d8..6ef1648c8d4 100644--- a/packages/features/bookings/lib/handleNewBooking/test/dynamic-group-booking.test.ts+++ b/packages/features/bookings/lib/handleNewBooking/test/dynamic-group-booking.test.ts@@ -137,7 +137,7 @@ describe("handleNewBooking", () => {timeout);- describe("Availablity Check During Booking", () => {+ describe("Availability Check During Booking", () => {test(`should fail a booking if there is already a conflicting booking in the first user's selectedCalendars`,async () => {diff --git a/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-scheduling.test.ts b/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-scheduling.test.tsindex 205efe22d12..516f65f03ba 100644--- a/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-scheduling.test.ts+++ b/packages/features/bookings/lib/handleNewBooking/test/team-bookings/collective-scheduling.test.ts@@ -60,7 +60,7 @@ describe("handleNewBooking", () => {describe("Collective Assignment", () => {describe("When there is no schedule set on eventType - Hosts schedules would be used", () => {test(- `succesfully creates a booking when all the hosts are free as per their schedules+ `successfully creates a booking when all the hosts are free as per their schedules- Destination calendars for event-type and non-first hosts are used to create calendar events`,async ({ emails }) => {@@ -375,7 +375,7 @@ describe("handleNewBooking", () => {describe("When there is a schedule set on eventType - Event Type common schedule would be used", () => {test(- `succesfully creates a booking when the users are available as per the common schedule selected in the event-type+ `successfully creates a booking when the users are available as per the common schedule selected in the event-type- Destination calendars for event-type and non-first hosts are used to create calendar events`,async ({ emails }) => {@@ -551,7 +551,7 @@ describe("handleNewBooking", () => {timeout);test(- `[Event Type with both Attendee Phone number and Email as required fields] succesfully creates a booking when the users are available as per the common schedule selected in the event-type+ `[Event Type with both Attendee Phone number and Email as required fields] successfully creates a booking when the users are available as per the common schedule selected in the event-type- Destination calendars for event-type and non-first hosts are used to create calendar events`,async ({ emails, sms }) => {@@ -788,7 +788,7 @@ describe("handleNewBooking", () => {);test(- `[Event Type with only Attendee Phone number as required field and Email as hidden field] succesfully creates a booking when the users are available as per the common schedule selected in the event-type+ `[Event Type with only Attendee Phone number as required field and Email as hidden field] successfully creates a booking when the users are available as per the common schedule selected in the event-type- Destination calendars for event-type and non-first hosts are used to create calendar events`,async ({ emails, sms }) => {@@ -1029,7 +1029,7 @@ describe("handleNewBooking", () => {timeout);test(- `[Event Type that requires confirmation with only Attendee Phone number as required field and Email as optional field] succesfully creates a booking when the users are available as per the common schedule selected in the event-type+ `[Event Type that requires confirmation with only Attendee Phone number as required field and Email as optional field] successfully creates a booking when the users are available as per the common schedule selected in the event-type- Destination calendars for event-type and non-first hosts are used to create calendar events`,async ({ emails, sms }) => {@@ -1931,7 +1931,7 @@ describe("handleNewBooking", () => {describe("Team(T1) not part of any org but the organizer is part of an organization(O1)", () => {test(- `succesfully creates a booking when all the hosts are free as per their schedules+ `successfully creates a booking when all the hosts are free as per their schedules- Destination calendars for event-type and non-first hosts are used to create calendar events- Reschedule and Cancel link in email are not of the org domain because the team is not part of any org`,diff --git a/packages/features/bookings/lib/handleSeats/test/handleSeats.test.ts b/packages/features/bookings/lib/handleSeats/test/handleSeats.test.tsindex b2b44588e2b..83186d23865 100644--- a/packages/features/bookings/lib/handleSeats/test/handleSeats.test.ts+++ b/packages/features/bookings/lib/handleSeats/test/handleSeats.test.ts@@ -2438,7 +2438,7 @@ describe("handleSeats", () => {const firstBookingEndTime = `${plus1DateString}T04:30:00Z`;const { dateString: plus2DateString } = getDate({ dateIncrement: 2 });- // Non-available time slot choosen (7:30PM - 8:00PM IST) while rescheduling+ // Non-available time slot chosen (7:30PM - 8:00PM IST) while reschedulingconst secondBookingStartTime = `${plus2DateString}T14:00:00Z`;const secondBookingEndTime = `${plus2DateString}T14:30:00Z`;diff --git a/packages/features/bookings/types.ts b/packages/features/bookings/types.tsindex 86aed0cc98d..7f68486f480 100644--- a/packages/features/bookings/types.ts+++ b/packages/features/bookings/types.ts@@ -68,7 +68,7 @@ export enum EventDetailBlocks {DURATION,LOCATION,REQUIRES_CONFIRMATION,- // Includes input to select # of occurences.+ // Includes input to select # of occurrences.OCCURENCES,PRICE,}diff --git a/packages/features/calendar-cache/api/cron.ts b/packages/features/calendar-cache/api/cron.tsindex 9044dc17735..56e24bd5500 100644--- a/packages/features/calendar-cache/api/cron.ts+++ b/packages/features/calendar-cache/api/cron.ts@@ -91,7 +91,7 @@ const handleCalendarsToWatch = async () => {return result;};-// This cron is used to activate and renew calendar subcriptions+// This cron is used to activate and renew calendar subscriptionsconst handler = defaultResponder(async (request: NextApiRequest) => {validateRequest(request);await Promise.allSettled([handleCalendarsToWatch(), handleCalendarsToUnwatch()]);diff --git a/packages/features/calendars/weeklyview/components/calendar.stories.mdx b/packages/features/calendars/weeklyview/components/calendar.stories.mdxindex 7ddc72c4449..02dd7e0deeb 100644--- a/packages/features/calendars/weeklyview/components/calendar.stories.mdx+++ b/packages/features/calendars/weeklyview/components/calendar.stories.mdx@@ -17,7 +17,7 @@ import { Calendar } from "./Calendar";## Props-The Args Table below shows you a breakdown of what props can be passed into the Calendar component. All props should have a desciption to make it self explanitory to see what is going on.+The Args Table below shows you a breakdown of what props can be passed into the Calendar component. All props should have a description to make it self explanatory to see what is going on.<CustomArgsTable of="calendar" />diff --git a/packages/features/calendars/weeklyview/components/currentTime/index.tsx b/packages/features/calendars/weeklyview/components/currentTime/index.tsxindex 8276219e4b8..56c94b78732 100644--- a/packages/features/calendars/weeklyview/components/currentTime/index.tsx+++ b/packages/features/calendars/weeklyview/components/currentTime/index.tsx@@ -39,7 +39,7 @@ export function CurrentTime() {if (!currentTimeRef.current || scrolledIntoView) return;// Within a small timeout so element has time to render.setTimeout(() => {- // eslint-disable-next-line @calcom/eslint/no-scroll-into-view-embed -- Does't seem to cause any issue. Put it under condition if needed+ // eslint-disable-next-line @calcom/eslint/no-scroll-into-view-embed -- Doesn't seem to cause any issue. Put it under condition if neededcurrentTimeRef?.current?.scrollIntoView({ block: "center" });setScrolledIntoView(true);}, 100);diff --git a/packages/features/calendars/weeklyview/types/state.ts b/packages/features/calendars/weeklyview/types/state.tsindex 9924c2b2540..e9a673c6a7f 100644--- a/packages/features/calendars/weeklyview/types/state.ts+++ b/packages/features/calendars/weeklyview/types/state.ts@@ -87,7 +87,7 @@ export type CalendarState = {loading?: boolean;/** Disables all actions on Events*/eventsDisabled?: boolean;- /** If you don't want the date to be scrollable past a certian date */+ /** If you don't want the date to be scrollable past a certain date */minDate?: Date;/** If you don't want the date to be scrollable past a certain date */maxDate?: Date;diff --git a/packages/features/cityTimezones/cityTimezonesHandler.ts b/packages/features/cityTimezones/cityTimezonesHandler.tsindex 28db70544cb..8a97ca80905 100644--- a/packages/features/cityTimezones/cityTimezonesHandler.ts+++ b/packages/features/cityTimezones/cityTimezonesHandler.ts@@ -19,7 +19,7 @@ export const cityTimezonesHandler = async () => {}});const uniqueCities = Object.values(topPopulatedCities);- /** Add specific overries in here */+ /** Add specific overrides in here */uniqueCities.forEach((city) => {if (city.city === "London") city.timezone = "Europe/London";if (city.city === "Londonderry") city.city = "London";diff --git a/packages/features/ee/billing/api/webhook/__handler.ts b/packages/features/ee/billing/api/webhook/__handler.tsindex b4f21aeb854..f67be10ea1f 100644--- a/packages/features/ee/billing/api/webhook/__handler.ts+++ b/packages/features/ee/billing/api/webhook/__handler.ts@@ -58,6 +58,6 @@ export const stripeWebhookHandler = (handlers: SWHandlers) => async (req: NextApconst handler = (await handlerGetter())?.default;// auto catch unsupported Stripe events.if (!handler) throw new HttpCode(202, `Unhandled Stripe Webhook event type ${event.type}`);- // @ts-expect-error - we know the handler is defined and accpets the data type+ // @ts-expect-error - we know the handler is defined and accepts the data typereturn await handler(event.data);};diff --git a/packages/features/ee/billing/teams/index.ts b/packages/features/ee/billing/teams/index.tsindex 482174b2036..308d43a1788 100644--- a/packages/features/ee/billing/teams/index.ts+++ b/packages/features/ee/billing/teams/index.ts@@ -13,7 +13,7 @@ export class TeamBilling {if (IS_TEAM_BILLING_ENABLED) return new InternalTeamBilling(team);return new StubTeamBilling(team);}- /** Initialize multuple team billings at once for bulk operations */+ /** Initialize multiple team billings at once for bulk operations */static initMany(teams: TeamBillingInput[]) {return teams.map((team) => TeamBilling.init(team));}diff --git a/packages/features/ee/cal-ai-phone/promptTemplates.ts b/packages/features/ee/cal-ai-phone/promptTemplates.tsindex 3560abdcdaf..010004d3034 100644--- a/packages/features/ee/cal-ai-phone/promptTemplates.ts+++ b/packages/features/ee/cal-ai-phone/promptTemplates.ts@@ -48,7 +48,7 @@ export const DEFAULT_PROMPT_VALUE = `## You are helping user set up a call with## Task Steps1. I am here to learn more about your issue and help schedule an appointment with our support team.2. If {{email}} is not unknown then Use name {{name}} and email {{email}} for creating booking else Ask for user name and email and Confirm the name and email with user by reading it back to user.- 3. Ask user for \"When would you want to meet with one of our representive\".+ 3. Ask user for \"When would you want to meet with one of our representatives\".4. Call function check_availability to check for availability in the user provided time range.- if availability exists, inform user about the availability range (do not repeat the detailed available slot) and ask user to choose from it. Make sure user chose a slot within detailed available slot.- if availability does not exist, ask user to select another time range for the appointment, repeat this step 3.diff --git a/packages/features/ee/impersonation/lib/ImpersonationProvider.ts b/packages/features/ee/impersonation/lib/ImpersonationProvider.tsindex 3d364dbf6dc..f3b33d2c5aa 100644--- a/packages/features/ee/impersonation/lib/ImpersonationProvider.ts+++ b/packages/features/ee/impersonation/lib/ImpersonationProvider.ts@@ -216,7 +216,7 @@ async function isReturningToSelf({ session, creds }: { session: Session | null;if (returningUser) {// Skip for none org usersconst inOrg =- returningUser.organizationId || // Keep for backwards compatability+ returningUser.organizationId || // Keep for backwards compatibilityreturningUser.profiles.some((profile) => profile.organizationId !== undefined); // New way of seeing if the user has a profile in orgs.if (returningUser.role !== "ADMIN" && !inOrg) return;diff --git a/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx b/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsxindex 4c4fb14959d..b01b9a15c03 100644--- a/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx+++ b/packages/features/ee/organizations/components/CreateANewOrganizationForm.tsx@@ -288,7 +288,7 @@ const CreateANewOrganizationFormChild = ({</>)}- {/* This radio group does nothing - its just for visuall purposes */}+ {/* This radio group does nothing - its just for visual purposes */}{!isAdmin && (<><div className="bg-subtle space-y-5 rounded-lg p-5">diff --git a/packages/features/ee/organizations/context/provider.ts b/packages/features/ee/organizations/context/provider.tsindex 28e8049564a..dec1c108e78 100644--- a/packages/features/ee/organizations/context/provider.ts+++ b/packages/features/ee/organizations/context/provider.ts@@ -7,7 +7,7 @@ import type { teamMetadataSchema } from "@calcom/prisma/zod-utils";/*** Organization branding*- * Entries consist of the different properties that constitues a brand for an organization.+ * Entries consist of the different properties that constitute a brand for an organization.*/export type OrganizationBranding =| ({diff --git a/packages/features/ee/round-robin/utils/getTeamMembers.ts b/packages/features/ee/round-robin/utils/getTeamMembers.tsindex 7e6e36fb0f4..6ef67d556b5 100644--- a/packages/features/ee/round-robin/utils/getTeamMembers.ts+++ b/packages/features/ee/round-robin/utils/getTeamMembers.ts@@ -15,7 +15,7 @@ type Attendee = {noShow: boolean | null;};-// TODO: We have far too many differnt types here. Theyre all users or hosts at the end of the day.+// TODO: We have far too many different types here. They're all users or hosts at the end of the day.type OrganizerType =| getEventTypeResponse["hosts"][number]["user"]| IsFixedAwareUserdiff --git a/packages/features/ee/teams/components/MemberInvitationModal.tsx b/packages/features/ee/teams/components/MemberInvitationModal.tsxindex d73b0800461..3e9ea74b7da 100644--- a/packages/features/ee/teams/components/MemberInvitationModal.tsx+++ b/packages/features/ee/teams/components/MemberInvitationModal.tsx@@ -234,7 +234,7 @@ export default function MemberInvitationModal(props: MemberInvitationModalProps)<Form form={newMemberFormMethods} handleSubmit={(values) => props.onSubmit(values, resetFields)}><div className="mb-10 mt-6 space-y-6">- {/* Indivdual Invite */}+ {/* Individual Invite */}{modalImportMode === "INDIVIDUAL" && (<Controllername="emailOrUsername"diff --git a/packages/features/ee/users/components/UsersTable.tsx b/packages/features/ee/users/components/UsersTable.tsxindex 6581c7c2b1d..60669a5886b 100644--- a/packages/features/ee/users/components/UsersTable.tsx+++ b/packages/features/ee/users/components/UsersTable.tsx@@ -42,9 +42,9 @@ function UsersTableBare() {const mutation = trpc.viewer.users.delete.useMutation({onSuccess: async () => {showToast("User has been deleted", "success");- // Lets not invalidated the whole cache, just remove the user from the cache.- // usefull cause in prod this will be fetching 100k+ users- // FIXME: Tested locally and it doesnt't work, need to investigate+ // Lets not invalidate the whole cache, just remove the user from the cache.+ // Useful cause in prod this will be fetching 100k+ users+ // FIXME: Tested locally and it doesn't work, need to investigateutils.viewer.admin.listPaginated.setInfiniteData({ limit: FETCH_LIMIT }, (cachedData) => {if (!cachedData) {return {diff --git a/packages/features/ee/workflows/lib/reminders/templates/smsReminderTemplate.ts b/packages/features/ee/workflows/lib/reminders/templates/smsReminderTemplate.tsindex eec9257a9df..be3ab1c5be9 100644--- a/packages/features/ee/workflows/lib/reminders/templates/smsReminderTemplate.ts+++ b/packages/features/ee/workflows/lib/reminders/templates/smsReminderTemplate.ts@@ -33,7 +33,7 @@ const smsReminderTemplate = (name ? ` ${name}` : ``}, this is a reminder that your meeting (${eventName}) with ${attendee} is on ${eventDate} at ${startTime} ${timeZone}.`;- //Twilio recomments message to be no longer than 320 characters+ //Twilio recommends message to be no longer than 320 charactersif (templateOne.length <= 320) return templateOne;const templateTwo = `Hi, this is a reminder that your meeting with ${attendee} is on ${eventDate} at ${startTime} ${timeZone}`;diff --git a/packages/features/ee/workflows/lib/test/workflows.test.ts b/packages/features/ee/workflows/lib/test/workflows.test.tsindex 8118630c3aa..81dd3988d6c 100644--- a/packages/features/ee/workflows/lib/test/workflows.test.ts+++ b/packages/features/ee/workflows/lib/test/workflows.test.ts@@ -326,7 +326,7 @@ describe("deleteRemindersOfActiveOnIds", () => {let removedActiveOnIds = [1];const activeOnIds = [2];- //workflow removed from team 2, but still acitve on team 3 --> so reminder should not be removed+ //workflow removed from team 2, but still active on team 3 --> so reminder should not be removedawait deleteRemindersOfActiveOnIds({removedActiveOnIds,workflowSteps: workflow?.steps || [],@@ -613,7 +613,7 @@ describe("scheduleBookingReminders", () => {null //teamId);- // two sms schould be scheduled+ // two sms should be scheduledexpectSMSWorkflowToBeTriggered({sms,toNumber: "000",diff --git a/packages/features/eventtypes/components/CheckedTeamSelect.tsx b/packages/features/eventtypes/components/CheckedTeamSelect.tsxindex a8e1e6e1a79..652bc778af2 100644--- a/packages/features/eventtypes/components/CheckedTeamSelect.tsx+++ b/packages/features/eventtypes/components/CheckedTeamSelect.tsx@@ -74,7 +74,7 @@ export const CheckedTeamSelect = ({className={customClassNames?.hostsSelect?.select}innerClassNames={customClassNames?.hostsSelect?.innerClassNames}/>- {/* This class name conditional looks a bit odd but it allows a seemless transition when using autoanimate+ {/* This class name conditional looks a bit odd but it allows a seamless transition when using autoanimate- Slides down from the top instead of just teleporting in from nowhere*/}<ulclassName={classNames(diff --git a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsxindex d35a40699dc..16c42fa902a 100644--- a/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx+++ b/packages/features/eventtypes/components/ChildrenEventTypeSelect.tsx@@ -75,7 +75,7 @@ export const ChildrenEventTypeSelect = ({isMulti{...props}/>- {/* This class name conditional looks a bit odd but it allows a seemless transition when using autoanimate+ {/* This class name conditional looks a bit odd but it allows a seamless transition when using autoanimate- Slides down from the top instead of just teleporting in from nowhere*/}<ulclassName={classNames(diff --git a/packages/features/eventtypes/components/EventTypeLayout.tsx b/packages/features/eventtypes/components/EventTypeLayout.tsxindex 526060cd905..0cbae6ce915 100644--- a/packages/features/eventtypes/components/EventTypeLayout.tsx+++ b/packages/features/eventtypes/components/EventTypeLayout.tsx@@ -146,7 +146,7 @@ function EventTypeSingleLayout({<ButtonGroup combined containerProps={{ className: "border-default hidden lg:flex" }}>{!isManagedEventType && (<>- {/* We have to warp this in tooltip as it has a href which disabels the tooltip on buttons */}+ {/* We have to warp this in tooltip as it has a href which disables the tooltip on buttons */}{!isPlatform && (<Tooltip content={t("preview")} side="bottom" sideOffset={4}><Buttondiff --git a/packages/features/eventtypes/lib/getPublicEvent.ts b/packages/features/eventtypes/lib/getPublicEvent.tsindex 9a814463faf..9e1fd36f977 100644--- a/packages/features/eventtypes/lib/getPublicEvent.ts+++ b/packages/features/eventtypes/lib/getPublicEvent.ts@@ -235,7 +235,7 @@ export const getPublicEvent = async (const defaultEvent = getDefaultEvent(eventSlug);let locations = defaultEvent.locations ? (defaultEvent.locations as LocationObject[]) : [];- // Get the prefered location type from the first user+ // Get the preferred location type from the first userconst firstUsersMetadata = userMetadataSchema.parse(users[0].metadata || {});const preferedLocationType = firstUsersMetadata?.defaultConferencingApp;@@ -243,7 +243,7 @@ export const getPublicEvent = async (const foundApp = getAppFromSlug(preferedLocationType.appSlug);const appType = foundApp?.appData?.location?.type;if (appType) {- // Replace the location with the prefered location type+ // Replace the location with the preferred location type// This will still be default to daily if the app is not foundlocations = [{ type: appType, link: preferedLocationType.appLink }] as LocationObject[];}diff --git a/packages/features/form-builder/Components.tsx b/packages/features/form-builder/Components.tsxindex 19c89614b8e..7c34f23b888 100644--- a/packages/features/form-builder/Components.tsx+++ b/packages/features/form-builder/Components.tsx@@ -546,4 +546,4 @@ export const Components: Record<FieldType, Component> = {},},} as const;-// Should use `statisfies` to check if the `type` is from supported types. But satisfies doesn't work with Next.js config+// Should use `satisfies` to check if the `type` is from supported types. But satisfies doesn't work with Next.js configdiff --git a/packages/features/form-builder/FormBuilder.tsx b/packages/features/form-builder/FormBuilder.tsxindex 908d28a1f38..ea46c023d99 100644--- a/packages/features/form-builder/FormBuilder.tsx+++ b/packages/features/form-builder/FormBuilder.tsx@@ -770,7 +770,7 @@ function VariantFields({const fieldTypeConfigVariantsConfig = fieldTypesConfigMap[fieldForm.getValues("type")]?.variantsConfig;if (!fieldTypeConfigVariantsConfig) {- throw new Error("Coniguration Issue: FieldType doesn't have `variantsConfig`");+ throw new Error("Configuration Issue: FieldType doesn't have `variantsConfig`");}const variantToggleLabel = t(fieldTypeConfigVariantsConfig.toggleLabel || "");diff --git a/packages/features/form-builder/utils/variantsConfig.ts b/packages/features/form-builder/utils/variantsConfig.tsindex 772716d8531..0a099a6932d 100644--- a/packages/features/form-builder/utils/variantsConfig.ts+++ b/packages/features/form-builder/utils/variantsConfig.ts@@ -30,7 +30,7 @@ function getTranslatedConfigVariants(configVariants: ConfigVariants, translate:}/**- * Get's the field's variantsConfig and if not available, then it will get the default variantsConfig from the fieldTypesConfigMap+ * Gets the field's variantsConfig and if not available, then it will get the default variantsConfig from the fieldTypesConfigMap*/export const getConfig = (field: Pick<Field, "variantsConfig" | "type">) => {const fieldVariantsConfig = field.variantsConfig;diff --git a/packages/features/form/components/Select.tsx b/packages/features/form/components/Select.tsxindex 25db041362e..369118dd456 100644--- a/packages/features/form/components/Select.tsx+++ b/packages/features/form/components/Select.tsx@@ -17,7 +17,7 @@ export const InputComponent = <Option, IsMulti extends boolean, Group extends Gr}: InputProps<Option, IsMulti, Group>) => {return (<components.Input- // disables our default form focus hightlight on the react-select input element+ // disables our default form focus highlight on the react-select input elementinputClassName={classNames("focus:ring-0 focus:ring-offset-0", inputClassName)}{...props}/>diff --git a/packages/features/insights/server/routing-events.ts b/packages/features/insights/server/routing-events.tsindex f38366ad129..6db54b89ee6 100644--- a/packages/features/insights/server/routing-events.ts+++ b/packages/features/insights/server/routing-events.ts@@ -493,12 +493,12 @@ class RoutingEventsInsights {const teamConditions = [];- // @ts-expect-error it doest exist but TS isnt smart enough when its unmber or int filter+ // @ts-expect-error it doesn't exist but TS isn't smart enough when it's a number or int filterif (formsWhereCondition.teamId?.in) {- // @ts-expect-error it doest exist but TS isnt smart enough when its unmber or int filter+ // @ts-expect-error it doesn't exist but TS isn't smart enough when it's a number or int filterteamConditions.push(`f."teamId" IN (${formsWhereCondition.teamId.in.join(",")})`);}- // @ts-expect-error it doest exist but TS isnt smart enough when its unmber or int filter+ // @ts-expect-error it doesn't exist but TS isn't smart enough when it's a number or int filterif (!formsWhereCondition.teamId?.in && userId) {teamConditions.push(`f."userId" = ${userId}`);}@@ -510,7 +510,7 @@ class RoutingEventsInsights {? Prisma.sql`AND ${Prisma.raw(teamConditions.join(" AND "))}`: Prisma.sql``;- // If youre at this point wondering what this does. This groups the responses by form and field and counts the number of responses for each option that don't have a booking.+ // If you're at this point wondering what this does. This groups the responses by form and field and counts the number of responses for each option that don't have a booking.const result = await prisma.$queryRaw<{formId: string;@@ -717,12 +717,12 @@ class RoutingEventsInsights {const teamConditions = [];- // @ts-expect-error it does exist but TS isn't smart enough when it's number or int filter+ // @ts-expect-error it does exist but TS isn't smart enough when it's a number or int filterif (formsWhereCondition.teamId?.in) {// @ts-expect-error same as aboveteamConditions.push(`f."teamId" IN (${formsWhereCondition.teamId.in.join(",")})`);}- // @ts-expect-error it does exist but TS isn't smart enough when it's number or int filter+ // @ts-expect-error it does exist but TS isn't smart enough when it's a number or int filterif (!formsWhereCondition.teamId?.in && userId) {teamConditions.push(`f."userId" = ${userId}`);}@@ -972,12 +972,12 @@ class RoutingEventsInsights {const teamConditions = [];- // @ts-expect-error it does exist but TS isn't smart enough when it's number or int filter+ // @ts-expect-error it does exist but TS isn't smart enough when it's a number or int filterif (formsWhereCondition.teamId?.in) {// @ts-expect-error same as aboveteamConditions.push(`f."teamId" IN (${formsWhereCondition.teamId.in.join(",")})`);}- // @ts-expect-error it does exist but TS isn't smart enough when it's number or int filter+ // @ts-expect-error it does exist but TS isn't smart enough when it's a number or int filterif (!formsWhereCondition.teamId?.in && userId) {teamConditions.push(`f."userId" = ${userId}`);}diff --git a/packages/features/schedules/lib/use-schedule/useSlotsForDate.ts b/packages/features/schedules/lib/use-schedule/useSlotsForDate.tsindex 91d3d11bdab..8014fa36896 100644--- a/packages/features/schedules/lib/use-schedule/useSlotsForDate.ts+++ b/packages/features/schedules/lib/use-schedule/useSlotsForDate.ts@@ -3,7 +3,7 @@ import { useMemo } from "react";import type { Slots } from "./types";/**- * Get's slots for a specific date from the schedule cache.+ * Gets slots for a specific date from the schedule cache.* @param date Format YYYY-MM-DD* @param scheduleCache Instance of useScheduleWithCache*/diff --git a/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx b/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsxindex 2f3db93e086..5ffb15d826c 100644--- a/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx+++ b/packages/features/settings/outOfOffice/OutOfOfficeEntriesList.tsx@@ -35,7 +35,7 @@ export const OutOfOfficeEntriesList = () => {useFormState;},onError: () => {- showToast(`An error ocurred`, "error");+ showToast(`An error occurred`, "error");},});diff --git a/packages/features/shell/SideBar.tsx b/packages/features/shell/SideBar.tsxindex 2f5526cf82f..71760142fc9 100644--- a/packages/features/shell/SideBar.tsx+++ b/packages/features/shell/SideBar.tsx@@ -87,7 +87,7 @@ export function SideBar({ bannersHeight, user }: SideBarProps) {onClick: (e: { preventDefault: () => void }) => {e.preventDefault();setIsReferalLoading(true);- // Create an artificial delay to show the loading state so it doesnt flicker if this request is fast+ // Create an artificial delay to show the loading state so it doesn't flicker if this request is fastsetTimeout(() => {fetchAndCopyToClipboard(fetch("/api/generate-referral-link", {diff --git a/packages/features/tasker/internal-tasker.ts b/packages/features/tasker/internal-tasker.tsindex ffe65dc125d..7cdc5572b55 100644--- a/packages/features/tasker/internal-tasker.ts+++ b/packages/features/tasker/internal-tasker.ts@@ -4,7 +4,7 @@ import tasksMap from "./tasks";/*** This is the default internal Tasker that uses the Task repository to create tasks.- * It doens't have any external dependencies and is suitable for most use cases.+ * It doesn't have any external dependencies and is suitable for most use cases.* To use a different Tasker, you can create a new class that implements the Tasker interface.* Then, you can use the TaskerFactory to select the new Tasker.*/diff --git a/packages/features/timezone-buddy/components/HoverOverview.tsx b/packages/features/timezone-buddy/components/HoverOverview.tsxindex c100cd398b8..d511614943f 100644--- a/packages/features/timezone-buddy/components/HoverOverview.tsx+++ b/packages/features/timezone-buddy/components/HoverOverview.tsx@@ -140,7 +140,7 @@ export function HoverOverview() {);return (- <div ref={el} className="absoulte inset-0 w-full">+ <div ref={el} className="absolute inset-0 w-full"><div className="bg-default/80 absolute" style={leftWhiteout} /><div className="bg-default/80 absolute" style={rightWhiteout} /><div className="border-emphasis border border-dashed" style={position} />diff --git a/packages/features/timezone-buddy/store.ts b/packages/features/timezone-buddy/store.tsindex bb0718e145c..46d8b684bad 100644--- a/packages/features/timezone-buddy/store.ts+++ b/packages/features/timezone-buddy/store.ts@@ -32,7 +32,7 @@ type TimezoneBuddyState = TimezoneBuddyProps & {export type TimezoneBuddyStore = ReturnType<typeof createTimezoneBuddyStore>;/**- * Differnt type of zustand store compared to what we are used to+ * Different type of zustand store compared to what we are used to* This is a function that returns a store instead of a hook. This allows us to properly set the initial state of the store* from the props passed in to the component.*/diff --git a/packages/features/users/components/UserTable/BulkActions/TeamList.tsx b/packages/features/users/components/UserTable/BulkActions/TeamList.tsxindex beba36ae921..7b73a5bfbc5 100644--- a/packages/features/users/components/UserTable/BulkActions/TeamList.tsx+++ b/packages/features/users/components/UserTable/BulkActions/TeamList.tsx@@ -42,7 +42,7 @@ export function TeamListBulkAction({ table }: Props) {"success");// Optimistically update the data from query trpc cache listMembers- // We may need to set this data instread of invalidating. Will see how performance handles it+ // We may need to set this data instead of invalidating. Will see how performance handles itutils.viewer.organizations.listMembers.invalidate();// Clear the selected valuesdiff --git a/packages/features/users/components/UserTable/DeleteMemberModal.tsx b/packages/features/users/components/UserTable/DeleteMemberModal.tsxindex a4f2ba7377c..2447eb9bdae 100644--- a/packages/features/users/components/UserTable/DeleteMemberModal.tsx+++ b/packages/features/users/components/UserTable/DeleteMemberModal.tsx@@ -57,7 +57,7 @@ export function DeleteMemberModal({title={t("remove_member")}confirmBtnText={t("confirm_remove_member")}onConfirm={() => {- // Shouldnt ever happen just for type safety+ // Shouldn't ever happen just for type safetyif (!session?.user.org?.id || !state?.deleteMember?.user?.id) return;removeMemberMutation.mutate({diff --git a/packages/features/users/components/UserTable/EditSheet/EditUserForm.tsx b/packages/features/users/components/UserTable/EditSheet/EditUserForm.tsxindex fe536d477a2..8177c245738 100644--- a/packages/features/users/components/UserTable/EditSheet/EditUserForm.tsx+++ b/packages/features/users/components/UserTable/EditSheet/EditUserForm.tsx@@ -159,7 +159,7 @@ export function EditForm({avatar: values.avatar,bio: values.bio,timeZone: values.timeZone,- // @ts-expect-error theyre there in local types but for some reason it errors?+ // @ts-expect-error they're there in local types but for some reason it errors?attributeOptions: values.attributes? // @ts-expect-error same as above{ userId: selectedUser?.id ?? "", attributes: values.attributes }