Skip to content

Commit

Permalink
new simple template
Browse files Browse the repository at this point in the history
  • Loading branch information
gumillie222 committed Sep 24, 2024
1 parent 235de41 commit 26a5c85
Showing 1 changed file with 84 additions and 66 deletions.
150 changes: 84 additions & 66 deletions src/app/editor/components/CodeEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,85 +9,103 @@ export default function CodeEditor() {

const defaultTreatment = useMemo(
() => ({
name: 'Example Treatment',
desc: 'Run through the entire negotiation sequence.',
playerCount: 3,
// the simplied version of the template
name: 'Example Treatment Simplified',
desc: 'Run through a simplified template.',
playerCount: 1,
assignPositionsBy: 'random',
gameStages: [
{
name: 'Role Assignment and General Instructions',
duration: 300,
desc: 'Assign participants a role',
elements: [
{
type: 'prompt',
file: 'projects/3-way-negotiation/01a_instructions_3_way_negotiation.md',
showToPositions: [0],
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/01b_instructions_3_way_negotiation.md',
showToPositions: [1],
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/01c_instructions_3_way_negotiation.md',
showToPositions: [2],
},
{
type: 'submitButton',
},
],
},
{
name: 'Main Discussion',
duration: 600,
desc: 'Main Discussion Time',
discussion: {
showNickname: false,
showTitle: true,
},
elements: [
{
type: 'prompt',
file: 'projects/3-way-negotiation/03a_rep_a.md',
showToPositions: [0],
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/03b_rep_b.md',
showToPositions: [1],
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/03c_rep_c.md',
showToPositions: [2],
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/05_response_submission.md',
},
{
type: 'separator',
style: 'thin',
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/06_multipleChoice_agreement_submission.md',
name: 'dealsheet1',
},
{
type: 'prompt',
file: 'projects/3-way-negotiation/06_multipleChoice_agreement_submission_inclusion.md',
name: 'dealsheet2',
},
{
type: 'submitButton',
buttonText: 'Submit Now and End Negotiation',
},
],
},
],
// original template
// name: 'Example Treatment',
// desc: 'Run through the entire negotiation sequence.',
// playerCount: 3,
// assignPositionsBy: 'random',
// gameStages: [
// {
// name: 'Role Assignment and General Instructions',
// duration: 300,
// desc: 'Assign participants a role',
// elements: [
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/01a_instructions_3_way_negotiation.md',
// showToPositions: [0],
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/01b_instructions_3_way_negotiation.md',
// showToPositions: [1],
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/01c_instructions_3_way_negotiation.md',
// showToPositions: [2],
// },
// {
// type: 'submitButton',
// },
// ],
// },
// {
// name: 'Main Discussion',
// duration: 600,
// desc: 'Main Discussion Time',
// discussion: {
// showNickname: false,
// showTitle: true,
// },
// elements: [
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/03a_rep_a.md',
// showToPositions: [0],
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/03b_rep_b.md',
// showToPositions: [1],
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/03c_rep_c.md',
// showToPositions: [2],
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/05_response_submission.md',
// },
// {
// type: 'separator',
// style: 'thin',
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/06_multipleChoice_agreement_submission.md',
// name: 'dealsheet1',
// },
// {
// type: 'prompt',
// file: 'projects/3-way-negotiation/06_multipleChoice_agreement_submission_inclusion.md',
// name: 'dealsheet2',
// },
// {
// type: 'submitButton',
// buttonText: 'Submit Now and End Negotiation',
// },
// ],
// },
// ],
}),
[]
)
Expand Down

0 comments on commit 26a5c85

Please sign in to comment.