Skip to content

Commit

Permalink
Modifying Questionnaire to Emotion Survey
Browse files Browse the repository at this point in the history
modified social support questionnaire with emotion survey
  • Loading branch information
carolinentran committed Jan 16, 2024
1 parent 365126e commit 3faabcc
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Behavior.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
2FE5DCB129EE6107004B9AB4 /* AccountOnboarding.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */; };
2FF53D8B2A8725DE00042B76 /* SpeziMockWebService in Frameworks */ = {isa = PBXBuildFile; productRef = 2FF53D8A2A8725DE00042B76 /* SpeziMockWebService */; };
2FF53D8D2A8729D600042B76 /* BehaviorStandard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FF53D8C2A8729D600042B76 /* BehaviorStandard.swift */; };
3598B9DD2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json in Resources */ = {isa = PBXBuildFile; fileRef = 3598B9DC2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json */; };
5661551D2AB8384200209B80 /* SwiftPackageList in Frameworks */ = {isa = PBXBuildFile; productRef = 5661551C2AB8384200209B80 /* SwiftPackageList */; };
566155292AB8447C00209B80 /* Package+LicenseType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 566155282AB8447C00209B80 /* Package+LicenseType.swift */; };
5661552E2AB854C000209B80 /* PackageHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5661552D2AB854C000209B80 /* PackageHelper.swift */; };
Expand Down Expand Up @@ -128,6 +129,7 @@
2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = SocialSupportQuestionnaire.json; sourceTree = "<group>"; };
2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AccountOnboarding.swift; sourceTree = "<group>"; };
2FF53D8C2A8729D600042B76 /* BehaviorStandard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BehaviorStandard.swift; sourceTree = "<group>"; };
3598B9DC2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = EmotionsQuestionnaireTask4.json; path = ../../../../Downloads/EmotionsQuestionnaireTask4.json; sourceTree = "<group>"; };
566155282AB8447C00209B80 /* Package+LicenseType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Package+LicenseType.swift"; sourceTree = "<group>"; };
5661552D2AB854C000209B80 /* PackageHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PackageHelper.swift; sourceTree = "<group>"; };
5680DD382AB8983D004E6D4A /* PackageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PackageCell.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -243,6 +245,7 @@
2FE5DC2C29EDD78E004B9AB4 /* ConsentDocument.md */,
2FE5DC2A29EDD78D004B9AB4 /* AppIcon.png */,
2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */,
3598B9DC2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json */,
);
path = Resources;
sourceTree = "<group>";
Expand Down Expand Up @@ -524,6 +527,7 @@
2FC3439229EE634B002D773C /* ConsentDocument.md in Resources */,
2FC3439129EE6349002D773C /* AppIcon.png in Resources */,
653A255528338800005D4D48 /* Assets.xcassets in Resources */,
3598B9DD2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json in Resources */,
2FC3439029EE6346002D773C /* SocialSupportQuestionnaire.json in Resources */,
2FA0BFED2ACC977500E0EF83 /* Localizable.xcstrings in Resources */,
2F6025CB29BBE70F0045459E /* GoogleService-Info.plist in Resources */,
Expand Down
27 changes: 27 additions & 0 deletions Behavior/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,28 @@
}
}
},
"EMOTION_QUESTIONNAIRE_DESCRIPTION" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Reflect on how you felt throughout the day! "
}
}
}
},
"EMOTION_QUESTIONNAIRE_TITLE" : {
"extractionState" : "manual",
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Emotion Questionnaire"
}
}
}
},
"HEALTHKIT_PERMISSIONS_BUTTON" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -286,6 +308,9 @@
}
}
},
"Key" : {
"extractionState" : "manual"
},
"LELAND_STANFORD_BIO" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -430,6 +455,7 @@
}
},
"TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_DESCRIPTION" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand All @@ -440,6 +466,7 @@
}
},
"TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_TITLE" : {
"extractionState" : "stale",
"localizations" : {
"en" : {
"stringUnit" : {
Expand Down
6 changes: 3 additions & 3 deletions Behavior/Schedule/BehaviorScheduler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ extension BehaviorScheduler {
}

return Task(
title: String(localized: "TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_TITLE"),
description: String(localized: "TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_DESCRIPTION"),
title: String(localized: "EMOTION_QUESTIONNAIRE_TITLE"),
description: String(localized: "EMOTION_QUESTIONNAIRE_DESCRIPTION"),
schedule: Schedule(
start: Calendar.current.startOfDay(for: Date()),
repetition: .matching(dateComponents),
end: .numberOfEvents(365)
),
notifications: true,
context: BehaviorTaskContext.questionnaire(Bundle.main.questionnaire(withName: "SocialSupportQuestionnaire"))
context: BehaviorTaskContext.questionnaire(Bundle.main.questionnaire(withName: "EmotionsQuestionnaireTask4"))
)
}

Expand Down

0 comments on commit 3faabcc

Please sign in to comment.