Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions frontend/src/editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ 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: '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.',
},
'2': {
condition: 'Question',
Expand Down Expand Up @@ -189,7 +189,7 @@ const taskConfigs = {
'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.

The CRISPR system consists of two main components: a guide RNA that identifies the target DNA sequence, and the Cas9 protein that acts as the cutting tool. When these components are introduced into a cell, they seek out the matching DNA sequence and make a precise cut. The cell's natural repair mechanisms then fix the break, allowing scientists to insert new genetic material or correct defective genes.
Expand All @@ -198,8 +198,8 @@ const taskConfigs = {

However, CRISPR also raises important ethical questions, particularly regarding its use in human embryos, which could create permanent changes that would be passed down to future generations. The scientific community continues to debate the appropriate boundaries for this powerful technology while working to ensure its safe and beneficial application.`
}
}
}

const letterToCondition = {
e: 'Completion',
q: 'Question',
Expand All @@ -213,7 +213,7 @@ const taskConfigs = {
result[(idx + 1).toString()] = { condition: letterToCondition[letter as keyof typeof letterToCondition] };
});
return result;
}
}

function Router({
page
Expand Down Expand Up @@ -281,7 +281,7 @@ function Router({
interaction: 'User clicked Consent Form button'
});
; }}
href={`${consentFormURL}?redirect_url=${redirectURL}`}
href={`${consentFormURL}?redirect_url=${redirectURL}&username=${username}`}
className={classes.startButton}
>
Sign Consent Form
Expand All @@ -306,7 +306,7 @@ function Router({
interaction: 'User clicked Start Study button'
});
urlParams.set('page', nextPage)
window.location.search = urlParams.toString();
window.location.search = urlParams.toString();
}}
className={classes.startButton}
>
Expand All @@ -331,7 +331,7 @@ function Router({
interaction: 'User clicked Intro Survey button'
});
; }}
href={`${introSurveyURL}?redirect_url=${redirectURL}`}
href={`${introSurveyURL}?redirect_url=${redirectURL}&username=${username}`}
className={classes.startButton}
>
Take the Intro Survey
Expand Down Expand Up @@ -387,8 +387,8 @@ function Router({

return (
<div>
<EditorScreen
taskID={taskID}
<EditorScreen
taskID={taskID}
taskPrompt={taskConfig.taskPrompt}
/>

Expand Down Expand Up @@ -429,7 +429,7 @@ function Router({
interaction: `User started post task ${postTaskNumber} survey`
});
}}
href={`${postTaskSurveyURL}?redirect_url=${redirectURL}`}
href={`${postTaskSurveyURL}?redirect_url=${redirectURL}&username=${username}`}
className={classes.startButton}
>
Take Survey
Expand All @@ -453,7 +453,7 @@ function Router({
interaction: 'User clicked final Post Study Survey button'
});
; }}
href={`${postStudySurveyURL}?redirect_url=${redirectURL}`}
href={`${postStudySurveyURL}?redirect_url=${redirectURL}&username=${username}`}
className={classes.startButton}
>
Take the Post Study Survey
Expand All @@ -474,7 +474,7 @@ function Router({
interaction: 'User finished the study'
});
urlParams.set('page', 'study-intro')
window.location.search = urlParams.toString();
window.location.search = urlParams.toString();
}}
className={classes.startButton}
>
Expand Down
Loading