π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] Refine ML decryption warning
laurenspriema9d336e173a0
diff --git a/mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dart b/mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dartindex 093bf501ab..c3e88945b5 100644--- a/mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dart+++ b/mobile/apps/photos/lib/ui/settings/ml/machine_learning_settings_page.dart@@ -591,37 +591,61 @@ class _MLProcessingIssuesBlurb extends StatelessWidget {),child: Padding(padding: const EdgeInsets.all(Spacing.lg),- child: Column(+ child: Row(crossAxisAlignment: CrossAxisAlignment.start,children: [- Text(- context.strings.mlCouldNotProcessItems(count: itemCount),- style: TextStyles.bodyBold.copyWith(color: colors.warning),- ),- const SizedBox(height: Spacing.xs),- Text(- context.strings.mlItemsCouldNotBeProcessed(count: itemCount),- style: TextStyles.mini.copyWith(color: colors.textLight),+ DecoratedBox(+ decoration: BoxDecoration(+ color: colors.cautionLight,+ shape: BoxShape.circle,+ ),+ child: SizedBox.square(+ dimension: 32,+ child: Center(+ child: HugeIcon(+ icon: HugeIcons.strokeRoundedAlert02,+ size: IconSizes.small,+ color: colors.caution,+ ),+ ),+ ),),- const SizedBox(height: Spacing.sm),- ButtonComponent(- label: context.strings.contactUs,- variant: ButtonComponentVariant.link,- size: ButtonComponentSize.small,- shouldSurfaceExecutionStates: false,- onTap: () async {- mlDecryptionRecordStore.logFileIDs();- await sendLogs(- context,- context.strings.contactUs,- "[email protected]",- postShare: () {},- subject: "Machine learning processing issue",- body: context.strings.mlItemsCouldNotBeProcessed(- count: itemCount,+ const SizedBox(width: Spacing.md),+ Expanded(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.start,+ children: [+ Text(+ context.strings.mlCouldNotProcessItems(count: itemCount),+ style: TextStyles.bodyBold.copyWith(color: colors.textBase),),- );- },+ const SizedBox(height: Spacing.xs),+ Text(+ context.strings.mlProcessingIssueReachOut,+ style: TextStyles.mini.copyWith(color: colors.textLight),+ ),+ const SizedBox(height: Spacing.xs),+ Transform.translate(+ offset: const Offset(-Spacing.sm, 0),+ child: SettingsLink(+ label: context.strings.contactUs,+ onTap: () {+ mlDecryptionRecordStore.logFileIDs();+ sendLogs(+ context,+ context.strings.contactUs,+ "[email protected]",+ postShare: () {},+ subject: "Machine learning processing issue",+ body: context.strings.mlItemsCouldNotBeProcessed(+ count: itemCount,+ ),+ );+ },+ ),+ ),+ ],+ ),),],),diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arbindex 1a1e42ce3f..a34690b697 100644--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb@@ -2543,7 +2543,7 @@"mlConsentConfirmation": "I understand, and wish to enable machine learning","mlConsentDescription": "If you enable machine learning, Ente will extract information like face geometry from files, including those shared with you.\n\nThis will happen on your device, and any generated biometric information will be end-to-end encrypted.","mlConsentPrivacy": "Please click here for more details about this feature in our privacy policy",- "mlCouldNotProcessItems": "{count, plural, one{Could not process {count} item.} other{Could not process {count} items.}}",+ "mlCouldNotProcessItems": "{count, plural, one{Could not process {count} item} other{Could not process {count} items}}","@mlCouldNotProcessItems": {"description": "Title shown when machine learning could not process one or more items","placeholders": {@@ -2562,6 +2562,10 @@}}},+ "mlProcessingIssueReachOut": "Please reach out to us so we can help.",+ "@mlProcessingIssueReachOut": {+ "description": "Support prompt shown when machine learning could not process one or more items"+ },"mlProgressBannerDescription": "Your photos are getting processed on device to detect faces, objects and more.","mlProgressBannerStatus": "{indexed} out of {total} photos processed","@mlProgressBannerStatus": {