Skip to content

Commit

Permalink
feat(#578): remove onboarding
Browse files Browse the repository at this point in the history
jannis-baum committed Apr 4, 2023
1 parent 6a07c0f commit d3c9975
Showing 18 changed files with 1 addition and 3,539 deletions.
Binary file removed app/assets/images/onboarding/1.png
Binary file not shown.
Binary file removed app/assets/images/onboarding/2.png
Binary file not shown.
Binary file removed app/assets/images/onboarding/3.png
Binary file not shown.
Binary file removed app/assets/images/onboarding/4.png
Binary file not shown.
Binary file removed app/assets/images/onboarding/5.png
Binary file not shown.
594 changes: 0 additions & 594 deletions app/assets/images/onboarding/svg/2.svg

This file was deleted.

1,332 changes: 0 additions & 1,332 deletions app/assets/images/onboarding/svg/3.svg

This file was deleted.

466 changes: 0 additions & 466 deletions app/assets/images/onboarding/svg/4.svg

This file was deleted.

725 changes: 0 additions & 725 deletions app/assets/images/onboarding/svg/5.svg

This file was deleted.

52 changes: 0 additions & 52 deletions app/integration_test/onboarding_test.dart

This file was deleted.

9 changes: 0 additions & 9 deletions app/integration_test/settings_test.dart
Original file line number Diff line number Diff line change
@@ -47,15 +47,6 @@ void main() {
await tester.tap(find.text(context.l10n.action_cancel));
await tester.pumpAndSettle();

// test onboarding button
await tester.tap(find.text(context.l10n.settings_page_onboarding));
await tester.pumpAndSettle();

expect(find.text(context.l10n.onboarding_1_header), findsOneWidget);

await context.router.root.pop();
await tester.pumpAndSettle();

// test about us
await tester.tap(find.text(context.l10n.settings_page_about_us));
await tester.pumpAndSettle();
2 changes: 0 additions & 2 deletions app/lib/common/routing/router.dart
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@ import 'package:flutter/material.dart';

import '../../faq/module.dart';
import '../../login/module.dart';
import '../../onboarding/module.dart';
import '../../report/module.dart';
import '../../search/module.dart';
import '../../settings/module.dart';
@@ -15,7 +14,6 @@ part 'router.gr.dart';
replaceInRouteName: 'Page,Route',
routes: [
loginRoutes,
onboardingRoutes,
AutoRoute(
path: 'main',
page: MainPage,
2 changes: 1 addition & 1 deletion app/lib/common/widgets/app.dart
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ class PharMeApp extends StatelessWidget {
debugShowCheckedModeBanner: false,
routeInformationParser: _appRouter.defaultRouteParser(),
routerDelegate: _appRouter.delegate(
initialDeepLink: _isLoggedIn ? 'main' : 'onboarding',
initialDeepLink: _isLoggedIn ? 'main' : 'login',
),
theme: PharMeTheme.light,
localizationsDelegates: [
17 changes: 0 additions & 17 deletions app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
@@ -102,27 +102,10 @@
"nav_more": "More",
"tab_more": "More",

"onboarding_get_started": "Get started",
"onboarding_next": "Next",
"onboarding_prev": "Back",
"onboarding_1_header": "Welcome to PharMe",
"onboarding_1_text": "Your genome has more influence on your life than you might think!\nMore than 90% of people are vulnerable to unintended drug reactions.\n\nUse PharMe to find out about yours.",
"onboarding_2_header": "One size does not fit all",
"onboarding_2_text": "Your body reacts to drugs uniquely.\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 about unintended drug responses according to your genome.\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_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.",

"settings_page_account_settings": "Account Settings",
"settings_page_delete_data": "Delete App Data",
"settings_page_delete_data_text": "Are you sure that you want to delete all app data? This also includes your genomic data.",
"settings_page_more": "More",
"settings_page_onboarding": "Onboarding",
"settings_page_about_us": "About us",
"settings_page_about_us_text": "PharMe was created as a bachelors project at Hasso-Plattner-Institut (HPI) Potsdam. The aim of the project is to provide a proof of concept for digital health apps that use pharmacogenomic information for health improvements. We collaborate with the Digital Health chair at HPI and health professionals from Mount Sinai hospital in New York.",
"settings_page_privacy_policy": "Privacy policy",
10 changes: 0 additions & 10 deletions app/lib/onboarding/module.dart

This file was deleted.

325 changes: 0 additions & 325 deletions app/lib/onboarding/pages/onboarding.dart

This file was deleted.

5 changes: 0 additions & 5 deletions app/lib/settings/pages/settings.dart
Original file line number Diff line number Diff line change
@@ -28,11 +28,6 @@ class SettingsPage extends StatelessWidget {
style: PharMeTheme.textTheme.bodyLarge,
),
),
ListTile(
title: Text(context.l10n.settings_page_onboarding),
trailing: Icon(Icons.chevron_right_rounded),
onTap: () => context.router.push(OnboardingRouter()),
),
ListTile(
title: Text(context.l10n.settings_page_about_us),
trailing: Icon(Icons.chevron_right_rounded),
1 change: 0 additions & 1 deletion app/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -62,7 +62,6 @@ flutter:

assets:
- assets/images/
- assets/images/onboarding/

flutter_icons:
android: 'launcher_icon'

0 comments on commit d3c9975

Please sign in to comment.