diff --git a/lib/core/constants.dart b/lib/core/constants.dart index 212ceb685..de39eb301 100644 --- a/lib/core/constants.dart +++ b/lib/core/constants.dart @@ -7,6 +7,7 @@ const String sentryDSN = "https://ed4ddd6309b847ba8849935e26e9b648@sentry.ente.io/9"; const String sentryTunnel = "https://sentry-reporter.ente.io"; const String roadmapURL = "https://roadmap.ente.io"; +const String githubIssuesUrl = "https://github.com/ente-io/auth/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc"; const int microSecondsInDay = 86400000000; const int android11SDKINT = 30; const int galleryLoadStartTime = -8000000000000000; // Wednesday, March 6, 1748 diff --git a/lib/l10n/arb/app_en.arb b/lib/l10n/arb/app_en.arb index bccaa1013..e7ac72ad3 100644 --- a/lib/l10n/arb/app_en.arb +++ b/lib/l10n/arb/app_en.arb @@ -106,6 +106,7 @@ "enterYourPasswordHint": "Enter your password", "forgotPassword": "Forgot password", "oops": "Oops", + "suggestFeatures": "Suggest features", "faq": "FAQ", "faq_q_1": "How secure is ente Auth?", "faq_a_1": "All codes you backup via ente is stored end-to-end encrypted. This means only you can access your codes. Our apps are open source and our cryptography has been externally audited.", diff --git a/lib/ui/settings/about_section_widget.dart b/lib/ui/settings/about_section_widget.dart index a7754f8da..3992f86a6 100644 --- a/lib/ui/settings/about_section_widget.dart +++ b/lib/ui/settings/about_section_widget.dart @@ -36,7 +36,7 @@ class AboutSectionWidget extends StatelessWidget { trailingIcon: Icons.chevron_right_outlined, trailingIconIsMuted: true, onTap: () async { - launchUrl(Uri.parse("https://github.com/ente-io/photos-app")); + launchUrl(Uri.parse("https://github.com/ente-io/auth")); }, ), sectionOptionSpacing, diff --git a/lib/ui/settings/support_section_widget.dart b/lib/ui/settings/support_section_widget.dart index b06b28b05..05ef9e992 100644 --- a/lib/ui/settings/support_section_widget.dart +++ b/lib/ui/settings/support_section_widget.dart @@ -10,6 +10,7 @@ import 'package:ente_auth/ui/settings/common_settings.dart'; import 'package:ente_auth/ui/settings/faq.dart'; import 'package:ente_auth/utils/email_util.dart'; import 'package:flutter/material.dart'; +import 'package:url_launcher/url_launcher_string.dart'; class SupportSectionWidget extends StatefulWidget { const SupportSectionWidget({Key? key}) : super(key: key); @@ -54,7 +55,21 @@ class _SupportSectionWidgetState extends State { }, ), sectionOptionSpacing, - + MenuItemWidget( + captionedTextWidget: CaptionedTextWidget( + title: l10n.suggestFeatures, + ), + pressedColor: getEnteColorScheme(context).fillFaint, + trailingIcon: Icons.chevron_right_outlined, + trailingIconIsMuted: true, + onTap: () async { + launchUrlString( + githubIssuesUrl, + mode: LaunchMode.externalApplication, + ); + }, + ), + sectionOptionSpacing, MenuItemWidget( captionedTextWidget: CaptionedTextWidget( title: l10n.email, diff --git a/lib/ui/settings_page.dart b/lib/ui/settings_page.dart index 3d36fb347..5bcb0b34b 100644 --- a/lib/ui/settings_page.dart +++ b/lib/ui/settings_page.dart @@ -6,7 +6,6 @@ import 'package:ente_auth/theme/ente_theme.dart'; import 'package:ente_auth/ui/settings/about_section_widget.dart'; import 'package:ente_auth/ui/settings/account_section_widget.dart'; import 'package:ente_auth/ui/settings/app_version_widget.dart'; -import 'package:ente_auth/ui/settings/danger_section_widget.dart'; import 'package:ente_auth/ui/settings/data/data_section_widget.dart'; import 'package:ente_auth/ui/settings/security_section_widget.dart'; import 'package:ente_auth/ui/settings/social_section_widget.dart';