Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
9e1473d
Change string escaping so it works on windows
JackWilb Oct 22, 2025
d8bc645
fixing spacing before 'space bar' and 'red ball' words in virtual chi…
alexsb Oct 27, 2025
b631b65
Add exclude from randomization type
jaykim1213 Oct 29, 2025
4e2cbd4
Update schema
jaykim1213 Oct 29, 2025
333d05d
Update demo survey
jaykim1213 Oct 29, 2025
35f7d82
Update demo survey
jaykim1213 Oct 29, 2025
c2b10f3
Add exclude from randomization logic
jaykim1213 Oct 29, 2025
2c03359
Add divider response
jaykim1213 Oct 29, 2025
32f7a95
Rename responseDividers to withDivider
jaykim1213 Oct 29, 2025
6ccc26c
Update to handle undefined prompts
jaykim1213 Oct 29, 2025
d6b7e2b
Merge branch 'main' into dev
JackWilb Oct 30, 2025
aec0926
Modify the alert modal to take a title
JackWilb Oct 30, 2025
b9d7efc
Open the alert modal if disconnected from the storage engine
JackWilb Oct 30, 2025
b6a34c5
Merge pull request #944 from revisit-studies/disconnected-modal
JackWilb Oct 30, 2025
5571531
Revert to response dividers
jaykim1213 Oct 30, 2025
0cc73b1
Update to response divider
jaykim1213 Oct 30, 2025
f4218f7
Merge pull request #941 from revisit-studies/jk/excludeRandomization
jaykim1213 Oct 30, 2025
3421b1c
Merge pull request #942 from revisit-studies/jk/divider
jaykim1213 Oct 30, 2025
97d35ea
Merge branch 'main' into dev
JackWilb Nov 2, 2025
b4e89c3
Add replication tutorial content
JackWilb Nov 2, 2025
a672133
Move structured link to the bottom
jaykim1213 Nov 3, 2025
fb63d4c
Remove double render from auth resolution
JackWilb Nov 10, 2025
ccba80f
Merge pull request #948 from revisit-studies/jk/docs
jaykim1213 Nov 10, 2025
e1f968b
Remove small css file that adds another request
JackWilb Nov 11, 2025
dbe75ed
Remove duplicated modes calls from study cards
JackWilb Nov 11, 2025
4bbfb40
Merge pull request #953 from revisit-studies/performance
JackWilb Nov 11, 2025
6b9c269
Merge branch 'main' into dev
JackWilb Nov 11, 2025
bfe8c33
5 -> 7 in umux
JackWilb Nov 11, 2025
444f366
Bump deps
JackWilb Nov 12, 2025
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
13 changes: 11 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ReVISit</title>

<link rel="stylesheet" href="/revisitAssets/cssOverrides.css" />

<!-- Required for react browser router on GitHub pages -->
<script type="text/javascript">
// Single Page Apps for GitHub Pages
Expand All @@ -33,6 +31,17 @@

</head>
<body style="margin: 0;">
<style>
/* Global style overrides */
.no-last-child-bottom-padding > *:last-child {
padding-bottom: 0 !important;
}

.no-last-child-bottom-padding {
font-weight: 500;
}
</style>

<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
Expand Down
39 changes: 20 additions & 19 deletions libraryDocGenerator.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,6 @@ const path = require('path');
const generateMd = (library, libraryConfig, forDocs) => `
# ${library}

${forDocs ?
`import StructuredLinks from '@site/src/components/StructuredLinks/StructuredLinks.tsx';

<StructuredLinks
demoLinks={[
{name: "${library} Demo", url: "https://revisit.dev/study/library-${library}"}
]}
codeLinks={[
{name: "${library} Code", url: "https://github.com/revisit-studies/study/tree/main/public/library-${library}"}
]}
${
(libraryConfig.doi || libraryConfig.externalLink)
? `referenceLinks={[
${libraryConfig.doi ? `{name: "DOI", url: "https://dx.doi.org/${libraryConfig.doi}"}` : ''}${libraryConfig.doi && libraryConfig.externalLink ? ',' : ''}
${libraryConfig.externalLink ? `{name: "${library}", url: "${libraryConfig.externalLink}"}` : ''}
]}`
: ''}
/>` : ''}

${!forDocs ? `This is an example study of the library \`${library}\`.` : ''}

