chore: bump @trpc/* and @tanstack/react-query (#13335)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Omar López <[email protected]>
Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
Co-authored-by: zomars <[email protected]>
Co-authored-by: Udit Takkar <[email protected]>
Co-authored-by: Benny Joo <[email protected]>
Co-authored-by: Carina Wollendorfer <[email protected]>
Co-authored-by: Gergő Móricz <[email protected]>
Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
183 files changed
+1203 -1013

No files matched your search

@@ -40,7 +40,7 @@ export const DeleteDialog = (props: IDeleteDialog) => {
return (
<Dialog open={isOpenDialog} onOpenChange={setIsOpenDialog}>
<ConfirmationDialogContent
isLoading={deleteMutation.isLoading}
isPending={deleteMutation.isPending}
variety="danger"
title={t("delete_workflow")}
confirmBtnText={t("confirm_delete_workflow")}
@@ -82,7 +82,7 @@ export default function EmptyScreen(props: { isFilteredView: boolean }) {
subtitle={t("new_workflow_subtitle").toUpperCase()}
createFunction={(teamId?: number) => createMutation.mutate({ teamId })}
buttonText={t("create_workflow")}
isLoading={createMutation.isLoading}
isPending={createMutation.isPending}
/>
</div>
</div>
@@ -205,7 +205,7 @@ function EventWorkflowsTab(props: Props) {
t("locked_fields_admin_description"),
t("locked_fields_member_description")
);
const { data, isLoading } = trpc.viewer.workflows.list.useQuery({
const { data, isPending } = trpc.viewer.workflows.list.useQuery({
teamId: eventType.team?.id,
userId: !isChildrenManagedEventType ? eventType.userId || undefined : undefined,
});
@@ -231,7 +231,7 @@ function EventWorkflowsTab(props: Props) {
);
setSortedWorkflows(activeWorkflows.concat(disabledWorkflows));
}
}, [isLoading]);
}, [isPending]);
const createMutation = trpc.viewer.workflows.create.useMutation({
onSuccess: async ({ workflow }) => {
@@ -252,7 +252,7 @@ function EventWorkflowsTab(props: Props) {
return (
<LicenseRequired>
{!isLoading ? (
{!isPending ? (
<>
{isManagedEventType && (
<Alert
@@ -288,7 +288,7 @@ function EventWorkflowsTab(props: Props) {
target="_blank"
color="secondary"
onClick={() => createMutation.mutate({ teamId: eventType.team?.id })}
loading={createMutation.isLoading}>
loading={createMutation.isPending}>
{t("create_workflow")}
</Button>
}
@@ -43,7 +43,7 @@ export default function WorkflowDetailsPage(props: Props) {
const [reload, setReload] = useState(false);
const [deleteDialogOpen, setDeleteDialogOpen] = useState(false);
const { data, isLoading } = trpc.viewer.eventTypes.getByViewer.useQuery();
const { data, isPending } = trpc.viewer.eventTypes.getByViewer.useQuery();
const eventTypeOptions = useMemo(
() =>
@@ -138,7 +138,7 @@ export default function WorkflowDetailsPage(props: Props) {
<MultiSelectCheckboxes
options={allEventTypeOptions}
isDisabled={props.readOnly}
isLoading={isLoading}
isLoading={isPending}
className="w-full md:w-64"
setSelected={setSelectedEventTypes}
selected={selectedEventTypes}
@@ -614,7 +614,7 @@ export default function WorkflowStepContainer(props: WorkflowStepProps) {
<Button
color="secondary"
className="-ml-[3px] h-[36px] min-w-fit py-0 sm:block sm:rounded-bl-none sm:rounded-tl-none "
disabled={verifyPhoneNumberMutation.isLoading || props.readOnly}
disabled={verifyPhoneNumberMutation.isPending || props.readOnly}
onClick={() => {
verifyPhoneNumberMutation.mutate({
phoneNumber: form.getValues(`steps.${step.stepNumber - 1}.sendTo`) || "",
@@ -64,7 +64,7 @@ function WorkflowsPage() {
createFunction={(teamId?: number) => {
createMutation.mutate({ teamId });
}}
isLoading={createMutation.isLoading}
isPending={createMutation.isPending}
disableMobileButton={true}
onlyShowWithNoTeams={true}
/>
@@ -79,7 +79,7 @@ function WorkflowsPage() {
<CreateButtonWithTeamsList
subtitle={t("new_workflow_subtitle").toUpperCase()}
createFunction={(teamId?: number) => createMutation.mutate({ teamId })}
isLoading={createMutation.isLoading}
isPending={createMutation.isPending}
disableMobileButton={true}
onlyShowWithTeams={true}
/>
@@ -109,7 +109,7 @@ function WorkflowPage() {
data: workflow,
isError,
error,
isLoading,
isPending,
} = trpc.viewer.workflows.get.useQuery(
{ id: +workflowId },
{
@@ -129,7 +129,7 @@ function WorkflowPage() {
MembershipRole.MEMBER;
useEffect(() => {
if (workflow && !isLoading) {
if (workflow && !isPending) {
if (workflow.userId && workflow.activeOn.find((active) => !!active.eventType.teamId)) {
setIsMixedEventType(true);
}
@@ -179,7 +179,7 @@ function WorkflowPage() {
form.setValue("activeOn", activeOn || []);
setIsAllDataLoaded(true);
}
}, [isLoading]);
}, [isPending]);
const updateMutation = trpc.viewer.workflows.update.useMutation({
onSuccess: async ({ workflow }) => {
@@ -269,7 +269,7 @@ function WorkflowPage() {
CTA={
!readOnly && (
<div>
<Button data-testid="save-workflow" type="submit" loading={updateMutation.isLoading}>
<Button data-testid="save-workflow" type="submit" loading={updateMutation.isPending}>
{t("save")}
</Button>
</div>