Skip to content

Commit

Permalink
Remove the onboarding consent page (#6143)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Jan 8, 2025
1 parent 90dd206 commit 66de046
Show file tree
Hide file tree
Showing 8 changed files with 70 additions and 247 deletions.
27 changes: 0 additions & 27 deletions packages/smooth_app/assets/onboarding/analytics.svg

This file was deleted.

3 changes: 0 additions & 3 deletions packages/smooth_app/lib/data_models/onboarding_loader.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class OnboardingLoader {
case OnboardingPage.ECO_CARD_EXAMPLE:
case OnboardingPage.PREFERENCES_PAGE:
case OnboardingPage.PERMISSIONS_PAGE:
// nothing special to do
return;
case OnboardingPage.CONSENT_PAGE:
// that was the last page of onboarding: after that, we clean up
await _unloadData();
return;
Expand Down
12 changes: 0 additions & 12 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1103,18 +1103,6 @@
"@hint_knowledge_panel_message": {
"description": "Hint popup indicating the card is clickable during onboarding"
},
"consent_analytics_title": "Send anonymous analytics",
"@consent_analytics_title": {
"description": "Title for the consent analytics UI Page"
},
"consent_analytics_body1": "Help the Open Food Facts volunteers to improve the app. You decide whether to submit anonymous analytics.",
"@conset_analytics_body1": {
"description": "first paragraph for the consent analytics UI Page"
},
"consent_analytics_body2": "If you change your mind, this option can be enabled and disabled at any time from the settings.",
"@consent_analytics_body2": {
"description": "second paragraph for the consent analytics UI Page"
},
"permissions_page_title": "Camera access",
"@permissions_page_title": {
"description": "Title for the camera permission's page (onboarding)"
Expand Down
149 changes: 0 additions & 149 deletions packages/smooth_app/lib/pages/onboarding/consent_analytics_page.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'package:provider/provider.dart';
import 'package:smooth_app/data_models/preferences/user_preferences.dart';
import 'package:smooth_app/database/local_database.dart';
import 'package:smooth_app/pages/navigator/app_navigator.dart';
import 'package:smooth_app/pages/onboarding/consent_analytics_page.dart';
import 'package:smooth_app/pages/onboarding/permissions_page.dart';
import 'package:smooth_app/pages/onboarding/preferences_page.dart';
import 'package:smooth_app/pages/onboarding/reinvention_page.dart';
Expand All @@ -23,7 +22,6 @@ enum OnboardingPage {
ECO_CARD_EXAMPLE,
PREFERENCES_PAGE,
PERMISSIONS_PAGE,
CONSENT_PAGE,
ONBOARDING_COMPLETE;

OnboardingPage getPrevPage() {
Expand Down Expand Up @@ -62,8 +60,6 @@ enum OnboardingPage {
return const Color(0xFFEBF1FF);
case OnboardingPage.PERMISSIONS_PAGE:
return const Color(0xFFEBF1FF);
case OnboardingPage.CONSENT_PAGE:
return const Color(0xFFFFF2DF);
case OnboardingPage.ONBOARDING_COMPLETE:
// whatever, it's not used
return Colors.black;
Expand Down Expand Up @@ -99,11 +95,6 @@ enum OnboardingPage {
context,
PermissionsPage(backgroundColor),
);
case OnboardingPage.CONSENT_PAGE:
return _wrapWidgetInCustomBackNavigator(
context,
ConsentAnalyticsPage(backgroundColor),
);
case OnboardingPage.ONBOARDING_COMPLETE:
return ExternalScanCarouselManager(child: PageManager());
}
Expand Down
Loading

0 comments on commit 66de046

Please sign in to comment.