π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[photos] Show support email when reporting issues
ashilkn1d5507960253
diff --git a/mobile/apps/photos/changes/copy-support-email.md b/mobile/apps/photos/changes/copy-support-email.mdnew file mode 100644index 0000000000..246f1ee609--- /dev/null+++ b/mobile/apps/photos/changes/copy-support-email.md@@ -0,0 +1 @@+- Made the support email easy to find and copy when reporting an issue.diff --git a/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart b/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dartindex 44fbf6adba..35e1ff9e84 100644--- a/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart+++ b/mobile/apps/photos/lib/ui/settings/support/report_issue_page.dart@@ -49,11 +49,38 @@ class _ReportIssuePageState extends State<ReportIssuePage> {bottomNavigationBar: SafeArea(child: Padding(padding: const EdgeInsets.fromLTRB(16, 16, 16, 12),- child: ButtonComponent(- label: l10n.continueInMailApp,- isDisabled: _isSending,- shouldSurfaceExecutionStates: false,- onTap: _onSend,+ child: Column(+ mainAxisSize: MainAxisSize.min,+ children: [+ Row(+ mainAxisAlignment: MainAxisAlignment.center,+ children: [+ Flexible(+ child: Text(+ l10n.sendToEmail(email: supportEmail),+ textAlign: TextAlign.center,+ style: TextStyles.mini.copyWith(color: colors.textLight),+ ),+ ),+ IconButtonComponent(+ icon: const HugeIcon(icon: HugeIcons.strokeRoundedCopy01),+ variant: IconButtonComponentVariant.unfilled,+ shouldSurfaceExecutionStates: false,+ tooltip: l10n.copyEmailAddress,+ size: 32,+ iconSize: IconSizes.small,+ onTap: () => _copyToClipboard(supportEmail),+ ),+ ],+ ),+ const SizedBox(height: Spacing.md),+ ButtonComponent(+ label: l10n.continueInMailApp,+ isDisabled: _isSending,+ shouldSurfaceExecutionStates: false,+ onTap: _onSend,+ ),+ ],),),),diff --git a/mobile/packages/strings/lib/l10n/arb/strings_en.arb b/mobile/packages/strings/lib/l10n/arb/strings_en.arbindex 8b81bb8523..6fd4df2ccd 100644--- a/mobile/packages/strings/lib/l10n/arb/strings_en.arb+++ b/mobile/packages/strings/lib/l10n/arb/strings_en.arb@@ -3837,6 +3837,15 @@"sendLink": "Send link","sendLogsDescription": "This will send across logs to help us debug your issue. While we take precautions to ensure that sensitive information is not logged, we encourage you to view these logs before sharing them.","sendQrCode": "Send QR code",+ "sendToEmail": "Send to {email}",+ "@sendToEmail": {+ "placeholders": {+ "email": {+ "type": "String",+ "example": "[email protected]"+ }+ }+ },"serverEndpoint": "Server endpoint","@serverEndpoint": {"description": "Label for server endpoint setting"