Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] Open changelog from About and version

r4khuld39b56532689
diff --git a/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart b/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart
index 2ecc9e84ee..fac8212912 100644
--- a/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/about/about_us_page.dart
@@ -2,8 +2,10 @@ import "package:ente_components/ente_components.dart";
import "package:ente_strings/ente_strings.dart";
import "package:ente_ui/components/settings/about_settings_section.dart";
import "package:flutter/material.dart";
+import "package:hugeicons/hugeicons.dart";
import "package:photos/service_locator.dart";
import "package:photos/ui/notification/toast.dart";
+import "package:photos/ui/notification/update/change_log_page.dart";
import "package:photos/ui/settings/app_update_sheet.dart";
class AboutUsPage extends StatelessWidget {
@@ -16,6 +18,13 @@ class AboutUsPage extends StatelessWidget {
return SettingsPageScaffold(
title: l10n.about,
children: [
+ SettingsItem(
+ title: l10n.whatsNew,
+ icon: HugeIcons.strokeRoundedParty,
+ showOnlyLoadingState: true,
+ onTap: () => showChangeLogSheet(context),
+ ),
+ const SizedBox(height: Spacing.sm),
AboutSettingsSection(
onCheckForUpdates: updateService.isIndependent()
? () => _checkForUpdates(context)
diff --git a/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart b/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart
index 7206f45915..a2f4a2ffa3 100644
--- a/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart
+++ b/mobile/apps/photos/lib/ui/settings/search/settings_search_registry.dart
@@ -720,6 +720,15 @@ class SettingsSearchRegistry {
);
items.addAll([
+ SettingsSearchItem(
+ title: l10n.whatsNew,
+ subtitle: l10n.about,
+ sectionPath: l10n.about,
+ icon: HugeIcons.strokeRoundedParty,
+ routeBuilder: (_) => const AboutUsPage(),
+ isSubPage: true,
+ keywords: ["changelog", "updates", "new"],
+ ),
SettingsSearchItem(
title: l10n.weAreOpenSource,
subtitle: l10n.about,
diff --git a/mobile/apps/photos/lib/ui/settings_page.dart b/mobile/apps/photos/lib/ui/settings_page.dart
index 526ee47022..b7ca98d19e 100644
--- a/mobile/apps/photos/lib/ui/settings_page.dart
+++ b/mobile/apps/photos/lib/ui/settings_page.dart
@@ -20,6 +20,7 @@ import "package:photos/ui/account/login_page.dart";
import "package:photos/ui/components/banners/offline_settings_banner.dart";
import "package:photos/ui/growth/referral_screen.dart";
import "package:photos/ui/notification/toast.dart";
+import "package:photos/ui/notification/update/change_log_page.dart";
import "package:photos/ui/settings/about/about_us_page.dart";
import "package:photos/ui/settings/account/account_settings_page.dart";
import "package:photos/ui/settings/appearance/appearance_settings_page.dart";
@@ -170,7 +171,10 @@ class _SettingsBody extends StatelessWidget {
padding: EdgeInsets.symmetric(vertical: 28),
child: SocialIconsRow(),
),
- const AppVersionWidget(),
+ InkWell(
+ onTap: () async => showChangeLogSheet(context),
+ child: const AppVersionWidget(),
+ ),
if (hasLoggedIn &&
!isLocalGalleryMode &&
(flagService.flags.internalUser || kDebugMode)) ...[