{uxtestingStore.instance.liveCount} participants are engaged in this usability test at
@@ -312,7 +306,7 @@ const TaskSummary = observer(() => {
))}
{shouldHide && !showAll ? (
setShowAll(true)}>
-
+
) : null}
@@ -331,10 +325,14 @@ const Title = observer(({ testId, siteId }: any) => {
toast.success('The usability test is now live and accessible to participants.');
break;
case 'paused':
- toast.success('Usability test is on \'Hold\'—participant activity paused. Switch it to “ongoing” to resume activity.');
+ toast.success(
+ "Usability test is on 'Hold'—participant activity paused. Switch it to “ongoing” to resume activity."
+ );
break;
case 'closed':
- toast.success('The usability test has been marked as completed. All participant interactions are now finalized.');
+ toast.success(
+ 'The usability test has been marked as completed. All participant interactions are now finalized.'
+ );
break;
}
};
@@ -369,10 +367,18 @@ const Title = observer(({ testId, siteId }: any) => {
? uxtestingStore.instance?.description.substring(0, 250) + '...'
: uxtestingStore.instance?.description;
const redirectToEdit = async () => {
+ const confirmationTitle =
+ uxtestingStore.instance!.status === 'in-progress'
+ ? 'Editing Active Usability Test'
+ : 'Editing Test on Hold';
+ const confirmationStr =
+ uxtestingStore.instance!.status === 'in-progress'
+ ? "You're editing a test that's currently active. Please be aware that you can only modify the test title and objective. Editing test steps is not permitted to avoid confusion with existing responses. Proceed with caution! 🚧"
+ : 'This usability test is on hold. You can only update the title and descriptions. Task editing is not allowed to avoid confusion with existing responses.';
if (
await confirm({
- confirmation:
- 'This test already has responses, making edits at this stage may result in confusing outcomes.',
+ header: confirmationTitle,
+ confirmation: confirmationStr,
confirmButton: 'Edit',
})
) {
@@ -380,6 +386,9 @@ const Title = observer(({ testId, siteId }: any) => {
}
};
+ // @ts-ignore
+ const getColor = (status) => colors[status];
+
return (