Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new simple template #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
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
Loading