Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Prune onboarding comments

r4khul9aaf95009007
diff --git a/mobile/apps/photos/lib/ui/account/onboarding_page_scaffold.dart b/mobile/apps/photos/lib/ui/account/onboarding_page_scaffold.dart
index 29e8113123..6378c33571 100644
--- a/mobile/apps/photos/lib/ui/account/onboarding_page_scaffold.dart
+++ b/mobile/apps/photos/lib/ui/account/onboarding_page_scaffold.dart
@@ -9,8 +9,6 @@ import "package:hugeicons/hugeicons.dart";
import "package:photos/ui/settings/developer_settings_tap_area.dart";
import "package:rive/rive.dart" as rive;
-// Each artboard is 500x509; scale and offsets place the duck where the
-// matching Figma frame draws it, relative to the status bar and screen centre.
enum OnboardingIllustration {
login("assets/onboarding_login.riv", 0.535, -30.8, 3.9),
signUp("assets/onboarding_login.riv", 0.44, -53.9, 3.6),
@@ -40,11 +38,8 @@ enum OnboardingIllustration {
double get height => artboardHeight * scale;
}
-// Where the back button lives: in the card's title row, or as white icons on
-// the green header with the card title standing alone.
enum OnboardingTitleBarStyle { card, header }
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-305965&m=dev
class OnboardingPageScaffold extends StatefulWidget {
const OnboardingPageScaffold({
super.key,
@@ -76,9 +71,7 @@ class OnboardingPageScaffold extends StatefulWidget {
final Widget? headerTrailing;
final bool isBodyCentered;
- // Keeps the actions below the scrolling body instead of letting them scroll
- // with it when the card is short. Only for list pages that never show the
- // keyboard, since a fixed footer cannot give space back.
+ // Only pin actions on pages that never show the keyboard.
final bool pinActions;
final bool showDeveloperSettingsTapArea;
@@ -110,9 +103,7 @@ class OnboardingPageScaffoldState extends State<OnboardingPageScaffold> {
bool _hasExited = false;
int _illustrationGeneration = 0;
- // Fires a view-model trigger on the illustration. Triggers wait for the
- // file to load and for the entry animation to finish, since interrupting
- // the entry leaves the state machine frozen mid-pose.
+ // Wait for entry to finish; interrupting it can freeze the pose.
void trigger(String name) {
_latestTrigger = name;
if (_viewModel == null) {
@@ -135,8 +126,7 @@ class OnboardingPageScaffoldState extends State<OnboardingPageScaffold> {
_fileLoader = _loadIllustration();
}
- // The Rive runtime is a native library that can be unavailable, as in
- // headless test runs; the page must still work without its illustration.
+ // Keep onboarding usable when the native Rive runtime is unavailable.
rive.FileLoader? _loadIllustration() {
try {
return rive.FileLoader.fromAsset(
@@ -520,7 +510,6 @@ class OnboardingPageScaffoldState extends State<OnboardingPageScaffold> {
}
}
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-305710&m=dev
class OnboardingAccountPrompt extends StatelessWidget {
const OnboardingAccountPrompt({
super.key,
diff --git a/mobile/apps/photos/lib/ui/account/recovery_key_page.dart b/mobile/apps/photos/lib/ui/account/recovery_key_page.dart
index d6773ca2e3..bd45d5d855 100644
--- a/mobile/apps/photos/lib/ui/account/recovery_key_page.dart
+++ b/mobile/apps/photos/lib/ui/account/recovery_key_page.dart
@@ -129,7 +129,6 @@ class _RecoveryKeyPageState extends State<RecoveryKeyPage> {
);
}
- // Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307349&m=dev
Widget _buildKeyCard(String recoveryKey) {
final colors = context.componentColors;
final lightComponentTheme = ComponentTheme.lightTheme(
diff --git a/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart b/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart
index 9ba07d3c81..d5dd11de36 100644
--- a/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart
+++ b/mobile/apps/photos/lib/ui/payment/billing_questions_widget.dart
@@ -6,7 +6,6 @@ import 'package:flutter/material.dart';
import 'package:hugeicons/hugeicons.dart';
import 'package:photos/core/network/network.dart';
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307595&m=dev
class BillingQuestionsWidget extends StatefulWidget {
const BillingQuestionsWidget({super.key});
@@ -54,7 +53,6 @@ class _BillingQuestionsWidgetState extends State<BillingQuestionsWidget> {
}
}
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=7471-2992&m=dev
class FaqWidget extends StatefulWidget {
const FaqWidget({super.key, required this.faq});
diff --git a/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart b/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart
index f6a84d14ba..8ba3b45f8a 100644
--- a/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart
+++ b/mobile/apps/photos/lib/ui/payment/store_subscription_page.dart
@@ -236,7 +236,6 @@ class _StoreSubscriptionPageState extends State<StoreSubscriptionPage> {
);
}
- // Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307413&m=dev
Widget _buildOnboardingPage() {
final colors = context.componentColors;
return OnboardingPageScaffold(
diff --git a/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart b/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart
index e4ad931b34..a284c3f075 100644
--- a/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart
+++ b/mobile/apps/photos/lib/ui/payment/stripe_subscription_page.dart
@@ -178,7 +178,6 @@ class _StripeSubscriptionPageState extends State<StripeSubscriptionPage> {
return const EnteLoadingWidget();
}
- // Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307413&m=dev
Widget _buildOnboardingPage() {
final colors = context.componentColors;
return OnboardingPageScaffold(
diff --git a/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart b/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart
index 6cbf44ba97..6b75d42df8 100644
--- a/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart
+++ b/mobile/apps/photos/lib/ui/payment/subscription_common_widgets.dart
@@ -92,7 +92,6 @@ class AddOnBonusValidity extends StatelessWidget {
}
}
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307413&m=dev
class SubFaqWidget extends StatelessWidget {
const SubFaqWidget({super.key});
@@ -120,7 +119,6 @@ class SubFaqWidget extends StatelessWidget {
}
}
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307595&m=dev
Future<void> showPlanFaqSheet(BuildContext context) {
return showBottomSheetComponent<void>(
context: context,
@@ -152,7 +150,6 @@ class SubscriptionPlanList extends StatelessWidget {
}
}
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307503&m=dev
class SubscriptionToggle extends StatefulWidget {
final bool isYearly;
final Function(bool) onToggle;
diff --git a/mobile/apps/photos/lib/ui/payment/subscription_plan_widget.dart b/mobile/apps/photos/lib/ui/payment/subscription_plan_widget.dart
index 59b83265f6..1a68eaf45a 100644
--- a/mobile/apps/photos/lib/ui/payment/subscription_plan_widget.dart
+++ b/mobile/apps/photos/lib/ui/payment/subscription_plan_widget.dart
@@ -5,7 +5,6 @@ import 'package:ente_pure_utils/ente_pure_utils.dart';
import "package:ente_strings/ente_strings.dart";
import 'package:flutter/material.dart';
-// Figma: https://www.figma.com/design/BuBNPPytxlVnqfmCUW0mgz/Ente-Visual-Design?node-id=25356-307413&m=dev
class SubscriptionPlanWidget extends StatelessWidget {
const SubscriptionPlanWidget({
super.key,
@@ -33,8 +32,6 @@ class SubscriptionPlanWidget extends StatelessWidget {
final String price;
final String period;
- // Price of the monthly plan with the same storage, shown struck through
- // next to the per-month cost of a yearly plan.
final String? monthlyPrice;
final bool isActive;
final bool isPopular;