Skip to content

Commit

Permalink
small updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ZachCutler04 committed Sep 4, 2024
1 parent e717326 commit 8b90591
Show file tree
Hide file tree
Showing 7 changed files with 1,045 additions and 1,093 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
"uuid": "^10.0.0",
"vega": "^5.28.0",
"vega-lite": "^5.17.0",
"wavesurfer-react": "2.2.3",
"wavesurfer.js": "7.4.2"
"wavesurfer-react": "^2.2.3",
"wavesurfer.js": "^7.4.2"
},
"devDependencies": {
"@playwright/test": "^1.44.0",
Expand Down
3 changes: 2 additions & 1 deletion public/ThinkAloud/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@
"University of Toronto"
]
},
"recordStudyAudio": false,
"tasksToNotRecordAudio": ["introduction", "consent", "post-study-survey", "end"],
"uiConfig": {
"contactEmail": "cnobre@cs.toronto.edu",
"contactEmail": "cnobre@cs.toronto.edu",
"helpTextPath": "ThinkAloud/titanicTutorial.md",
"logoPath": "revisitAssets/revisitLogoSquare.svg",
"withProgressBar": true,
Expand Down
2 changes: 2 additions & 0 deletions src/analysis/thinkAloudTable/ThinkAloudTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
Loader,
MenuItem,
ScrollArea,
Button,
} from '@mantine/core';
import React, {
useCallback, useEffect, useMemo, useState,
Expand Down Expand Up @@ -450,6 +451,7 @@ export function ThinkAloudTable({
<Group>
<Title order={5}>Select Task</Title>
<Select clearable value={currentTask} onChange={setCurrentTask} data={uniqueTrials} />
<Button>Download all</Button>
</Group>

<Group>
Expand Down
2 changes: 1 addition & 1 deletion src/components/downloader/DownloadButtons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function DownloadButtons({ allParticipants, studyId }: { allParticipants:
variant="light"
disabled={allParticipants.length === 0}
onClick={() => {
download(JSON.stringify(allParticipants, null, 2), `${studyId}_all.json`);
download(JSON.stringify(allParticipants), `${studyId}_all.json`);
}}
onMouseEnter={openJson}
onMouseLeave={closeJson}
Expand Down
2 changes: 1 addition & 1 deletion src/components/interface/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function AppHeader({ studyNavigatorEnabled, dataCollectionEnabled
<Space w="md" />
<Title order={4}>{studyConfig?.studyMetadata.title}</Title>
{isRecording ? (
<Group gap={20} wrap="nowrap">
<Group ml="xl" gap={20} wrap="nowrap">
<Text color="red">Recording audio</Text>
<RecordingAudioWaveform />
</Group>
Expand Down
2 changes: 1 addition & 1 deletion src/public/ThinkAloud/AudioTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function AudioTest({ parameters, setAnswer }: StimulusParams<BrushParams>
Once we can confirm that your microphone is on and we hear you say something, the continue button will become available.
</Text>
<Text ta="center" style={{ fontWeight: 700 }}>
If you are not comfortable or able to speak English during this study, please close it now.
If you are not comfortable or able to speak English during this study, please return the study.
</Text>
<Center><RecordingAudioWaveform height={200} width={400} /></Center>
</Stack>
Expand Down
2,123 changes: 1,036 additions & 1,087 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 8b90591

Please sign in to comment.