diff --git a/app/(dashboard)/dashboard/protocols/_components/DeleteProtocolsDialog.tsx b/app/(dashboard)/dashboard/protocols/_components/DeleteProtocolsDialog.tsx
index 56c59ee85..ba4360d0e 100644
--- a/app/(dashboard)/dashboard/protocols/_components/DeleteProtocolsDialog.tsx
+++ b/app/(dashboard)/dashboard/protocols/_components/DeleteProtocolsDialog.tsx
@@ -14,6 +14,8 @@ import type { ProtocolWithInterviews } from '~/shared/types';
import { useEffect, useState } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import { api } from '~/trpc/client';
+import { clientRevalidateTag } from '~/utils/clientRevalidate';
+import { useRouter } from 'next/navigation';
interface DeleteProtocolsDialogProps {
open: boolean;
@@ -26,6 +28,8 @@ export const DeleteProtocolsDialog = ({
setOpen,
protocolsToDelete,
}: DeleteProtocolsDialogProps) => {
+ const router = useRouter();
+
const [protocolsInfo, setProtocolsInfo] = useState<{
hasInterviews: boolean;
hasUnexportedInterviews: boolean;
@@ -50,10 +54,10 @@ export const DeleteProtocolsDialog = ({
},
});
- const utils = api.useUtils();
const handleConfirm = async () => {
await deleteProtocols(protocolsToDelete.map((d) => d.hash));
- await utils.protocol.get.all.refetch();
+ await clientRevalidateTag('protocols.get.all');
+ router.refresh();
setOpen(false);
};
diff --git a/app/(interview)/interview/[interviewId]/page.tsx b/app/(interview)/interview/[interviewId]/page.tsx
index 4abe54477..247854bba 100644
--- a/app/(interview)/interview/[interviewId]/page.tsx
+++ b/app/(interview)/interview/[interviewId]/page.tsx
@@ -6,7 +6,6 @@ import Link from 'next/link';
import { api } from '~/trpc/server';
import InterviewShell from '../_components/InterviewShell';
import NoSSRWrapper from '~/utils/NoSSRWrapper';
-import Test from '../_components/Test';
export const dynamic = 'force-dynamic';
@@ -38,7 +37,7 @@ export default async function Page({
protocol={interviewProtocol}
>
- {JSON.stringify(stageConfig, null, 2)}
-
-
- {JSON.stringify(network, null, 2)}
-
- - This card provides links to useful resources when you open the app for the first - time. -
-- This setting allows you to control the size of the Interviewer user - interface. Increasing the interface size may limit the amount of information - visible on each screen. -
-- Dynamic scaling lets Interviewer resize the user interface proportionally to - the size of the window. Turning it off will use a fixed size. -
-- The full screen node form is optimized for smaller devices, or devices with - no physical keyboard. -
-- Your skip logic settings would normally prevent this stage from being shown in this - interview. Do you want to show it anyway? -
- ), - }); - } else { - goToPage(index + 1); - } - } - - const handleStageSelect = (index) => { - if (!beforeNext.current[index]) { - goToStage(index); - return; - } - - beforeNext.current[index](); - } + console.log('progress', percentProgress); return ( -