From 3faabcc66e1027febfe71f7e966107351b058c77 Mon Sep 17 00:00:00 2001 From: Caroline Tran <89322465+carolinentran@users.noreply.github.com> Date: Mon, 15 Jan 2024 23:26:08 -0800 Subject: [PATCH] Modifying Questionnaire to Emotion Survey modified social support questionnaire with emotion survey --- Behavior.xcodeproj/project.pbxproj | 4 ++++ Behavior/Resources/Localizable.xcstrings | 27 +++++++++++++++++++++++ Behavior/Schedule/BehaviorScheduler.swift | 6 ++--- 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/Behavior.xcodeproj/project.pbxproj b/Behavior.xcodeproj/project.pbxproj index 72ad386..3da7844 100644 --- a/Behavior.xcodeproj/project.pbxproj +++ b/Behavior.xcodeproj/project.pbxproj @@ -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 */; }; @@ -128,6 +129,7 @@ 2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = SocialSupportQuestionnaire.json; sourceTree = ""; }; 2FE5DCAC29EE6107004B9AB4 /* AccountOnboarding.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AccountOnboarding.swift; sourceTree = ""; }; 2FF53D8C2A8729D600042B76 /* BehaviorStandard.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BehaviorStandard.swift; sourceTree = ""; }; + 3598B9DC2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; name = EmotionsQuestionnaireTask4.json; path = ../../../../Downloads/EmotionsQuestionnaireTask4.json; sourceTree = ""; }; 566155282AB8447C00209B80 /* Package+LicenseType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Package+LicenseType.swift"; sourceTree = ""; }; 5661552D2AB854C000209B80 /* PackageHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PackageHelper.swift; sourceTree = ""; }; 5680DD382AB8983D004E6D4A /* PackageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PackageCell.swift; sourceTree = ""; }; @@ -243,6 +245,7 @@ 2FE5DC2C29EDD78E004B9AB4 /* ConsentDocument.md */, 2FE5DC2A29EDD78D004B9AB4 /* AppIcon.png */, 2FE5DC5529EDD811004B9AB4 /* SocialSupportQuestionnaire.json */, + 3598B9DC2B54B77100EDCC58 /* EmotionsQuestionnaireTask4.json */, ); path = Resources; sourceTree = ""; @@ -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 */, diff --git a/Behavior/Resources/Localizable.xcstrings b/Behavior/Resources/Localizable.xcstrings index 58cd655..8795664 100644 --- a/Behavior/Resources/Localizable.xcstrings +++ b/Behavior/Resources/Localizable.xcstrings @@ -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" : { @@ -286,6 +308,9 @@ } } }, + "Key" : { + "extractionState" : "manual" + }, "LELAND_STANFORD_BIO" : { "localizations" : { "en" : { @@ -430,6 +455,7 @@ } }, "TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_DESCRIPTION" : { + "extractionState" : "stale", "localizations" : { "en" : { "stringUnit" : { @@ -440,6 +466,7 @@ } }, "TASK_SOCIAL_SUPPORT_QUESTIONNAIRE_TITLE" : { + "extractionState" : "stale", "localizations" : { "en" : { "stringUnit" : { diff --git a/Behavior/Schedule/BehaviorScheduler.swift b/Behavior/Schedule/BehaviorScheduler.swift index 63c3fc3..e08061b 100644 --- a/Behavior/Schedule/BehaviorScheduler.swift +++ b/Behavior/Schedule/BehaviorScheduler.swift @@ -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")) ) }