From 459d6f7203062498e6c80cc20b5a81a04108cfd0 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Mon, 3 Aug 2026 22:16:21 -0500 Subject: [PATCH] fix: require city and phone (not just name) before switching to pro mode Aligns the profile-completeness gate in the sidebar with the mobile app, and reports which specific field is missing instead of a generic message. --- lib/ui/shared/sidebar.dart | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/ui/shared/sidebar.dart b/lib/ui/shared/sidebar.dart index 0631339..ea9ecb4 100644 --- a/lib/ui/shared/sidebar.dart +++ b/lib/ui/shared/sidebar.dart @@ -179,9 +179,20 @@ class Sidebar extends StatelessWidget { cursor: SystemMouseCursors.click, child: GestureDetector( onTap: () { - if (authProvider.user?.name == null || - authProvider.user?.name == '') { - NotificationsService.showSnackBarError('Primero completa tu perfil'); + final missing = [ + if (authProvider.user?.name == null || + authProvider.user?.name == '') + 'nombre', + if (authProvider.user?.city == null || + authProvider.user?.city == '') + 'ciudad', + if (authProvider.user?.phone == null || + authProvider.user?.phone == '') + 'teléfono', + ]; + if (missing.isNotEmpty) { + NotificationsService.showSnackBarError( + 'Completa tu perfil: falta ${missing.join(', ')}'); navigateTo(Flurorouter.profileRoute); return; }