feat: the participant is quizzed periodically during a group chat - #1174
Open
jacyanthis wants to merge 13 commits into
Open
feat: the participant is quizzed periodically during a group chat#1174jacyanthis wants to merge 13 commits into
jacyanthis wants to merge 13 commits into
Conversation
… message, fixing overly broad guard
…d from that color
Contributor
Author
Contributor
Author
|
Manual testing per template: Set up an experiment with (i) a participant who is assigned the boolean variable Expected behavior: The quiz pauses the chat after each of the first three messages, resuming each time once the quiz is submitted. |
# Conflicts: # docs/assets/api/schemas.json # frontend/src/components/chat/chat_input.ts # frontend/src/components/chat/chat_interface.ts # frontend/src/components/chat/chat_message.ts # frontend/src/components/stages/group_chat_participant_view.ts # scripts/deliberate_lab/types.py # utils/src/stages/chat_stage.ts # utils/src/stages/chat_stage.validation.ts
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.
This PR builds on #1171 and should only be merged after it is merged.
This PR adds a periodic quiz for the participant to share their reactions to the group chat. By default, this pauses the turn-based group chat after each third of the minimum message count (up to 3 quizzes; fewer if the minimum is fewer than 3). It asks two questions: a 7-point Likert ("Do you like the process so far?") and a free-text explanation ("In one sentence, describe what you currently like or dislike.").
This is gated by a magic participant variable,
_isQuizzed(boolean). If the chat is not turn-based, then this variable is ignored, and the variable editor warns the experimenter that it is being ignored.