Skip to content

Stroop task timeline - #69

Merged
jadeddelta merged 51 commits into
jspsych:mainfrom
lakshmanvishnu:stroop_task
Jul 4, 2026
Merged

Stroop task timeline#69
jadeddelta merged 51 commits into
jspsych:mainfrom
lakshmanvishnu:stroop_task

Conversation

@lakshmanvishnu

@lakshmanvishnu lakshmanvishnu commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

Opened a new branch of my forked repo which only has the stroop task timeline.

@changeset-bot

changeset-bot Bot commented Jul 22, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a1c0ba4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@jspsych-timelines/stroop-task Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/stroop-task/src/style.css
Comment thread packages/stroop-task/src/index.ts Outdated
Comment thread packages/stroop-task/src/index.ts Outdated
Comment thread packages/stroop-task/src/index.ts Outdated
Comment thread packages/stroop-task/src/index.ts Outdated
Comment thread packages/stroop-task/docs/data_handling.md Outdated
Comment thread packages/stroop-task/README.md
Comment thread packages/stroop-task/README.md Outdated
Comment thread packages/stroop-task/src/index.spec.ts
Comment thread packages/stroop-task/src/index.spec.ts Outdated
@lakshmanvishnu

Copy link
Copy Markdown
Contributor Author

add flexible button positioning for main trials

@jadeddelta jadeddelta mentioned this pull request Sep 16, 2025
Comment thread packages/stroop-task/src/index.ts Outdated
}

// Add practice debrief
timeline.push(createPracticeDebrief());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bug: if practice_trials = 0, there is still shown a practice complete! screen after instructions.

to fix, just wrap with if (practice_trials > 0) { timeline.push(createPracticeDebrief());

Comment thread packages/stroop-task/src/index.ts Outdated

// Add createCelcomeAndInstruction function
if (show_welcome_and_instructions) {
timeline.push(createWelcomeAndInstructions(choice_of_colors));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to createInstructions() per standardization

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to change in docs too lol

@farhat60

Copy link
Copy Markdown
Contributor

remaining issue:

  • Buttons go too low on small phones in landscape orientation
    @jadeddelta

css is now specific to the timeline only, text is
fully customizable, docs are updated and the package
itself is cleaned up.
@jadeddelta
jadeddelta requested a review from jodeleeuw June 3, 2026 19:40
Comment thread packages/stroop-task/src/index.ts Outdated
Comment thread packages/stroop-task/src/index.ts
@jadeddelta jadeddelta self-assigned this Jun 10, 2026
@jadeddelta
jadeddelta merged commit e4b0f8d into jspsych:main Jul 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants