From ed41b82076809acc0d1c77f23f28a034ca381920 Mon Sep 17 00:00:00 2001 From: JulianAlcala Date: Fri, 17 Apr 2026 11:16:08 +0200 Subject: [PATCH] chore(legacy): hide wifi settings and forgot password entry points Comment out the navigation entry points for the wifi settings flow from the device settings list and for the forgot-password link from the login screen while these flows wait for product sign-off. The underlying screens and providers stay in place so re-enabling them is a single uncomment. --- .../login/presentation/login_screen.dart | 4 +-- .../presentation/settings_screen.dart | 30 +++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/modules/legacy/modules/legacy_auth/lib/src/features/login/presentation/login_screen.dart b/modules/legacy/modules/legacy_auth/lib/src/features/login/presentation/login_screen.dart index 804080b5..a1523d7a 100644 --- a/modules/legacy/modules/legacy_auth/lib/src/features/login/presentation/login_screen.dart +++ b/modules/legacy/modules/legacy_auth/lib/src/features/login/presentation/login_screen.dart @@ -93,8 +93,8 @@ class LegacyLoginScreen extends ConsumerWidget { }, ), SizedBox(height: 16), - _ForgotPassword(navigationContract: navigationContract), - SizedBox(height: 30), + // _ForgotPassword(navigationContract: navigationContract), + // SizedBox(height: 30), _SignInSection( theme: theme, onSignIn: () { diff --git a/modules/legacy/modules/settings/lib/src/features/settings/presentation/settings_screen.dart b/modules/legacy/modules/settings/lib/src/features/settings/presentation/settings_screen.dart index 4342a972..c73c6bbc 100644 --- a/modules/legacy/modules/settings/lib/src/features/settings/presentation/settings_screen.dart +++ b/modules/legacy/modules/settings/lib/src/features/settings/presentation/settings_screen.dart @@ -16,12 +16,12 @@ class SettingsScreen extends ConsumerWidget { Widget build(BuildContext context, WidgetRef ref) { final theme = ref.watch(themePortProvider); final color = theme.getColorFor(ThemeCode.legacyPrimary); - final hasWifi = ref.watch( - selectedDeviceProvider.select((d) { - final types = d.value?.capabilities?.commands; - return types?.types.contains('WIFI_SEARCH') ?? false; - }), - ); + // final hasWifi = ref.watch( + // selectedDeviceProvider.select((d) { + // final types = d.value?.capabilities?.commands; + // return types?.types.contains('WIFI_SEARCH') ?? false; + // }), + // ); return LegacyPageLayout( theme: theme, @@ -108,15 +108,15 @@ class SettingsScreen extends ConsumerWidget { text: I18n.sound, color: color, ), - if (hasWifi) - _item( - context, - onPressed: () => - navigationContract.pushTo(AppRoutes.wifiSettings), - icon: Icons.wifi_find_outlined, - text: I18n.wifiSettings, - color: color, - ), + // if (hasWifi) + // _item( + // context, + // onPressed: () => + // navigationContract.pushTo(AppRoutes.wifiSettings), + // icon: Icons.wifi_find_outlined, + // text: I18n.wifiSettings, + // color: color, + // ), // _item( // context, // onPressed: () =>