Add effortCheck config parameter to control attention check display#1066
Draft
Add effortCheck config parameter to control attention check display#1066
Conversation
Co-authored-by: JamesPHoughton <4304478+JamesPHoughton@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [FEATURE]: Make the effort check a config parameter
Add effortCheck config parameter to control attention check display
Oct 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR implements a new optional
effortCheckconfiguration parameter that gives experiment designers control over the sentence typing effort check (attention check) during intro steps. This addresses the feature request to allow skipping the effort check when prioritizing speed in the intro stages.Changes
Configuration Options
The new
effortCheckparameter supports three configurations:effortCheck: true(default) - Shows the effort check with the default sentence: "I agree to participate in this study to the best of my ability."effortCheck: false- Completely skips the attention check step in the intro sequenceeffortCheck: "Custom sentence text"- Shows the effort check with a custom sentence that participants must type exactlyExample Usage
Skip the effort check to prioritize intro speed:
{ "batchName": "fast-intro-experiment", "effortCheck": false, ... }Use a custom sentence for domain-specific context:
{ "batchName": "custom-attention-experiment", "effortCheck": "The quick brown fox jumps over the lazy dog", ... }Existing configs continue to work unchanged (defaults to
true):{ "batchName": "standard-experiment", // effortCheck not specified - shows default attention check ... }Implementation Details
validateBatchConfig.ts): Added optional schema field accepting boolean or string valuesApp.jsx): ModifiedintroSteps()to conditionally includeAttentionCheckcomponent based on configAttentionCheck.jsx): Updated to read and display custom sentence text from configbatchConfig.md): Added comprehensive documentation with examples and use casesBackwards Compatibility
This change is fully backwards compatible:
effortCheckparameter is optionaltrue(existing behavior)checkVideoandcheckAudioconfig parametersTesting
effortCheck)Fixes #[issue-number]
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
o1.ingest.sentry.ionode /home/REDACTED/work/deliberation-empirica/deliberation-empirica/client/node_modules/.bin/vite build(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.