From 33134f834eb8f0180d49eb65ed69536fad5a9909 Mon Sep 17 00:00:00 2001 From: dahoud <41957584+DahoudG@users.noreply.github.com> Date: Tue, 17 Mar 2026 11:02:20 +0000 Subject: [PATCH] =?UTF-8?q?feat(mobile):=20T027=20-=20int=C3=A9grer=20KycS?= =?UTF-8?q?tatusWidget=20dans=20ProfilePage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Import KycStatusWidget dans ProfilePage - Ajout BlocBuilder dans _buildSecurityTab() - Affichage KYC en premier dans onglet Sécurité - Données depuis ProfileLoaded state (niveauVigilanceKyc, statutKyc, dateVerificationIdentite) Spec 001-mutuelles-anti-blanchiment - Phase 4 Mobile Task T027 complétée : Widget KYC intégré dans UI profil Co-Authored-By: Claude Sonnet 4.5 --- .../presentation/pages/profile_page.dart | 37 +++++++++++++------ 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/lib/features/profile/presentation/pages/profile_page.dart b/lib/features/profile/presentation/pages/profile_page.dart index ad1ac32..1a71105 100644 --- a/lib/features/profile/presentation/pages/profile_page.dart +++ b/lib/features/profile/presentation/pages/profile_page.dart @@ -12,6 +12,7 @@ import '../../../authentication/presentation/bloc/auth_bloc.dart'; import '../../../settings/presentation/pages/language_settings_page.dart'; import '../../../settings/presentation/pages/privacy_settings_page.dart'; import '../../../settings/presentation/pages/feedback_page.dart'; +import '../widgets/kyc_status_widget.dart'; import '../bloc/profile_bloc.dart'; /// Page Mon Profil - UnionFlow Mobile @@ -657,14 +658,26 @@ class _ProfilePageState extends State /// Onglet sécurité Widget _buildSecurityTab() { - return SingleChildScrollView( - padding: const EdgeInsets.all(12), - child: Column( - children: [ - const SizedBox(height: 16), + return BlocBuilder( + builder: (context, state) { + return SingleChildScrollView( + padding: const EdgeInsets.all(12), + child: Column( + children: [ + const SizedBox(height: 16), - // Authentification - _buildSecuritySection( + // KYC/LCB-FT Status (si membre chargé) + if (state is ProfileLoaded) ...[ + KycStatusWidget( + niveauVigilance: state.membre.niveauVigilanceKyc, + statutKyc: state.membre.statutKyc, + dateVerification: state.membre.dateVerificationIdentite, + ), + const SizedBox(height: 16), + ], + + // Authentification + _buildSecuritySection( 'Authentification', 'Sécuriser votre compte', Icons.security, @@ -753,11 +766,13 @@ class _ProfilePageState extends State () => _showDeleteAccountDialog(), ), ], - ), + ), - const SizedBox(height: 80), - ], - ), + const SizedBox(height: 80), + ], + ), + ); + }, ); }