${libraryConfig.description}
Expand All @@ -51,6 +32,26 @@ ${Object.keys(libraryConfig.sequences).length > 0
: 'None'}

${libraryConfig.additionalDescription ? `## Additional Description\n\n${libraryConfig.additionalDescription}` : ''}

${forDocs ?
`<!-- Importing Links -->`
`import StructuredLinks from '@site/src/components/StructuredLinks/StructuredLinks.tsx';

<StructuredLinks
demoLinks={[
{name: "${library} Demo", url: "https://revisit.dev/study/library-${library}"}
]}
codeLinks={[
{name: "${library} Code", url: "https://github.com/revisit-studies/study/tree/main/public/library-${library}"}
]}
${
(libraryConfig.doi || libraryConfig.externalLink)
? `referenceLinks={[
${libraryConfig.doi ? `{name: "DOI", url: "https://dx.doi.org/${libraryConfig.doi}"}` : ''}${libraryConfig.doi && libraryConfig.externalLink ? ',' : ''}
${libraryConfig.externalLink ? `{name: "${library}", url: "${libraryConfig.externalLink}"}` : ''}
]}`
: ''}
/>` : ''}
`;

const librariesPath = path.join(__dirname, './public/libraries');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"generate-schemas": "yarn generate-schema:StudyConfig && yarn generate-schema:GlobalConfig && yarn generate-schema:LibraryConfig",
"test": "playwright test",
"unittest": "vitest",
"preinstall": "node -e 'if(!/yarn\\.js$/.test(process.env.npm_execpath))throw new Error(\"Use yarn\")'",
"preinstall": "node -e \"if(!/yarn\\.js$/.test(process.env.npm_execpath))throw new Error('Use yarn')\"",
"postinstall": "husky"
},
"lint-staged": {
Expand Down
23 changes: 17 additions & 6 deletions public/demo-survey/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,11 @@
"Option 2",
"Option 3",
"Option 4"
],
"withDivider": true
]
},
{
"id": "divider1",
"type": "divider"
},
{
"id": "matrixHeaderTitle",
Expand All @@ -227,8 +230,11 @@
"type": "likert",
"numItems": 9,
"rightLabel": "Like",
"leftLabel": "Dislike",
"withDivider": true
"leftLabel": "Dislike"
},
{
"id": "divider2",
"type": "divider"
},
{
"id": "q-multi-satisfaction",
Expand Down Expand Up @@ -382,7 +388,8 @@
{
"id": "textField",
"type": "textOnly",
"prompt": "# Randomizing Questions in a Form\n\n This shows how to randomize the order of questions in the form. Notice how the number before each question is different from the order number specified in the text. Note that currently the title is also randomized; you can avoid that by putting the title in a markdown file and adding the questions as a response."
"prompt": "# Randomizing Questions in a Form\n\n This shows how to randomize the order of questions in the form. Notice how the number before each question is different from the order number specified in the text. Note that currently the title is not randomized; you can exclude a form element from being randomized if you need to.",
"excludeFromRandomization": true
},
{
"id": "q-dropdown",
Expand Down Expand Up @@ -645,7 +652,11 @@
"Option 2",
"Option 3"
],
"withDivider": true,
"location": "sidebar"
},
{
"id": "divider",
"type": "divider",
"location": "sidebar"
},
{
Expand Down
4 changes: 4 additions & 0 deletions public/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://raw.githubusercontent.com/revisit-studies/study/v2.3.1/src/parser/GlobalConfigSchema.json",
"configsList": [
"tutorial",
"tutorial-replication",
"demo-html",
"demo-html-input",
"demo-screen-recording",
Expand Down Expand Up @@ -54,6 +55,9 @@
"tutorial": {
"path": "tutorial/config.json"
},
"tutorial-replication": {
"path": "tutorial/replication-config.json"
},
"demo-video-slider": {
"path": "demo-video-slider/config.json"
},
Expand Down
2 changes: 1 addition & 1 deletion public/libraries/umux-lite/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"required": true,
"location": "aboveStimulus",
"type": "likert",
"numItems": 5,
"numItems": 7,
"rightLabel": "Strongly Agree",
"leftLabel": "Strongly Disagree"
}
Expand Down
2 changes: 1 addition & 1 deletion public/libraries/umux/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"required": true,
"location": "aboveStimulus",
"type": "likert",
"numItems": 5,
"numItems": 7,
"rightLabel": "Strongly Agree",
"leftLabel": "Strongly Disagree"
},
Expand Down
7 changes: 0 additions & 7 deletions public/revisitAssets/cssOverrides.css

This file was deleted.

8 changes: 6 additions & 2 deletions public/tutorial/_answers/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,12 @@
"secondaryText": "1 being the worst health and 5 being the best health",
"numItems": 5,
"rightLabel": "Best health",
"leftLabel": "Worst health",
"withDivider": true
"leftLabel": "Worst health"
},
{
"id": "dividerResponse",
"type": "divider",
"location": "belowStimulus"
},
{
"id": "fruits",
Expand Down
98 changes: 98 additions & 0 deletions public/tutorial/_answers/replication-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"$schema": "https://raw.githubusercontent.com/revisit-studies/study/main/src/parser/StudyConfigSchema.json",
"studyMetadata": {
"title": "Scatter Plot JND Study",
"version": "pilot",
"authors": ["The reVISit Team"],
"date": "2025-11-02",
"description": "This is a reVISit variation study of JND(Just Noticeable Difference) Scatter Plot experiment.",
"organizations": ["University of Utah", "WPI", "University of Toronto"]
},
"uiConfig": {
"contactEmail": "contact@revisit.dev",
"helpTextPath": "ScatterJND-study/assets/help.md",
"logoPath": "revisitAssets/revisitLogoSquare.svg",
"withProgressBar": true,
"autoDownloadStudy": false,
"withSidebar": false,
"urlParticipantIdParam": "PROLIFIC_PID",
"studyEndMsg": "**Thank you for completing the study. You may click this link and return to Prolific**: [https://app.prolific.com/submissions/complete?cc=C1E35XG4](https://app.prolific.com/submissions/complete?cc=C1E35XG4)",
"participantNameField": "introduction.prolificId"
},
"baseComponents": {
"scatterBase": {
"type": "react-component",
"path": "tutorial/assets/replication/ScatterWrapper.tsx",
"response": [
{
"id": "buttonsResponse",
"type": "buttons",
"prompt": "Choose the plot with the higher correlation:",
"required": true,
"location": "belowStimulus",
"options": [
{ "label": "Left Plot", "value": "left" },
{ "label": "Right Plot", "value": "right" }
]
}
]
}
},
"components": {
"practice T1 A:0.3 B:0.7": {
"baseComponent": "scatterBase",
"parameters": { "r1": 0.3, "r2": 0.7 },
"correctAnswer": [
{
"id": "buttonsResponse",
"answer": "right"
}
],
"provideFeedback": true
},
"practice T2 A:0.9 B:0.6": {
"baseComponent": "scatterBase",
"parameters": { "r1": 0.9, "r2": 0.6 },
"correctAnswer": [
{
"id": "buttonsResponse",
"answer": "left"
}
],
"provideFeedback": true
},
"practice T3 A:0.6 B:0.3": {
"baseComponent": "scatterBase",
"parameters": { "r1": 0.6, "r2": 0.3 },
"correctAnswer": [
{
"id": "buttonsResponse",
"answer": "left"
}
],
"provideFeedback": true
},
"trial": {
"baseComponent": "scatterBase"
}
},
"sequence": {
"order": "fixed",
"components": [
{
"order": "fixed",
"components": [
"practice T1 A:0.3 B:0.7",
"practice T2 A:0.9 B:0.6",
"practice T3 A:0.6 B:0.3",
{
"order": "dynamic",
"id": "steppedSequence",
"functionPath": "tutorial/assets/replication/JNDDynamic.tsx",
"parameters": {}
}
]
}
]
}
}
Loading
Loading