From 7f523aeaeacfc55216f48b1ce8acdffa14f265df Mon Sep 17 00:00:00 2001 From: Alina086 Date: Tue, 1 Jul 2025 14:45:39 -0400 Subject: [PATCH 1/4] Made changes to use only one postTask URL link and passed condition as URL parameter. --- frontend/src/editor/index.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/src/editor/index.tsx b/frontend/src/editor/index.tsx index f7272968..8cd65464 100644 --- a/frontend/src/editor/index.tsx +++ b/frontend/src/editor/index.tsx @@ -150,9 +150,7 @@ const studyPageNames = [ const SURVEY_URLS = { consentForm: 'https://calvin.co1.qualtrics.com/jfe/form/SV_3adI70Zxk7e2ueW', preStudy: 'https://calvin.co1.qualtrics.com/jfe/form/SV_eM6R5Yw7nnJ3jh4', - Completion: 'https://calvin.co1.qualtrics.com/jfe/form/SV_6Vuc9vgqMuEqzVY', - Question: 'https://calvin.co1.qualtrics.com/jfe/form/SV_7X8tAiech6zP79A', - RMove: 'https://calvin.co1.qualtrics.com/jfe/form/SV_1M8MN5b0H9pfYsm', + postTask: 'https://calvin.co1.qualtrics.com/jfe/form/SV_8wPtqNx6ZjL2HJQ', postStudy: 'https://calvin.co1.qualtrics.com/jfe/form/SV_79DIQlYz4SJCwnk' }; @@ -416,7 +414,7 @@ function Router({ const postTaskNumber = page.replace('study-postTask', ''); const conditionConfig = conditionConfigs[postTaskNumber as keyof typeof conditionConfigs]; const condition = conditionConfig.condition; - const postTaskSurveyURL = SURVEY_URLS[condition as keyof typeof SURVEY_URLS]; + const postTaskSurveyURL = SURVEY_URLS.postTask; return

Thank you for completing Task {postTaskNumber}. Please take a moment to complete a brief survey.

@@ -425,10 +423,10 @@ function Router({ log ({ username: username, event: `StartPostTask${postTaskNumber}`, - interaction: `User started post task ${postTaskNumber} survey` + interaction: `User started post task ${postTaskNumber} survey with condition ${condition}` }); }} - href={`${postTaskSurveyURL}?redirect_url=${redirectURL}&username=${username}`} + href={`${postTaskSurveyURL}?redirect_url=${redirectURL}&username=${username}&condition=${condition}`} className={classes.startButton} > Take Survey From c6af5ba9c9fe8ff459ce2285cfcf23d1863bfc4b Mon Sep 17 00:00:00 2001 From: Alina086 Date: Tue, 1 Jul 2025 15:21:24 -0400 Subject: [PATCH 2/4] Changed writing task #1 --- frontend/src/editor/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/frontend/src/editor/index.tsx b/frontend/src/editor/index.tsx index 8cd65464..e2fdb5d7 100644 --- a/frontend/src/editor/index.tsx +++ b/frontend/src/editor/index.tsx @@ -157,11 +157,10 @@ const SURVEY_URLS = { const taskConfigs = { '1': { - condition: 'Completion', - taskPrompt: 'Task 1: Should companies adopt a four-day work week (working Monday through Thursday) instead of the traditional five-day schedule? Consider impacts on productivity, employee well-being, and business operations.', - }, + taskPrompt:`The director of the International Health Foundation recently released this announcement: 'A new medical test that allows the early detection of a particular disease will prevent the deaths of people all over the world who would otherwise die from the disease. The test has been extremely effective in allowing doctors to diagnose the disease six months to a year before it would have been spotted by conventional means. As soon as we can institute this test as a routine procedure in hospitals around the world, the death rate from this disease will plummet.' + + After reading the above passage, write a response in which you examine the stated and/or unstated assumptions of the argument. Be sure to explain how the argument depends on the assumptions and what the consequences are if the assumptions prove unwarranted.` }, '2': { - condition: 'Question', taskPrompt: `Task 2: Write a cover letter for the position described. The applicant is a recent college graduate with a major in Environmental Sustainability and a minor in Marketing, with relevant internship experience. Demonstrate how their background aligns with the company’s mission and requirements. [Details are given below in the editor document] GreenTech Solutions - Sustainability Coordinator Position @@ -185,7 +184,6 @@ const taskConfigs = { - Stay current with environmental regulations and industry trends` }, '3': { - condition: 'RMove', taskPrompt: `Task 3: After reading these paragraphs, write a summary that explains CRISPR gene editing to your 11th grade biology classmates. Your goal is to help them understand what CRISPR is, how it works, and why it matters, using language and examples they would find clear and engaging. CRISPR-Cas9 is a revolutionary gene-editing technology that allows scientists to make precise changes to DNA. Originally discovered as part of bacteria's immune system, CRISPR works like molecular scissors that can cut DNA at specific locations and either remove, add, or replace genetic material. From 0ddd64d6d13ba7a0552eb06cbfc2075cce0afe9f Mon Sep 17 00:00:00 2001 From: Alina086 Date: Tue, 1 Jul 2025 15:37:48 -0400 Subject: [PATCH 3/4] Removed the line bordering the editable content section in editor --- frontend/src/editor/editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/editor/editor.tsx b/frontend/src/editor/editor.tsx index f07a5463..1fa7f88e 100644 --- a/frontend/src/editor/editor.tsx +++ b/frontend/src/editor/editor.tsx @@ -179,10 +179,10 @@ function LexicalEditor({ >
- { taskPrompt &&
{taskPrompt}
} + { taskPrompt &&
{taskPrompt}
} + } placeholder={
} ErrorBoundary={ LexicalErrorBoundary } From a1172f274b363b36aa7f618024532da01cb39ca8 Mon Sep 17 00:00:00 2001 From: Alina086 Date: Tue, 1 Jul 2025 16:11:18 -0400 Subject: [PATCH 4/4] Changed task prompts --- frontend/src/editor/index.tsx | 44 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 23 deletions(-) diff --git a/frontend/src/editor/index.tsx b/frontend/src/editor/index.tsx index e2fdb5d7..c1619e06 100644 --- a/frontend/src/editor/index.tsx +++ b/frontend/src/editor/index.tsx @@ -157,31 +157,29 @@ const SURVEY_URLS = { const taskConfigs = { '1': { - taskPrompt:`The director of the International Health Foundation recently released this announcement: 'A new medical test that allows the early detection of a particular disease will prevent the deaths of people all over the world who would otherwise die from the disease. The test has been extremely effective in allowing doctors to diagnose the disease six months to a year before it would have been spotted by conventional means. As soon as we can institute this test as a routine procedure in hospitals around the world, the death rate from this disease will plummet.' + taskPrompt:`The marketing director of RetailMax stated: 'Shifting our entire advertising budget to social media influencer partnerships will triple our sales among consumers aged 18-34. Influencer marketing generates 6 times higher engagement rates than traditional advertising. Young consumers trust influencer recommendations more than celebrity endorsements or TV commercials. This strategy will establish our brand as the preferred choice for the next generation of shoppers.' - After reading the above passage, write a response in which you examine the stated and/or unstated assumptions of the argument. Be sure to explain how the argument depends on the assumptions and what the consequences are if the assumptions prove unwarranted.` }, + Write a response in which you examine the stated and/or unstated assumptions of the argument. Be sure to explain how the argument depends on the assumptions and what the implications are if the assumptions prove unwarranted.` }, '2': { - taskPrompt: `Task 2: Write a cover letter for the position described. The applicant is a recent college graduate with a major in Environmental Sustainability and a minor in Marketing, with relevant internship experience. Demonstrate how their background aligns with the company’s mission and requirements. [Details are given below in the editor document] - GreenTech Solutions - Sustainability Coordinator Position - - Company Overview: - GreenTech Solutions is a fast-growing environmental consulting firm that helps businesses reduce their carbon footprint and implement sustainable practices. We work with companies across various industries to develop eco-friendly strategies that benefit both the environment and their bottom line. - - Position Requirements: - - Bachelor's degree in Environmental Science, Sustainability, or related field - - Strong communication and project management skills - - Experience with sustainability reporting and environmental assessments - - Knowledge of marketing principles for promoting green initiatives - - Ability to work with diverse teams and clients - - Internship or work experience in environmental or sustainability roles preferred - - Job Responsibilities: - - Assist clients in developing and implementing sustainability plans - - Conduct environmental impact assessments - - Create marketing materials to promote sustainable practices - - Collaborate with cross-functional teams on green initiatives - - Prepare sustainability reports and presentations for clients - - Stay current with environmental regulations and industry trends` + taskPrompt: ` + You will write a professional email from the perspective of a fictional job applicant. Write a professional email to the hiring manager expressing your interest in the job position. Please read the following information carefully: + + Your Role: You are Sarah Martinez, writing an email about a job opportunity. + + Sarah's Background: + Recently completed an Associate's degree in General Studies + Worked 3 years as a shift supervisor at a busy coffee shop chain + Experience training new employees and handling customer complaints + Volunteered for 2 years at a local food bank, helping with intake and organization + Managed scheduling and inventory at the coffee shop + Bilingual (English/Spanish) + Known for staying calm under pressure and being very reliable + Interested in healthcare because she wants to help people in her community + Has some basic computer skills from college and work + + Job Opportunity: + Administrative Coordinator - Community Health Center + We're seeking an organized, detail-oriented Administrative Coordinator to support our busy community health center. Responsibilities include scheduling appointments, maintaining patient records, coordinating between departments, and providing excellent customer service to patients and families. The ideal candidate is a strong communicator who works well in a fast-paced environment and is passionate about helping others. Previous healthcare experience preferred but not required. We value reliability, empathy, and problem-solving skills.` }, '3': { taskPrompt: `Task 3: After reading these paragraphs, write a summary that explains CRISPR gene editing to your 11th grade biology classmates. Your goal is to help them understand what CRISPR is, how it works, and why it matters, using language and examples they would find clear and engaging.