diff --git a/frontend/app/components/UsabilityTesting/StepsModal.tsx b/frontend/app/components/UsabilityTesting/StepsModal.tsx index e19f4442d..e6a49d7ed 100644 --- a/frontend/app/components/UsabilityTesting/StepsModal.tsx +++ b/frontend/app/components/UsabilityTesting/StepsModal.tsx @@ -21,7 +21,7 @@ function StepsModal({ onAdd({ title: title, description: description || '', - allowTyping: isAnswerEnabled, + allowTyping: Boolean(isAnswerEnabled), }); onHide(); }; diff --git a/frontend/app/components/UsabilityTesting/TestEdit.tsx b/frontend/app/components/UsabilityTesting/TestEdit.tsx index a3dc00ed1..aa79655c4 100644 --- a/frontend/app/components/UsabilityTesting/TestEdit.tsx +++ b/frontend/app/components/UsabilityTesting/TestEdit.tsx @@ -74,7 +74,7 @@ function TestEdit() { const onSave = (isPreview?: boolean) => { setHasChanged(false); if (testId && testId !== 'new') { - uxtestingStore.updateTest(uxtestingStore.instance!).then((testId) => { + uxtestingStore.updateTest(uxtestingStore.instance!, isPreview).then((testId) => { if (isPreview) { window.open(`${uxtestingStore.instance!.startingPath}?oruxt=${testId}`, '_blank', 'noopener,noreferrer'); } else { @@ -428,17 +428,19 @@ export function Step({ hover ? 'bg-white hover:' : '' }bg-active-blue flex items-start gap-2`} > -
+
{ind + 1}
-
+
{safeTitle}
{safeDescription}
+
{buttons} +
); } diff --git a/frontend/app/mstore/uxtestingStore.ts b/frontend/app/mstore/uxtestingStore.ts index 25f02bd40..a46c556f6 100644 --- a/frontend/app/mstore/uxtestingStore.ts +++ b/frontend/app/mstore/uxtestingStore.ts @@ -116,10 +116,13 @@ export default class UxtestingStore { } }; - updateTest = async (test: UxTestInst) => { + updateTest = async (test: UxTestInst, isPreview?: boolean) => { if (!this.instance) return; this.setLoading(true); try { + if (!isPreview) { + this.instance.setProperty('status', 'in-progress'); + } await this.client.updateTest(this.instance.testId!, test); return test.testId; } catch (e) {