diff --git a/Behavior/Account/AccountSetupHeader.swift b/Behavior/Account/AccountSetupHeader.swift index 124a033..38648ca 100644 --- a/Behavior/Account/AccountSetupHeader.swift +++ b/Behavior/Account/AccountSetupHeader.swift @@ -18,16 +18,23 @@ struct AccountSetupHeader: View { var body: some View { VStack { Text("ACCOUNT_TITLE") - .font(.largeTitle) - .bold() - .padding(.bottom) - .padding(.top, 30) + .font(.largeTitle) + .bold() + .padding(.bottom) + .padding(.top, 30) + Text("ACCOUNT_SUBTITLE") .padding(.bottom, 8) + Divider() if account.signedIn, case .generic = setupState { Text("ACCOUNT_SIGNED_IN_DESCRIPTION") + .padding() } else { - Text("ACCOUNT_SETUP_DESCRIPTION") + VStack { + Text("ACCOUNT_SETUP_DESCRIPTION") + Text("ACCOUNT_REQUIRED_ITEMS") + } + .padding() } } .multilineTextAlignment(.center) diff --git a/Behavior/Account/AccountSheet.swift b/Behavior/Account/AccountSheet.swift index 8f93ff6..f5bfaf1 100644 --- a/Behavior/Account/AccountSheet.swift +++ b/Behavior/Account/AccountSheet.swift @@ -1,5 +1,5 @@ // -// This source file is part of the Behavior based on the Stanford Spezi Template Application project +// This source file is part of the Stanford Spezi Template Application open-source project // // SPDX-FileCopyrightText: 2023 Stanford University // diff --git a/Behavior/BehaviorDelegate.swift b/Behavior/BehaviorDelegate.swift index 3e6b657..370b05f 100644 --- a/Behavior/BehaviorDelegate.swift +++ b/Behavior/BehaviorDelegate.swift @@ -25,8 +25,10 @@ class BehaviorDelegate: SpeziAppDelegate { AccountConfiguration(configuration: [ .requires(\.userId), .requires(\.name), - .collects(\.genderIdentity), - .collects(\.dateOfBirth) + .requires(\.dateOfBirth), + + // additional values stored using the `FirestoreAccountStorage` within our Standard implementation + .collects(\.genderIdentity) ]) if FeatureFlags.useFirebaseEmulator { diff --git a/Behavior/Resources/Localizable.xcstrings b/Behavior/Resources/Localizable.xcstrings index 4ea9d96..5b32854 100644 --- a/Behavior/Resources/Localizable.xcstrings +++ b/Behavior/Resources/Localizable.xcstrings @@ -11,12 +11,23 @@ } } }, + "ACCOUNT_REQUIRED_ITEMS" : { + "extractionState" : "automatic", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "translated", + "value" : "Email, Name, and Date of Birth are required." + } + } + } + }, "ACCOUNT_SETUP_DESCRIPTION" : { "localizations" : { "en" : { "stringUnit" : { "state" : "translated", - "value" : "You may login to your existing account. Or create a new one if you don't have one already." + "value" : "Login to your existing account, or create one if you are new! " } } } @@ -26,7 +37,7 @@ "en" : { "stringUnit" : { "state" : "translated", - "value" : "You are already logged in with the account shown below. Continue or change your account by logging out." + "value" : "You are logged in!" } } } @@ -521,4 +532,4 @@ } }, "version" : "1.0" -} \ No newline at end of file +}