From c746fe5aeadb993d941ab5b6332eccefb400371f Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Tue, 20 Jun 2023 10:08:11 +0200 Subject: [PATCH] feat(#615): adapt onboarding to login flow Closes #615 --- app/lib/l10n/app_en.arb | 9 +++++---- app/lib/onboarding/pages/onboarding.dart | 24 +++++++++++++++--------- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/lib/l10n/app_en.arb b/app/lib/l10n/app_en.arb index 38eeb8c74..6dc42b03c 100644 --- a/app/lib/l10n/app_en.arb +++ b/app/lib/l10n/app_en.arb @@ -9,7 +9,7 @@ "drug_selection_header": "Select active drugs", "drug_selection_description": "Please select the drugs you are currently taking below. If you are not taking checked drugs anymore, you can uncheck them.", - "drug_selection_later": "You can always change the status for each drug later on a drug's detail page.", + "drug_selection_later": "Active drugs can influence your results for other drugs. You can always change the status for each drug later on a drug's detail page.", "err_could_not_retrieve_access_token": "An unexpected error occurred while retrieving the access token", "err_fetch_user_data_failed": "An unexpected error occurred while fetching your genomic data", @@ -125,13 +125,14 @@ "onboarding_2_header": "One size does not fit all", "onboarding_2_text": "Each person’s body reacts to drugs differently.\n\nDrugs that are effective for a majority of people can be toxic to you.", "onboarding_3_header": "Genome power unlocked to improve human health", - "onboarding_3_text": "PharMe warns you if your genome makes you more likely to experience an unintended drug response. This enables you to avoid drugs that are ineffective or have side effects.", - "onboarding_3_disclaimer": "We DO NOT recommend drugs for specific symptoms or illnesses!", + "onboarding_3_text": "PharMe warns you if your genome makes you more likely to experience an unintended drug response.\n\nThis enables you to avoid drugs that are ineffective or have side effects.", + "onboarding_3_disclaimer": "We DO NOT recommend drugs for specific symptoms or illnesses", "onboarding_4_header": "Tailored to your genome", "onboarding_4_text": "For PharMe to work, you need to get your genetics tested at a lab. You don't need an account to use PharMe: You can just sign in to the lab's website through our app.", "onboarding_4_button": "Find out more about gene tests here.", + "onboarding_4_already_tested_text": "PharMe works by matching your genetic data with known information about interactions between genes and drugs.\n\nThe information presented in PharMe is based on scientifically proven guidelines published by the Clinical Pharmacogenetics Implementation Consortium (CPIC®) and the U.S. Food and Drug Administration (FDA).", "onboarding_5_header": "We care about your data protection", - "onboarding_5_text": "After signing in to the lab, your genetic data is sent straight onto your phone.\n\nOur servers know nothing about you, neither your identity nor your genetics.", + "onboarding_5_text": "After downloading your genetic data from your data provider, it is solely kept on your phone.\n\nOur servers know nothing about you, neither your identity nor your genetics.", "settings_page_account_settings": "Account settings", "settings_page_delete_data": "Delete app data", diff --git a/app/lib/onboarding/pages/onboarding.dart b/app/lib/onboarding/pages/onboarding.dart index bdc936c29..1a56f7972 100644 --- a/app/lib/onboarding/pages/onboarding.dart +++ b/app/lib/onboarding/pages/onboarding.dart @@ -26,19 +26,25 @@ class OnboardingPage extends HookWidget { getText: (context) => context.l10n.onboarding_3_disclaimer, ), ), + // OnboardingSubPage( + // illustrationPath: 'assets/images/onboarding/4.png', + // getHeader: (context) => context.l10n.onboarding_4_header, + // getText: (context) => context.l10n.onboarding_4_text, + // color: Color(0xFF00B9FA), + // child: BottomCard( + // getText: (context) => context.l10n.onboarding_4_button, + // onClick: () => launchUrl( + // Uri.parse( + // 'https://www.cdc.gov/genomics/gtesting/genetic_testing.htm', + // ), + // ), + // ), + // ), OnboardingSubPage( illustrationPath: 'assets/images/onboarding/4.png', getHeader: (context) => context.l10n.onboarding_4_header, - getText: (context) => context.l10n.onboarding_4_text, + getText: (context) => context.l10n.onboarding_4_already_tested_text, color: Color(0xFF00B9FA), - child: BottomCard( - getText: (context) => context.l10n.onboarding_4_button, - onClick: () => launchUrl( - Uri.parse( - 'https://www.cdc.gov/genomics/gtesting/genetic_testing.htm', - ), - ), - ), ), OnboardingSubPage( illustrationPath: 'assets/images/onboarding/5.png',