From f02f34119e7956f646b6e1377301a864e7adb91d Mon Sep 17 00:00:00 2001 From: Alina086 Date: Mon, 30 Jun 2025 14:24:22 -0400 Subject: [PATCH 1/2] redirected prolific participants back to prolific after post study survey. --- frontend/src/editor/index.tsx | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/frontend/src/editor/index.tsx b/frontend/src/editor/index.tsx index 2adeeb38..8df13302 100644 --- a/frontend/src/editor/index.tsx +++ b/frontend/src/editor/index.tsx @@ -439,7 +439,13 @@ function Router({ else if (page === 'study-postStudySurvey') { const nextUrlParams = new URLSearchParams(window.location.search); nextUrlParams.set('page', nextPage); - const redirectURL = encodeURIComponent(window.location.origin + `/editor.html?${nextUrlParams.toString()}`); + const isProlific = urlParams.get('isProlific') === 'true'; + let redirectURL; + if (isProlific) { + redirectURL = 'https://app.prolific.com/submissions/complete?cc=C998008G' + } else { + redirectURL = encodeURIComponent(window.location.origin + `/editor.html?${nextUrlParams.toString()}`); + } const postStudySurveyURL = SURVEY_URLS.postStudy; return ( @@ -463,23 +469,14 @@ function Router({ } else if (page === 'study-final') { - return
-

Study Complete

-

Thank you for participating in our writing study.

- + return
+

Study Complete

+

Thank you for participating in our writing study.

; } else { From a964eaa6f58854705d12b44fe32b3094f6bd4956 Mon Sep 17 00:00:00 2001 From: Alina086 Date: Tue, 1 Jul 2025 10:39:27 -0400 Subject: [PATCH 2/2] Removed log for when done with study --- frontend/src/editor/index.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/frontend/src/editor/index.tsx b/frontend/src/editor/index.tsx index 8df13302..f7272968 100644 --- a/frontend/src/editor/index.tsx +++ b/frontend/src/editor/index.tsx @@ -293,7 +293,6 @@ function Router({

Welcome!

Thank you for agreeing to participate in our writing study. You'll complete three writing tasks on different topics. - After completing each task, click 'Done' to save your work and continue to the next task. As you write, pay attention to the suggestions the writing tool offers and use them when they seem helpful. There are no right or wrong ways to interact with the tool. Your responses will be kept confidential. You can ask questions at any time. @@ -469,11 +468,6 @@ function Router({ } else if (page === 'study-final') { - log ({ - username: username, - event: 'FinishedStudy', - interaction: 'User finished the study' - }); return

Study Complete

Thank you for participating in our writing study.