-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix build issue, improve experience sampling
- Loading branch information
Showing
12 changed files
with
139 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export interface UserInputTrackerConfiguration { | ||
enabled: boolean; | ||
intervalInMs: number; | ||
} | ||
|
||
export interface WindowActivityTrackerConfiguration { | ||
enabled: boolean; | ||
intervalInMs: number; | ||
} | ||
|
||
export interface ExperienceSamplingConfiguration { | ||
enabled: boolean; | ||
scale: number; | ||
questions: string[]; | ||
responseOptions: string[][]; | ||
samplingIntervalInMinutes: number; | ||
samplingRandomization: boolean; | ||
} | ||
|
||
export interface TrackerConfiguration { | ||
windowActivityTracker: WindowActivityTrackerConfiguration; | ||
userInputTracker: UserInputTrackerConfiguration; | ||
experienceSampling: ExperienceSamplingConfiguration; | ||
} | ||
|
||
export interface StudyConfiguration { | ||
name: string; | ||
shortDescription: string; | ||
infoUrl: string; | ||
privacyPolicyUrl: string; | ||
uploadUrl: string; | ||
contactName: string; | ||
contactEmail: string; | ||
subjectIdLength: number; | ||
trackers: TrackerConfiguration; | ||
} |
This file contains 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
1 change: 1 addition & 0 deletions
1
src/electron/electron/shared/Commands.ts → src/electron/src/utils/Commands.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
type Commands = { | ||
createExperienceSample: (promptedAt: number, question: string, response: number) => Promise<void>; | ||
closeExperienceSamplingWindow: () => Promise<void>; | ||
}; | ||
export default Commands; |
File renamed without changes.
File renamed without changes.
This file contains 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
This file contains 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