From 6de715b884e84e0d6409c5f430c01e3d0a120c63 Mon Sep 17 00:00:00 2001 From: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> Date: Thu, 12 Jun 2025 12:37:38 +0200 Subject: [PATCH] feat: Round Robin timestamp basis (#21337) * add rrTimeStampBasis to prisma schema * add rr time stamp basis setting * update migration * add getLuckyUser logic * add rrTimestampBasis to tests * add load balancing warning message * disable load balancing logic * disable load balancing in event type settings * add missing translations * fix UI * disable load balancing on all team event types * don't show routing forms in router position * use correct interval times * fix variable naming * fix event type update handler * add test to booking.test.ts * add test for getting interval times * remove not needed prop * fix label * improve warning message * fix removing maxLeadTreshold * fix typo * fix disabling maxLeadThreshold * add back missing translation * improve rr reset interval label * fix rr_load_balancing_disabled text * improve test * fix description * only use rrTimestampBasis in weights round robin * fix dropdown width --------- Co-authored-by: CarinaWolli --- .../controllers/slots.controller.ts | 26 ++-- .../forgot-password/forgot-password-view.tsx | 2 +- apps/web/public/static/locales/ar/common.json | 1 - apps/web/public/static/locales/az/common.json | 2 - apps/web/public/static/locales/bg/common.json | 2 - apps/web/public/static/locales/ca/common.json | 2 - apps/web/public/static/locales/cs/common.json | 2 - apps/web/public/static/locales/da/common.json | 2 - apps/web/public/static/locales/de/common.json | 4 +- apps/web/public/static/locales/el/common.json | 2 - apps/web/public/static/locales/en/common.json | 11 +- .../public/static/locales/es-419/common.json | 2 - apps/web/public/static/locales/es/common.json | 2 - apps/web/public/static/locales/et/common.json | 2 - apps/web/public/static/locales/eu/common.json | 2 - apps/web/public/static/locales/fi/common.json | 2 - apps/web/public/static/locales/fr/common.json | 2 - apps/web/public/static/locales/he/common.json | 2 - apps/web/public/static/locales/hu/common.json | 2 - apps/web/public/static/locales/it/common.json | 2 - apps/web/public/static/locales/ja/common.json | 2 - apps/web/public/static/locales/km/common.json | 2 - apps/web/public/static/locales/ko/common.json | 2 - apps/web/public/static/locales/nl/common.json | 2 - apps/web/public/static/locales/no/common.json | 2 - apps/web/public/static/locales/pl/common.json | 1 - .../public/static/locales/pt-BR/common.json | 2 - apps/web/public/static/locales/pt/common.json | 2 - apps/web/public/static/locales/ro/common.json | 2 - apps/web/public/static/locales/ru/common.json | 2 - .../public/static/locales/sk-SK/common.json | 2 - apps/web/public/static/locales/sr/common.json | 2 - apps/web/public/static/locales/sv/common.json | 2 - apps/web/public/static/locales/tr/common.json | 1 - apps/web/public/static/locales/uk/common.json | 2 - apps/web/public/static/locales/vi/common.json | 2 - .../public/static/locales/zh-CN/common.json | 2 - .../public/static/locales/zh-TW/common.json | 2 - .../components/hooks/useInitialFormValues.ts | 2 +- .../features/bookings/lib/handleNewBooking.ts | 1 + .../handleNewBooking/getEventTypesFromDB.ts | 1 + .../lib/handleChildrenEventTypes.ts | 6 +- .../components/RoundRobinResetInterval.tsx | 99 ++++------------ .../teams/components/RoundRobinSettings.tsx | 88 ++++++++++++++ .../components/RoundRobinTimestampBasis.tsx | 55 +++++++++ .../ee/teams/pages/team-settings-view.tsx | 4 +- .../assignment/EventTeamAssignmentTab.tsx | 40 +++++-- .../insights/server/virtual-queues.ts | 1 + .../bookings/filterHostsByLeadThreshold.ts | 8 +- packages/lib/bookings/getRoutedUsers.ts | 8 +- packages/lib/defaultEvents.ts | 1 + packages/lib/server/getLuckyUser.test.ts | 106 ++++++++++++++--- packages/lib/server/getLuckyUser.ts | 111 +++++++++++++++--- packages/lib/server/queries/teams/index.ts | 1 + .../lib/server/repository/booking.test.ts | 59 +++++++++- packages/lib/server/repository/booking.ts | 25 +++- packages/lib/server/repository/eventType.ts | 3 + .../migration.sql | 5 + packages/prisma/schema.prisma | 6 + .../viewer/eventTypes/update.handler.ts | 7 +- .../routers/viewer/teams/update.handler.ts | 20 +++- .../routers/viewer/teams/update.schema.ts | 2 + 62 files changed, 552 insertions(+), 215 deletions(-) create mode 100644 packages/features/ee/teams/components/RoundRobinSettings.tsx create mode 100644 packages/features/ee/teams/components/RoundRobinTimestampBasis.tsx create mode 100644 packages/prisma/migrations/20250527092133_add_rr_timestamp_basis_to_team/migration.sql diff --git a/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.ts b/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.ts index 341af28a25..18b5b0064c 100644 --- a/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.ts +++ b/apps/api/v2/src/modules/slots/slots-2024-04-15/controllers/slots.controller.ts @@ -158,19 +158,19 @@ export class SlotsController_2024_04_15 { @Req() req: ExpressRequest ): Promise> { try { - const isTeamEvent = - query.isTeamEvent === undefined - ? await this.slotsService.checkIfIsTeamEvent(query.eventTypeId) - : query.isTeamEvent; - const availableSlots = await getAvailableSlots({ - input: { - ...query, - isTeamEvent, - }, - ctx: { - req, - }, - }); + const isTeamEvent = + query.isTeamEvent === undefined + ? await this.slotsService.checkIfIsTeamEvent(query.eventTypeId) + : query.isTeamEvent; + const availableSlots = await getAvailableSlots({ + input: { + ...query, + isTeamEvent, + }, + ctx: { + req, + }, + }); const { slots } = await this.slotsOutputService.getOutputSlots( availableSlots, diff --git a/apps/web/modules/auth/forgot-password/forgot-password-view.tsx b/apps/web/modules/auth/forgot-password/forgot-password-view.tsx index 7259de6c8c..634a6976e7 100644 --- a/apps/web/modules/auth/forgot-password/forgot-password-view.tsx +++ b/apps/web/modules/auth/forgot-password/forgot-password-view.tsx @@ -7,8 +7,8 @@ import type { CSSProperties, SyntheticEvent } from "react"; import React from "react"; import { useLocale } from "@calcom/lib/hooks/useLocale"; -import { EmailField } from "@calcom/ui/components/form"; import { Button } from "@calcom/ui/components/button"; +import { EmailField } from "@calcom/ui/components/form"; import AuthContainer from "@components/ui/AuthContainer"; diff --git a/apps/web/public/static/locales/ar/common.json b/apps/web/public/static/locales/ar/common.json index 873f1df358..a223e6701b 100644 --- a/apps/web/public/static/locales/ar/common.json +++ b/apps/web/public/static/locales/ar/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "ليس لديك الصلاحية لإنشاء مؤسسة لهذا البريد الإلكتروني", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "ليس لديك الصلاحية لنقل فريق واحد أو أكثر", "organization_has_subscription_already": "المؤسسة لديها اشتراك بالفعل", - "rr_reset_interval": "فترة إعادة تعيين الترتيب الدوري", "interval": "الفترة", "rr_reset_interval_description": "تحدد مدى تكرار إعادة تعيين عدد الحجوزات في الترتيب الدوري لضمان توزيع متوازن.", "daily": "يوميًا", diff --git a/apps/web/public/static/locales/az/common.json b/apps/web/public/static/locales/az/common.json index 970c9cc87a..108106d26e 100644 --- a/apps/web/public/static/locales/az/common.json +++ b/apps/web/public/static/locales/az/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Bu e-poçt üçün təşkilat yaratmağa icazəniz yoxdur", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Bir və ya bir neçə komandanı köçürməyə icazəniz yoxdur", "organization_has_subscription_already": "Təşkilatın artıq abunəliyi var", - "rr_reset_interval": "Round Robin Sıfırlama İntervalı", "interval": "İnterval", "rr_reset_interval_description": "Tarazlı paylaşımı təmin etmək üçün round robin rezervasiya sayının nə qədər tez-tez sıfırlanacağını müəyyən edir.", "daily": "Gündəlik", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Bu istifadəçilər arasında artıq əks yönləndirmə mövcuddur.", "previous_ooo_empty_title": "Əvvəlki OOO tapılmadı", "previous": "Əvvəlki", - "rr_interval_successfully_updated": "Round Robin intervalı uğurla yeniləndi", "trial_mode": "Sınaq rejimi", "inactive_team_plan": "Qeyri-aktiv komanda planı", "inactive_team_plan_description": "Komanda planınız qeyri-aktivdir. Abunəliyinizi yoxlayın və ya müştəri dəstəyi ilə əlaqə saxlayın", diff --git a/apps/web/public/static/locales/bg/common.json b/apps/web/public/static/locales/bg/common.json index 05067588a0..d5fa7de411 100644 --- a/apps/web/public/static/locales/bg/common.json +++ b/apps/web/public/static/locales/bg/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Нямате разрешение да създадете организация за този имейл", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Нямате разрешение да мигрирате един или повече от екипите", "organization_has_subscription_already": "Организацията вече има абонамент", - "rr_reset_interval": "Интервал за нулиране на Round Robin", "interval": "Интервал", "rr_reset_interval_description": "Определя колко често се нулира броят на резервациите в round robin, за да се осигури балансирано разпределение.", "daily": "Ежедневно", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Вече съществува обратно пренасочване между тези потребители.", "previous_ooo_empty_title": "Не са намерени предишни OOO", "previous": "Предишен", - "rr_interval_successfully_updated": "Интервалът на Round Robin е успешно актуализиран", "trial_mode": "Пробен режим", "inactive_team_plan": "Неактивен план за екип", "inactive_team_plan_description": "Вашият план за екип е неактивен. Проверете абонамента си или се свържете с отдела за обслужване на клиенти", diff --git a/apps/web/public/static/locales/ca/common.json b/apps/web/public/static/locales/ca/common.json index 60bd5ef845..9d90f1e691 100644 --- a/apps/web/public/static/locales/ca/common.json +++ b/apps/web/public/static/locales/ca/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "No teniu permís per crear una organització per a aquest correu electrònic", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "No teniu permís per migrar un o més dels equips", "organization_has_subscription_already": "L'organització ja té una subscripció", - "rr_reset_interval": "Interval de reinici del Round Robin", "interval": "Interval", "rr_reset_interval_description": "Determina amb quina freqüència es reinicia el comptador de reserves del round robin per assegurar una distribució equilibrada.", "daily": "Diàriament", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Ja hi ha una redirecció inversa entre aquests usuaris.", "previous_ooo_empty_title": "No s'ha trobat cap OOO anterior", "previous": "Anterior", - "rr_interval_successfully_updated": "L'interval del Round Robin s'ha actualitzat correctament", "trial_mode": "Mode de prova", "inactive_team_plan": "Pla d'equip inactiu", "inactive_team_plan_description": "El teu pla d'equip està inactiu. Comprova la teva subscripció o contacta amb el suport al client", diff --git a/apps/web/public/static/locales/cs/common.json b/apps/web/public/static/locales/cs/common.json index 1bfb96559c..37678f2367 100644 --- a/apps/web/public/static/locales/cs/common.json +++ b/apps/web/public/static/locales/cs/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Nemáte oprávnění vytvořit organizaci pro tento e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Nemáte oprávnění migrovat jeden nebo více týmů", "organization_has_subscription_already": "Organizace již má předplatné", - "rr_reset_interval": "Interval resetování Round Robin", "interval": "Interval", "rr_reset_interval_description": "Určuje, jak často se resetuje počet rezervací v systému round robin pro zajištění vyváženého rozdělení.", "daily": "Denně", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Mezi těmito uživateli již existuje zpětné přesměrování.", "previous_ooo_empty_title": "Nenalezeno žádné předchozí OOO", "previous": "Předchozí", - "rr_interval_successfully_updated": "Interval Round Robin byl úspěšně aktualizován", "trial_mode": "Zkušební režim", "inactive_team_plan": "Neaktivní týmový plán", "inactive_team_plan_description": "Váš týmový plán je neaktivní. Zkontrolujte své předplatné nebo kontaktujte zákaznickou podporu", diff --git a/apps/web/public/static/locales/da/common.json b/apps/web/public/static/locales/da/common.json index 78ae788336..129d745ec2 100644 --- a/apps/web/public/static/locales/da/common.json +++ b/apps/web/public/static/locales/da/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Du har ikke tilladelse til at oprette en organisation for denne e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Du har ikke tilladelse til at migrere et eller flere af teamene", "organization_has_subscription_already": "Organisationen har allerede et abonnement", - "rr_reset_interval": "Round Robin nulstillingsinterval", "interval": "Interval", "rr_reset_interval_description": "Bestemmer hvor ofte round robin-bookingtællingen nulstilles for at sikre en balanceret fordeling.", "daily": "Dagligt", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Der er allerede en omvendt videresendelse mellem disse brugere.", "previous_ooo_empty_title": "Ingen tidligere fravær fundet", "previous": "Forrige", - "rr_interval_successfully_updated": "Round Robin-interval blev opdateret med succes", "trial_mode": "Prøveperiode", "inactive_team_plan": "Inaktiv teamplan", "inactive_team_plan_description": "Din teamplan er inaktiv. Tjek dit abonnement eller kontakt kundesupport", diff --git a/apps/web/public/static/locales/de/common.json b/apps/web/public/static/locales/de/common.json index 9e1b0f5b26..759b9206aa 100644 --- a/apps/web/public/static/locales/de/common.json +++ b/apps/web/public/static/locales/de/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Sie haben keine berechtigung, eine organisation für diese e-mail-adresse zu erstellen", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Sie haben keine berechtigung, eines oder mehrere der teams zu migrieren", "organization_has_subscription_already": "Die organisation hat bereits ein abonnement", - "rr_reset_interval": "Round Robin Zurücksetzungsintervall", "interval": "Intervall", "rr_reset_interval_description": "Legt fest, wie oft der Round Robin Buchungszähler zurückgesetzt wird, um eine ausgewogene Verteilung zu gewährleisten.", "daily": "Täglich", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Es gibt bereits eine umgekehrte Weiterleitung zwischen diesen Benutzern.", "previous_ooo_empty_title": "Keine vorherige Abwesenheit gefunden", "previous": "Vorherige", - "rr_interval_successfully_updated": "Round Robin Intervall erfolgreich aktualisiert", "trial_mode": "Testmodus", "inactive_team_plan": "Inaktiver Team-Plan", "inactive_team_plan_description": "Ihr Team-Plan ist inaktiv. Überprüfen Sie Ihr Abonnement oder wenden Sie sich an den Kundensupport", @@ -3210,4 +3208,4 @@ "members_affected_by_disabling_delegation_credential": "Betroffene Mitglieder", "no_members_affected_by_disabling_delegation_credential": "Keine Mitglieder von der Deaktivierung der Delegationsanmeldedaten betroffen", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Fügen Sie Ihre neuen Code-Zeilen über dieser hinzu ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" -} \ No newline at end of file +} diff --git a/apps/web/public/static/locales/el/common.json b/apps/web/public/static/locales/el/common.json index f2670d55f4..e8201f1898 100644 --- a/apps/web/public/static/locales/el/common.json +++ b/apps/web/public/static/locales/el/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Δεν έχετε άδεια να δημιουργήσετε οργανισμό για αυτό το email", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Δεν έχετε άδεια να μεταφέρετε μία ή περισσότερες από τις ομάδες", "organization_has_subscription_already": "Ο οργανισμός έχει ήδη συνδρομή", - "rr_reset_interval": "Διάστημα επαναφοράς Round Robin", "interval": "Διάστημα", "rr_reset_interval_description": "Καθορίζει πόσο συχνά επαναφέρεται ο μετρητής κρατήσεων round robin για να διασφαλιστεί η ισορροπημένη κατανομή.", "daily": "Καθημερινά", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Υπάρχει ήδη αντίστροφη προώθηση μεταξύ αυτών των χρηστών.", "previous_ooo_empty_title": "Δεν βρέθηκαν προηγούμενες απουσίες", "previous": "Προηγούμενο", - "rr_interval_successfully_updated": "Το διάστημα Round Robin ενημερώθηκε με επιτυχία", "trial_mode": "Δοκιμαστική λειτουργία", "inactive_team_plan": "Ανενεργό πλάνο ομάδας", "inactive_team_plan_description": "Το πλάνο της ομάδας σας είναι ανενεργό. Ελέγξτε τη συνδρομή σας ή επικοινωνήστε με την εξυπηρέτηση πελατών", diff --git a/apps/web/public/static/locales/en/common.json b/apps/web/public/static/locales/en/common.json index ffa0c3a834..a76c811614 100644 --- a/apps/web/public/static/locales/en/common.json +++ b/apps/web/public/static/locales/en/common.json @@ -3064,7 +3064,7 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "You do not have permission to create an organization for this email", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "You do not have permission to migrate one or more of the teams", "organization_has_subscription_already": "Organization has a subscription already", - "rr_reset_interval": "Round Robin Reset Interval", + "reset_interval_weighted_rr": "Reset interval for weighted Round Robin", "interval": "Interval", "rr_reset_interval_description": "Determines how often the round robin booking count resets to ensure balanced distribution.", "daily": "Daily", @@ -3227,9 +3227,18 @@ "matching": "Matching", "event_redirect": "Event Redirect", "reset_form": "Reset Form", + "rr_settings_successfully_updated": "Round Robin settings successfully updated", + "distribution_basis_weighted_rr": "Distribution basis for weighted Round Robin", + "timestamp_basis_description": "Determines which event timestamp is used as the basis for weighted round robin distribution.", "requires_credits": "Requires credits", "requires_credits_tooltip": "You need enough credits in your account to use this feature", "available_credits": "Available credits", + "load_balancing_warning": "This will disable Load Balancing on all your Round Robin event types", + "rr_load_balancing_disabled": "Load Balancing is only available when the timestamp basis is set to Booking Creation Time", + "round_robin_settings_description": "Customize the default round robin settings for this team", + "round_robin_settings_updated_successfully": "Round Robin settings updated successfully", + "booking_creation_time": "Booking Creation Time", + "meeting_start_time": "Meeting Start Time", "members_affected_by_disabling_delegation_credential": "Affected members", "no_members_affected_by_disabling_delegation_credential": "No members affected by disabling delegation credential", "ADD_NEW_STRINGS_ABOVE_THIS_LINE_TO_PREVENT_MERGE_CONFLICTS": "↑↑↑↑↑↑↑↑↑↑↑↑↑ Add your new strings above here ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑" diff --git a/apps/web/public/static/locales/es-419/common.json b/apps/web/public/static/locales/es-419/common.json index 60dbbe610a..bd1cd2a490 100644 --- a/apps/web/public/static/locales/es-419/common.json +++ b/apps/web/public/static/locales/es-419/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "No tienes permiso para crear una organización con este correo electrónico", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "No tienes permiso para migrar uno o más de los equipos", "organization_has_subscription_already": "La organización ya tiene una suscripción", - "rr_reset_interval": "Intervalo de reinicio de Round Robin", "interval": "Intervalo", "rr_reset_interval_description": "Determina con qué frecuencia se reinicia el conteo de reservas de round robin para asegurar una distribución equilibrada.", "daily": "Diario", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Ya existe un reenvío inverso entre estos usuarios.", "previous_ooo_empty_title": "No se encontraron ausencias anteriores", "previous": "Anterior", - "rr_interval_successfully_updated": "Intervalo de Round Robin actualizado exitosamente", "trial_mode": "Modo de prueba", "inactive_team_plan": "Plan de equipo inactivo", "inactive_team_plan_description": "Tu plan de equipo está inactivo. Revisa tu suscripción o comunícate con el soporte al cliente", diff --git a/apps/web/public/static/locales/es/common.json b/apps/web/public/static/locales/es/common.json index 6b7bc8fc35..3fde434d6d 100644 --- a/apps/web/public/static/locales/es/common.json +++ b/apps/web/public/static/locales/es/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "No tienes permiso para crear una organización con este correo electrónico", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "No tienes permiso para migrar uno o más de los equipos", "organization_has_subscription_already": "La organización ya tiene una suscripción", - "rr_reset_interval": "Intervalo de reinicio de rotación", "interval": "Intervalo", "rr_reset_interval_description": "Determina con qué frecuencia se reinicia el conteo de reservas de rotación para asegurar una distribución equilibrada.", "daily": "Diario", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Ya existe un reenvío inverso entre estos usuarios.", "previous_ooo_empty_title": "No se encontraron ausencias anteriores", "previous": "Anterior", - "rr_interval_successfully_updated": "Intervalo de rotación actualizado con éxito", "trial_mode": "Modo de prueba", "inactive_team_plan": "Plan de equipo inactivo", "inactive_team_plan_description": "Tu plan de equipo está inactivo. Revisa tu suscripción o contacta con el soporte al cliente", diff --git a/apps/web/public/static/locales/et/common.json b/apps/web/public/static/locales/et/common.json index 954bacf1f1..6da1bd41ed 100644 --- a/apps/web/public/static/locales/et/common.json +++ b/apps/web/public/static/locales/et/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Teil pole luba selle e-posti aadressiga organisatsiooni loomiseks", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Teil pole luba ühe või mitme meeskonna migreerimiseks", "organization_has_subscription_already": "Organisatsioonil on juba tellimus", - "rr_reset_interval": "Round Robini lähtestamise intervall", "interval": "Intervall", "rr_reset_interval_description": "Määrab, kui tihti round robini broneeringute arv lähtestatakse, et tagada tasakaalustatud jaotus.", "daily": "Iga päev", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Nende kasutajate vahel on juba vastupidine edasisuunamine.", "previous_ooo_empty_title": "Eelmist OOO-d ei leitud", "previous": "Eelmine", - "rr_interval_successfully_updated": "Round Robini intervall edukalt uuendatud", "trial_mode": "Prooviversioon", "inactive_team_plan": "Mitteaktiivne meeskonnaplaan", "inactive_team_plan_description": "Teie meeskonnaplaan on mitteaktiivne. Kontrollige oma tellimust või võtke ühendust klienditoega", diff --git a/apps/web/public/static/locales/eu/common.json b/apps/web/public/static/locales/eu/common.json index f9b7d82b96..9318aaa683 100644 --- a/apps/web/public/static/locales/eu/common.json +++ b/apps/web/public/static/locales/eu/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Ez duzu baimenik erakunde bat sortzeko helbide elektroniko honentzat", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Ez duzu baimenik talde bat edo gehiago migratzeko", "organization_has_subscription_already": "Erakundeak dagoeneko harpidetza bat du", - "rr_reset_interval": "Round Robin berrezartzeko tartea", "interval": "Tartea", "rr_reset_interval_description": "Zehazten du zenbatero berrezartzen den round robin erreserben zenbaketa, banaketa orekatua ziurtatzeko.", "daily": "Egunero", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Dagoeneko alderantzizko birbideratze bat dago erabiltzaile hauen artean.", "previous_ooo_empty_title": "Ez da aurreko OOOrik aurkitu", "previous": "Aurrekoa", - "rr_interval_successfully_updated": "Round Robin tartea arrakastaz eguneratu da", "trial_mode": "Proba modua", "inactive_team_plan": "Talde plan inaktiboa", "inactive_team_plan_description": "Zure talde plana inaktiboa dago. Egiaztatu zure harpidetza edo jarri harremanetan bezeroen laguntzarekin", diff --git a/apps/web/public/static/locales/fi/common.json b/apps/web/public/static/locales/fi/common.json index 3891e6d302..b0b855a680 100644 --- a/apps/web/public/static/locales/fi/common.json +++ b/apps/web/public/static/locales/fi/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Sinulla ei ole oikeutta luoda organisaatiota tälle sähköpostiosoitteelle", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Sinulla ei ole oikeutta siirtää yhtä tai useampaa tiimiä", "organization_has_subscription_already": "Organisaatiolla on jo tilaus", - "rr_reset_interval": "Round Robin -nollausväli", "interval": "Aikaväli", "rr_reset_interval_description": "Määrittää, kuinka usein round robin -varauslaskuri nollataan tasapainoisen jakelun varmistamiseksi.", "daily": "Päivittäin", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Näiden käyttäjien välillä on jo käänteinen uudelleenohjaus.", "previous_ooo_empty_title": "Aiempia poissaoloja ei löytynyt", "previous": "Edellinen", - "rr_interval_successfully_updated": "Round Robin -aikaväli päivitetty onnistuneesti", "trial_mode": "Kokeilutila", "inactive_team_plan": "Ei-aktiivinen tiimitilaus", "inactive_team_plan_description": "Tiimitilauksesi ei ole aktiivinen. Tarkista tilauksesi tai ota yhteyttä asiakastukeen", diff --git a/apps/web/public/static/locales/fr/common.json b/apps/web/public/static/locales/fr/common.json index 33f673fbc8..6eaa6c27b4 100644 --- a/apps/web/public/static/locales/fr/common.json +++ b/apps/web/public/static/locales/fr/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Vous n'avez pas la permission de créer une organisation pour cet e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Vous n'avez pas la permission de migrer une ou plusieurs des équipes", "organization_has_subscription_already": "L'organisation a déjà un abonnement", - "rr_reset_interval": "Intervalle de réinitialisation du round-robin", "interval": "Intervalle", "rr_reset_interval_description": "Détermine la fréquence à laquelle le compteur de réservations round-robin se réinitialise pour assurer une distribution équilibrée.", "daily": "Quotidien", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Il existe déjà une redirection inverse entre ces utilisateurs.", "previous_ooo_empty_title": "Aucune absence précédente trouvée", "previous": "Précédent", - "rr_interval_successfully_updated": "Intervalle round-robin mis à jour avec succès", "trial_mode": "Mode d'essai", "inactive_team_plan": "Plan d'équipe inactif", "inactive_team_plan_description": "Votre plan d'équipe est inactif. Vérifiez votre abonnement ou contactez le support client", diff --git a/apps/web/public/static/locales/he/common.json b/apps/web/public/static/locales/he/common.json index e21c2f78a7..5dfb2e90d9 100644 --- a/apps/web/public/static/locales/he/common.json +++ b/apps/web/public/static/locales/he/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "אין לך הרשאה ליצור ארגון עבור כתובת האימייל הזו", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "אין לך הרשאה להעביר אחד או יותר מהצוותים", "organization_has_subscription_already": "לארגון כבר יש מנוי", - "rr_reset_interval": "מרווח איפוס סבב", "interval": "מרווח", "rr_reset_interval_description": "קובע באיזו תדירות מתאפס מונה ההזמנות בסבב כדי להבטיח חלוקה מאוזנת.", "daily": "יומי", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "כבר קיימת הפניה הפוכה בין משתמשים אלה.", "previous_ooo_empty_title": "לא נמצאו יציאות מהמשרד קודמות", "previous": "קודם", - "rr_interval_successfully_updated": "מרווח הסבב עודכן בהצלחה", "trial_mode": "מצב ניסיון", "inactive_team_plan": "תוכנית צוות לא פעילה", "inactive_team_plan_description": "תוכנית הצוות שלך אינה פעילה. בדוק את המנוי שלך או פנה לתמיכת הלקוחות", diff --git a/apps/web/public/static/locales/hu/common.json b/apps/web/public/static/locales/hu/common.json index 67a3c2d115..bbcdce0a0c 100644 --- a/apps/web/public/static/locales/hu/common.json +++ b/apps/web/public/static/locales/hu/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Nincs jogosultsága szervezetet létrehozni ehhez az e-mail címhez", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Nincs jogosultsága egy vagy több csapat migrálásához", "organization_has_subscription_already": "A szervezetnek már van előfizetése", - "rr_reset_interval": "Round Robin visszaállítási időköz", "interval": "Időköz", "rr_reset_interval_description": "Meghatározza, hogy milyen gyakran állítódik vissza a round robin foglalások számlálója a kiegyensúlyozott elosztás érdekében.", "daily": "Naponta", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Már létezik fordított átirányítás ezen felhasználók között.", "previous_ooo_empty_title": "Nem található korábbi Irodán Kívül", "previous": "Előző", - "rr_interval_successfully_updated": "Round Robin időköz sikeresen frissítve", "trial_mode": "Próba üzemmód", "inactive_team_plan": "Inaktív csapat előfizetés", "inactive_team_plan_description": "Az Ön csapat előfizetése inaktív. Ellenőrizze előfizetését vagy vegye fel a kapcsolatot az ügyfélszolgálattal", diff --git a/apps/web/public/static/locales/it/common.json b/apps/web/public/static/locales/it/common.json index ef69363bc3..2edcd9e0d0 100644 --- a/apps/web/public/static/locales/it/common.json +++ b/apps/web/public/static/locales/it/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Non hai il permesso di creare un'organizzazione per questa email", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Non hai il permesso di migrare uno o più team", "organization_has_subscription_already": "L'organizzazione ha già un abbonamento", - "rr_reset_interval": "Intervallo di reset round robin", "interval": "Intervallo", "rr_reset_interval_description": "Determina la frequenza con cui il conteggio delle prenotazioni round robin viene azzerato per garantire una distribuzione equilibrata.", "daily": "Giornaliero", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Esiste già un reindirizzamento inverso tra questi utenti.", "previous_ooo_empty_title": "Nessuna assenza precedente trovata", "previous": "Precedente", - "rr_interval_successfully_updated": "Intervallo round robin aggiornato con successo", "trial_mode": "Modalità di prova", "inactive_team_plan": "Piano team inattivo", "inactive_team_plan_description": "Il tuo piano team è inattivo. Controlla il tuo abbonamento o contatta l'assistenza clienti", diff --git a/apps/web/public/static/locales/ja/common.json b/apps/web/public/static/locales/ja/common.json index b0fd8c25df..5b8fdf8f93 100644 --- a/apps/web/public/static/locales/ja/common.json +++ b/apps/web/public/static/locales/ja/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "このメールアドレスで組織を作成する権限がありません", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "1つ以上のチームを移行する権限がありません", "organization_has_subscription_already": "組織はすでにサブスクリプションを持っています", - "rr_reset_interval": "ラウンドロビンのリセット間隔", "interval": "間隔", "rr_reset_interval_description": "ラウンドロビンの予約カウントがリセットされる頻度を決定し、バランスの取れた配分を確保します。", "daily": "毎日", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "これらのユーザー間にはすでに逆方向の転送が存在します。", "previous_ooo_empty_title": "過去のOOOが見つかりません", "previous": "前へ", - "rr_interval_successfully_updated": "ラウンドロビンの間隔が正常に更新されました", "trial_mode": "トライアルモード", "inactive_team_plan": "非アクティブなチームプラン", "inactive_team_plan_description": "チームプランが非アクティブです。サブスクリプションを確認するか、カスタマーサポートにお問い合わせください", diff --git a/apps/web/public/static/locales/km/common.json b/apps/web/public/static/locales/km/common.json index 1fc2e2512b..8af41dff36 100644 --- a/apps/web/public/static/locales/km/common.json +++ b/apps/web/public/static/locales/km/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "អ្នកមិនមានសិទ្ធិបង្កើតអង្គការសម្រាប់អ៊ីមែលនេះទេ", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "អ្នកមិនមានសិទ្ធិផ្លាស់ប្តូរក្រុមមួយឬច្រើនទេ", "organization_has_subscription_already": "អង្គការមានការជាវជាប្រចាំរួចហើយ", - "rr_reset_interval": "ចន្លោះពេលកំណត់ឡើងវិញនៃ Round Robin", "interval": "ចន្លោះពេល", "rr_reset_interval_description": "កំណត់ថាតើញឹកញាប់ប៉ុណ្ណាដែលការរាប់ការកក់ round robin ត្រូវកំណត់ឡើងវិញដើម្បីធានាការចែកចាយស្មើគ្នា។", "daily": "ប្រចាំថ្ងៃ", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "មានការបញ្ជូនបន្តត្រឡប់រវាងអ្នកប្រើប្រាស់ទាំងនេះរួចហើយ។", "previous_ooo_empty_title": "រកមិនឃើញ OOO ពីមុនទេ", "previous": "មុន", - "rr_interval_successfully_updated": "ចន្លោះពេល Round Robin ត្រូវបានធ្វើបច្ចុប្បន្នភាពដោយជោគជ័យ", "trial_mode": "របៀបសាកល្បង", "inactive_team_plan": "ផែនការក្រុមដែលមិនសកម្ម", "inactive_team_plan_description": "ផែនការក្រុមរបស់អ្នកមិនសកម្មទេ។ សូមពិនិត្យមើលការជាវរបស់អ្នក ឬទាក់ទងសេវាកម្មអតិថិជន", diff --git a/apps/web/public/static/locales/ko/common.json b/apps/web/public/static/locales/ko/common.json index 30490e7135..6cfec61b53 100644 --- a/apps/web/public/static/locales/ko/common.json +++ b/apps/web/public/static/locales/ko/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "이 이메일로 조직을 생성할 권한이 없습니다", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "하나 이상의 팀을 마이그레이션할 권한이 없습니다", "organization_has_subscription_already": "조직이 이미 구독 중입니다", - "rr_reset_interval": "라운드 로빈 재설정 간격", "interval": "간격", "rr_reset_interval_description": "균형 잡힌 분배를 보장하기 위해 라운드 로빈 예약 횟수가 얼마나 자주 재설정되는지 결정합니다.", "daily": "매일", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "이 사용자들 사이에 이미 역방향 전달이 설정되어 있습니다.", "previous_ooo_empty_title": "이전 부재 기록 없음", "previous": "이전", - "rr_interval_successfully_updated": "라운드 로빈 간격이 성공적으로 업데이트되었습니다", "trial_mode": "체험 모드", "inactive_team_plan": "비활성 팀 플랜", "inactive_team_plan_description": "팀 플랜이 비활성 상태입니다. 구독을 확인하거나 고객 지원에 문의하세요", diff --git a/apps/web/public/static/locales/nl/common.json b/apps/web/public/static/locales/nl/common.json index 55ccadd577..caaa914a44 100644 --- a/apps/web/public/static/locales/nl/common.json +++ b/apps/web/public/static/locales/nl/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Je hebt geen toestemming om een organisatie aan te maken voor dit e-mailadres", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Je hebt geen toestemming om een of meer teams te migreren", "organization_has_subscription_already": "De organisatie heeft al een abonnement", - "rr_reset_interval": "Round Robin reset-interval", "interval": "Interval", "rr_reset_interval_description": "Bepaalt hoe vaak de round robin boekingstelling wordt gereset om een evenwichtige verdeling te garanderen.", "daily": "Dagelijks", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Er is al een omgekeerde doorverwijzing tussen deze gebruikers.", "previous_ooo_empty_title": "Geen eerdere OOO gevonden", "previous": "Vorige", - "rr_interval_successfully_updated": "Round Robin-interval succesvol bijgewerkt", "trial_mode": "Proefmodus", "inactive_team_plan": "Inactief teamabonnement", "inactive_team_plan_description": "Uw teamabonnement is inactief. Controleer uw abonnement of neem contact op met de klantenondersteuning", diff --git a/apps/web/public/static/locales/no/common.json b/apps/web/public/static/locales/no/common.json index 7f53eda87e..dd18b1e443 100644 --- a/apps/web/public/static/locales/no/common.json +++ b/apps/web/public/static/locales/no/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Du har ikke tillatelse til å opprette en organisasjon for denne e-postadressen", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Du har ikke tillatelse til å migrere ett eller flere av teamene", "organization_has_subscription_already": "Organisasjonen har allerede et abonnement", - "rr_reset_interval": "Round Robin tilbakestillingsintervall", "interval": "Intervall", "rr_reset_interval_description": "Bestemmer hvor ofte round robin-bookingtellingen tilbakestilles for å sikre balansert fordeling.", "daily": "Daglig", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Det finnes allerede en omvendt videresending mellom disse brukerne.", "previous_ooo_empty_title": "Ingen tidligere fravær funnet", "previous": "Forrige", - "rr_interval_successfully_updated": "Round Robin-intervallet ble oppdatert", "trial_mode": "Prøveperiode", "inactive_team_plan": "Inaktiv teamplan", "inactive_team_plan_description": "Din teamplan er inaktiv. Sjekk abonnementet ditt eller ta kontakt med kundeservice", diff --git a/apps/web/public/static/locales/pl/common.json b/apps/web/public/static/locales/pl/common.json index 2e29729062..dd6d558f38 100644 --- a/apps/web/public/static/locales/pl/common.json +++ b/apps/web/public/static/locales/pl/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Nie masz uprawnień do utworzenia organizacji dla tego adresu e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Nie masz uprawnień do migracji jednego lub więcej zespołów", "organization_has_subscription_already": "Organizacja ma już subskrypcję", - "rr_reset_interval": "Interwał resetowania Round Robin", "interval": "Interwał", "rr_reset_interval_description": "Określa, jak często resetuje się licznik rezerwacji Round Robin, aby zapewnić zrównoważony rozkład.", "daily": "Codziennie", diff --git a/apps/web/public/static/locales/pt-BR/common.json b/apps/web/public/static/locales/pt-BR/common.json index c13cb659da..10b52e0776 100644 --- a/apps/web/public/static/locales/pt-BR/common.json +++ b/apps/web/public/static/locales/pt-BR/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Você não tem permissão para criar uma organização para este e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Você não tem permissão para migrar uma ou mais das equipes", "organization_has_subscription_already": "A organização já possui uma assinatura", - "rr_reset_interval": "Intervalo de reinício do Round Robin", "interval": "Intervalo", "rr_reset_interval_description": "Determina com que frequência a contagem de reservas do round robin é reiniciada para garantir uma distribuição equilibrada.", "daily": "Diariamente", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Já existe um encaminhamento reverso entre esses usuários.", "previous_ooo_empty_title": "Nenhuma ausência anterior encontrada", "previous": "Anterior", - "rr_interval_successfully_updated": "Intervalo do Round Robin atualizado com sucesso", "trial_mode": "Modo de teste", "inactive_team_plan": "Plano de equipe inativo", "inactive_team_plan_description": "Seu plano de equipe está inativo. Verifique sua assinatura ou entre em contato com o suporte ao cliente", diff --git a/apps/web/public/static/locales/pt/common.json b/apps/web/public/static/locales/pt/common.json index f75cea5a5e..c19fb82bb1 100644 --- a/apps/web/public/static/locales/pt/common.json +++ b/apps/web/public/static/locales/pt/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Você não tem permissão para criar uma organização para este e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Você não tem permissão para migrar uma ou mais das equipes", "organization_has_subscription_already": "A organização já possui uma assinatura", - "rr_reset_interval": "Intervalo de reinício do Round Robin", "interval": "Intervalo", "rr_reset_interval_description": "Determina com que frequência a contagem de reservas do round robin é reiniciada para garantir uma distribuição equilibrada.", "daily": "Diariamente", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Já existe um encaminhamento reverso entre estes utilizadores.", "previous_ooo_empty_title": "Nenhum fora do escritório anterior encontrado", "previous": "Anterior", - "rr_interval_successfully_updated": "Intervalo do Round Robin atualizado com sucesso", "trial_mode": "Modo de teste", "inactive_team_plan": "Plano de equipa inativo", "inactive_team_plan_description": "O seu plano de equipa está inativo. Verifique a sua subscrição ou contacte o apoio ao cliente", diff --git a/apps/web/public/static/locales/ro/common.json b/apps/web/public/static/locales/ro/common.json index 475a5f6868..71c4624ebf 100644 --- a/apps/web/public/static/locales/ro/common.json +++ b/apps/web/public/static/locales/ro/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Nu aveți permisiunea de a crea o organizație pentru acest email", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Nu aveți permisiunea de a migra una sau mai multe dintre echipe", "organization_has_subscription_already": "Organizația are deja un abonament", - "rr_reset_interval": "Interval de resetare Round Robin", "interval": "Interval", "rr_reset_interval_description": "Determină cât de des se resetează numărul de rezervări round robin pentru a asigura o distribuție echilibrată.", "daily": "Zilnic", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Există deja o redirecționare inversă între acești utilizatori.", "previous_ooo_empty_title": "Nu s-a găsit niciun OOO anterior", "previous": "Anterior", - "rr_interval_successfully_updated": "Intervalul Round Robin a fost actualizat cu succes", "trial_mode": "Mod de probă", "inactive_team_plan": "Plan de echipă inactiv", "inactive_team_plan_description": "Planul dvs. de echipă este inactiv. Verificați-vă abonamentul sau contactați serviciul de asistență pentru clienți", diff --git a/apps/web/public/static/locales/ru/common.json b/apps/web/public/static/locales/ru/common.json index 6aa921b912..492973bc43 100644 --- a/apps/web/public/static/locales/ru/common.json +++ b/apps/web/public/static/locales/ru/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "У вас нет разрешения на создание организации для этого email", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "У вас нет разрешения на миграцию одной или нескольких команд", "organization_has_subscription_already": "У организации уже есть подписка", - "rr_reset_interval": "Интервал сброса очередности", "interval": "Интервал", "rr_reset_interval_description": "Определяет, как часто сбрасывается счетчик бронирований по очереди для обеспечения равномерного распределения.", "daily": "Ежедневно", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Между этими пользователями уже существует обратное перенаправление.", "previous_ooo_empty_title": "Предыдущие статусы \"Вне офиса\" не найдены", "previous": "Предыдущий", - "rr_interval_successfully_updated": "Интервал очередности успешно обновлен", "trial_mode": "Пробный режим", "inactive_team_plan": "Неактивный тарифный план команды", "inactive_team_plan_description": "Ваш тарифный план команды неактивен. Проверьте вашу подписку или обратитесь в службу поддержки", diff --git a/apps/web/public/static/locales/sk-SK/common.json b/apps/web/public/static/locales/sk-SK/common.json index e2ca5d38d5..9fb91a8905 100644 --- a/apps/web/public/static/locales/sk-SK/common.json +++ b/apps/web/public/static/locales/sk-SK/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Nemáte oprávnenie vytvoriť organizáciu pre tento e-mail", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Nemáte oprávnenie migrovať jeden alebo viac tímov", "organization_has_subscription_already": "Organizácia už má predplatné", - "rr_reset_interval": "Interval resetovania Round Robin", "interval": "Interval", "rr_reset_interval_description": "Určuje, ako často sa resetuje počet rezervácií v systéme round robin, aby sa zabezpečila vyvážená distribúcia.", "daily": "Denne", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Medzi týmito používateľmi už existuje spätné presmerovanie.", "previous_ooo_empty_title": "Nenašla sa žiadna predchádzajúca neprítomnosť", "previous": "Predchádzajúce", - "rr_interval_successfully_updated": "Interval Round Robin bol úspešne aktualizovaný", "trial_mode": "Skúšobný režim", "inactive_team_plan": "Neaktívny tímový plán", "inactive_team_plan_description": "Váš tímový plán je neaktívny. Skontrolujte svoje predplatné alebo kontaktujte zákaznícku podporu", diff --git a/apps/web/public/static/locales/sr/common.json b/apps/web/public/static/locales/sr/common.json index 9953f0b947..f5b3f0519e 100644 --- a/apps/web/public/static/locales/sr/common.json +++ b/apps/web/public/static/locales/sr/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Nemate dozvolu da kreirate organizaciju za ovu e-poštu", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Nemate dozvolu da migrirate jedan ili više timova", "organization_has_subscription_already": "Organizacija već ima pretplatu", - "rr_reset_interval": "Interval resetovanja kružnog dodeljivanja", "interval": "Interval", "rr_reset_interval_description": "Određuje koliko često se resetuje brojač kružnog dodeljivanja kako bi se osigurala uravnotežena distribucija.", "daily": "Dnevno", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Već postoji obrnuto preusmeravanje između ovih korisnika.", "previous_ooo_empty_title": "Nije pronađeno prethodno OOO", "previous": "Prethodno", - "rr_interval_successfully_updated": "Interval kružnog dodeljivanja je uspešno ažuriran", "trial_mode": "Probni režim", "inactive_team_plan": "Neaktivan timski plan", "inactive_team_plan_description": "Vaš timski plan je neaktivan. Proverite vašu pretplatu ili se obratite korisničkoj podršci", diff --git a/apps/web/public/static/locales/sv/common.json b/apps/web/public/static/locales/sv/common.json index b705491e34..0bf651b2a5 100644 --- a/apps/web/public/static/locales/sv/common.json +++ b/apps/web/public/static/locales/sv/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Du har inte behörighet att skapa en organisation för denna e-postadress", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Du har inte behörighet att migrera ett eller flera av teamen", "organization_has_subscription_already": "Organisationen har redan en prenumeration", - "rr_reset_interval": "Återställningsintervall för Round Robin", "interval": "Intervall", "rr_reset_interval_description": "Bestämmer hur ofta bokningsräknaren för Round Robin återställs för att säkerställa en balanserad fördelning.", "daily": "Dagligen", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Det finns redan en omvänd vidarebefordran mellan dessa användare.", "previous_ooo_empty_title": "Ingen tidigare frånvaro hittad", "previous": "Föregående", - "rr_interval_successfully_updated": "Round Robin-intervallet har uppdaterats framgångsrikt", "trial_mode": "Provperiod", "inactive_team_plan": "Inaktiv teamplan", "inactive_team_plan_description": "Din teamplan är inaktiv. Kontrollera din prenumeration eller kontakta kundsupport", diff --git a/apps/web/public/static/locales/tr/common.json b/apps/web/public/static/locales/tr/common.json index 0ee9b99961..a7b26b6396 100644 --- a/apps/web/public/static/locales/tr/common.json +++ b/apps/web/public/static/locales/tr/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Bu e-posta için bir organizasyon oluşturma izniniz yok", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Bir veya daha fazla takımı taşıma izniniz yok", "organization_has_subscription_already": "Organizasyonun zaten bir aboneliği var", - "rr_reset_interval": "Round Robin Sıfırlama Aralığı", "interval": "Aralık", "rr_reset_interval_description": "Round robin rezervasyon sayısının dengeli dağılımı sağlamak için ne sıklıkta sıfırlanacağını belirler.", "daily": "Günlük", diff --git a/apps/web/public/static/locales/uk/common.json b/apps/web/public/static/locales/uk/common.json index d406de48a9..54f0727ce4 100644 --- a/apps/web/public/static/locales/uk/common.json +++ b/apps/web/public/static/locales/uk/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "У вас немає дозволу створити організацію для цієї електронної адреси", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "У вас немає дозволу на міграцію однієї або кількох команд", "organization_has_subscription_already": "Організація вже має підписку", - "rr_reset_interval": "Інтервал скидання ротації", "interval": "Інтервал", "rr_reset_interval_description": "Визначає, як часто скидається лічильник бронювань ротації для забезпечення збалансованого розподілу.", "daily": "Щоденно", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Між цими користувачами вже існує зворотне перенаправлення.", "previous_ooo_empty_title": "Попередніх режимів \"Поза офісом\" не знайдено", "previous": "Попередній", - "rr_interval_successfully_updated": "Інтервал ротації успішно оновлено", "trial_mode": "Пробний режим", "inactive_team_plan": "Неактивний план команди", "inactive_team_plan_description": "Ваш командний план неактивний. Перевірте вашу підписку або зверніться до служби підтримки", diff --git a/apps/web/public/static/locales/vi/common.json b/apps/web/public/static/locales/vi/common.json index 15798cfa3c..6a6d680820 100644 --- a/apps/web/public/static/locales/vi/common.json +++ b/apps/web/public/static/locales/vi/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "Bạn không có quyền tạo tổ chức cho email này", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "Bạn không có quyền di chuyển một hoặc nhiều nhóm", "organization_has_subscription_already": "Tổ chức đã có đăng ký", - "rr_reset_interval": "Khoảng thời gian đặt lại Round Robin", "interval": "Khoảng thời gian", "rr_reset_interval_description": "Xác định tần suất đặt lại số lượng đặt lịch round robin để đảm bảo phân phối cân bằng.", "daily": "Hàng ngày", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "Đã có một chuyển tiếp ngược lại giữa những người dùng này.", "previous_ooo_empty_title": "Không tìm thấy OOO trước đó", "previous": "Trước", - "rr_interval_successfully_updated": "Khoảng thời gian Round Robin đã được cập nhật thành công", "trial_mode": "Chế độ dùng thử", "inactive_team_plan": "Gói nhóm không hoạt động", "inactive_team_plan_description": "Gói nhóm của bạn đang không hoạt động. Kiểm tra đăng ký của bạn hoặc liên hệ với bộ phận hỗ trợ khách hàng", diff --git a/apps/web/public/static/locales/zh-CN/common.json b/apps/web/public/static/locales/zh-CN/common.json index e5407517da..ffe1bc76a4 100644 --- a/apps/web/public/static/locales/zh-CN/common.json +++ b/apps/web/public/static/locales/zh-CN/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "您没有权限为此电子邮件创建组织", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "您没有权限迁移一个或多个团队", "organization_has_subscription_already": "组织已有订阅", - "rr_reset_interval": "轮流模式重置间隔", "interval": "间隔", "rr_reset_interval_description": "决定轮流预订计数重置的频率,以确保均衡分配。", "daily": "每日", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "这些用户之间已经存在反向转发。", "previous_ooo_empty_title": "未找到以前的OOO", "previous": "上一个", - "rr_interval_successfully_updated": "轮流模式间隔已成功更新", "trial_mode": "试用模式", "inactive_team_plan": "非活跃团队计划", "inactive_team_plan_description": "您的团队计划处于非活跃状态。请检查您的订阅或联系客户支持", diff --git a/apps/web/public/static/locales/zh-TW/common.json b/apps/web/public/static/locales/zh-TW/common.json index ef8f103fba..466565ced3 100644 --- a/apps/web/public/static/locales/zh-TW/common.json +++ b/apps/web/public/static/locales/zh-TW/common.json @@ -3043,7 +3043,6 @@ "you_do_not_have_permission_to_create_an_organization_for_this_email": "您沒有權限為此電子郵件地址創建組織", "you_do_not_have_permission_to_migrate_one_or_more_of_the_teams": "您沒有權限遷移一個或多個團隊", "organization_has_subscription_already": "該組織已有訂閱", - "rr_reset_interval": "輪流制重置間隔", "interval": "間隔", "rr_reset_interval_description": "決定輪流制預約計數重置的頻率,以確保均衡分配。", "daily": "每日", @@ -3060,7 +3059,6 @@ "ooo_team_redirect_infinite_not_allowed": "這些用戶之間已經存在反向轉發。", "previous_ooo_empty_title": "找不到先前的外出辦公記錄", "previous": "上一個", - "rr_interval_successfully_updated": "輪流制間隔已成功更新", "trial_mode": "試用模式", "inactive_team_plan": "未啟用的團隊方案", "inactive_team_plan_description": "您的團隊方案未啟用。請檢查您的訂閱或聯繫客戶支援", diff --git a/packages/features/bookings/Booker/components/hooks/useInitialFormValues.ts b/packages/features/bookings/Booker/components/hooks/useInitialFormValues.ts index 117c18c0fd..a1cc75d017 100644 --- a/packages/features/bookings/Booker/components/hooks/useInitialFormValues.ts +++ b/packages/features/bookings/Booker/components/hooks/useInitialFormValues.ts @@ -1,5 +1,5 @@ import { useEffect, useState } from "react"; -import { z } from "zod"; +import type { z } from "zod"; import { useBookerStore } from "@calcom/features/bookings/Booker/store"; import type getBookingResponsesSchema from "@calcom/features/bookings/lib/getBookingResponsesSchema"; diff --git a/packages/features/bookings/lib/handleNewBooking.ts b/packages/features/bookings/lib/handleNewBooking.ts index 80687c3812..b102f878d6 100644 --- a/packages/features/bookings/lib/handleNewBooking.ts +++ b/packages/features/bookings/lib/handleNewBooking.ts @@ -836,6 +836,7 @@ async function handler( ).filter((host) => !host.isFixed && userIdsSet.has(host.user.id)), eventType, routingFormResponse, + meetingStartTime: new Date(reqBody.start), }); if (!newLuckyUser) { break; // prevent infinite loop diff --git a/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.ts b/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.ts index afadd85833..04d420e94d 100644 --- a/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.ts +++ b/packages/features/bookings/lib/handleNewBooking/getEventTypesFromDB.ts @@ -44,6 +44,7 @@ export const getEventTypesFromDB = async (eventTypeId: number) => { bookingLimits: true, includeManagedEventsInLimits: true, rrResetInterval: true, + rrTimestampBasis: true, }, }, bookingFields: true, diff --git a/packages/features/ee/managed-event-types/lib/handleChildrenEventTypes.ts b/packages/features/ee/managed-event-types/lib/handleChildrenEventTypes.ts index 6fd6cb5674..08bb904092 100644 --- a/packages/features/ee/managed-event-types/lib/handleChildrenEventTypes.ts +++ b/packages/features/ee/managed-event-types/lib/handleChildrenEventTypes.ts @@ -187,7 +187,8 @@ export default async function handleChildrenEventTypes({ rrSegmentQueryValue: undefined, assignRRMembersUsingSegment: false, useEventLevelSelectedCalendars: false, - allowReschedulingCancelledBookings: managedEventTypeValues.allowReschedulingCancelledBookings ?? false, + allowReschedulingCancelledBookings: + managedEventTypeValues.allowReschedulingCancelledBookings ?? false, }, }); }) @@ -260,7 +261,8 @@ export default async function handleChildrenEventTypes({ : { deleteMany: {}, }, - allowReschedulingCancelledBookings: managedEventTypeValues.allowReschedulingCancelledBookings ?? false, + allowReschedulingCancelledBookings: + managedEventTypeValues.allowReschedulingCancelledBookings ?? false, metadata: { ...(eventType.metadata as Prisma.JsonObject), ...(metadata?.multipleDuration && "length" in unlockedFieldProps diff --git a/packages/features/ee/teams/components/RoundRobinResetInterval.tsx b/packages/features/ee/teams/components/RoundRobinResetInterval.tsx index a24c722e86..793dcbae18 100644 --- a/packages/features/ee/teams/components/RoundRobinResetInterval.tsx +++ b/packages/features/ee/teams/components/RoundRobinResetInterval.tsx @@ -1,26 +1,13 @@ "use client"; -import { useForm, Controller } from "react-hook-form"; +import { Controller } from "react-hook-form"; -import { checkAdminOrOwner } from "@calcom/features/auth/lib/checkAdminOrOwner"; -import SectionBottomActions from "@calcom/features/settings/SectionBottomActions"; import { useLocale } from "@calcom/lib/hooks/useLocale"; import { RRResetInterval } from "@calcom/prisma/enums"; -import { trpc } from "@calcom/trpc/react"; -import type { RouterOutputs } from "@calcom/trpc/react"; -import { Button } from "@calcom/ui/components/button"; -import { Label } from "@calcom/ui/components/form"; import { Select } from "@calcom/ui/components/form"; -import { Form } from "@calcom/ui/components/form"; -import { showToast } from "@calcom/ui/components/toast"; -interface ProfileViewProps { - team: RouterOutputs["viewer"]["teams"]["get"]; -} - -const RoundRobinResetInterval = ({ team }: ProfileViewProps) => { +const RoundRobinResetInterval = () => { const { t } = useLocale(); - const utils = trpc.useUtils(); const intervalOptions: { value: RRResetInterval; @@ -36,69 +23,31 @@ const RoundRobinResetInterval = ({ team }: ProfileViewProps) => { }, ]; - const form = useForm<{ rrResetInterval: RRResetInterval }>({ - defaultValues: { - rrResetInterval: team?.rrResetInterval ?? RRResetInterval.MONTH, - }, - }); - - const mutation = trpc.viewer.teams.update.useMutation({ - onError: (err) => { - showToast(err.message, "error"); - }, - async onSuccess(res) { - await utils.viewer.teams.get.invalidate(); - showToast(t("rr_interval_successfully_updated"), "success"); - }, - }); - - const isAdmin = team && checkAdminOrOwner(team.membership.role); - - if (!isAdmin) { - return ( -
- {t("only_owner_change")} -
- ); - } - return ( -
{ - mutation.mutate({ ...values, id: team.id }); - }}> - { - return ( -
-
-

{t("rr_reset_interval")}

-

{t("rr_reset_interval_description")}

-
-
- - opt.value === value)} + onChange={(val) => { + onChange(val?.value); + }} + />
- ); - }} - /> - - - - + + ); + }} + /> ); }; diff --git a/packages/features/ee/teams/components/RoundRobinSettings.tsx b/packages/features/ee/teams/components/RoundRobinSettings.tsx new file mode 100644 index 0000000000..d5419ccf9e --- /dev/null +++ b/packages/features/ee/teams/components/RoundRobinSettings.tsx @@ -0,0 +1,88 @@ +"use client"; + +import { useForm } from "react-hook-form"; + +import { checkAdminOrOwner } from "@calcom/features/auth/lib/checkAdminOrOwner"; +import SectionBottomActions from "@calcom/features/settings/SectionBottomActions"; +import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { RRResetInterval, RRTimestampBasis } from "@calcom/prisma/client"; +import type { RouterOutputs } from "@calcom/trpc/react"; +import { trpc } from "@calcom/trpc/react"; +import { Button } from "@calcom/ui/components/button"; +import { Form } from "@calcom/ui/components/form"; +import { showToast } from "@calcom/ui/components/toast"; + +import RoundRobinResetInterval from "./RoundRobinResetInterval"; +import RoundRobinTimestampBasis from "./RoundRobinTimestampBasis"; + +interface RoundRobinSettingsProps { + team: RouterOutputs["viewer"]["teams"]["get"]; +} + +const RoundRobinSettings = ({ team }: RoundRobinSettingsProps) => { + const { t } = useLocale(); + const isAdmin = team && checkAdminOrOwner(team.membership.role); + const rrResetInterval = team?.rrResetInterval ?? undefined; + const utils = trpc.useUtils(); + + const form = useForm<{ rrResetInterval: RRResetInterval; rrTimestampBasis: RRTimestampBasis }>({ + defaultValues: { + rrResetInterval: rrResetInterval ?? RRResetInterval.MONTH, + rrTimestampBasis: team?.rrTimestampBasis ?? RRTimestampBasis.CREATED_AT, + }, + }); + + const mutation = trpc.viewer.teams.update.useMutation({ + onError: (err) => { + showToast(err.message, "error"); + }, + async onSuccess() { + await utils.viewer.teams.get.invalidate(); + showToast(t("round_robin_settings_updated_successfully"), "success"); + }, + }); + + if (!isAdmin) { + return ( +
+ {t("only_owner_change")} +
+ ); + } + + return ( +
{ + mutation.mutate({ + id: team.id, + rrResetInterval: values.rrResetInterval, + rrTimestampBasis: values.rrTimestampBasis, + }); + }}> +
+ {" "} +
+

{t("round_robin")}

+

{t("round_robin_settings_description")}

+
+
+ +
+
+
+ +
+
+
+
+ + + + + ); +}; + +export default RoundRobinSettings; diff --git a/packages/features/ee/teams/components/RoundRobinTimestampBasis.tsx b/packages/features/ee/teams/components/RoundRobinTimestampBasis.tsx new file mode 100644 index 0000000000..425ec1f0f6 --- /dev/null +++ b/packages/features/ee/teams/components/RoundRobinTimestampBasis.tsx @@ -0,0 +1,55 @@ +"use client"; + +import { Controller } from "react-hook-form"; + +import { useLocale } from "@calcom/lib/hooks/useLocale"; +import { RRTimestampBasis } from "@calcom/prisma/enums"; +import { Select } from "@calcom/ui/components/form"; + +const RoundRobinTimestampBasis = () => { + const { t } = useLocale(); + + const timestampBasisOptions: { + value: RRTimestampBasis; + label: string; + }[] = [ + { + value: RRTimestampBasis.CREATED_AT, + label: t("booking_creation_time"), + }, + { + value: RRTimestampBasis.START_TIME, + label: t("meeting_start_time"), + }, + ]; + return ( + { + return ( + <> +

+ {t("distribution_basis_weighted_rr")} +

+

{t("timestamp_basis_description")}

+
+