fix(#112): préremplissage AM complet en reprise + lien login repositionné

Parse dates/places/consentement de façon robuste, rafraîchit l'étape 2 AM
et place « J'ai un numéro de dossier » sous « Créer un compte ».

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-16 17:29:31 +02:00
co-authored by Cursor
parent 9d54d9b19b
commit c26ed00374
5 changed files with 93 additions and 38 deletions
@@ -29,6 +29,12 @@ class AmRegisterStep2Screen extends StatelessWidget {
);
return ProfessionalInfoFormScreen(
key: ValueKey(
'am-pro-${registrationData.dateOfBirth?.millisecondsSinceEpoch}'
'-${registrationData.agreementDate?.millisecondsSinceEpoch}'
'-${registrationData.placesAvailable}'
'-${registrationData.nir}',
),
stepText: 'Étape 2/4',
title: 'Vos informations professionnelles',
cardColor: CardColorHorizontal.green,
+2 -3
View File
@@ -377,8 +377,6 @@ class _LoginPageState extends State<LoginScreen> {
),
),
const SizedBox(height: 10),
Center(child: _buildRepriseDossierLink()),
const SizedBox(height: 10),
// Lien mot de passe oublié
Center(
child: TextButton(
@@ -412,6 +410,7 @@ class _LoginPageState extends State<LoginScreen> {
),
),
),
Center(child: _buildRepriseDossierLink()),
],
),
),
@@ -645,7 +644,6 @@ class _LoginPageState extends State<LoginScreen> {
onPressed: _handleLogin,
),
const SizedBox(height: 12),
_buildRepriseDossierLink(),
TextButton(
onPressed: () => context.go('/forgot-password'),
child: Text(
@@ -669,6 +667,7 @@ class _LoginPageState extends State<LoginScreen> {
),
),
),
_buildRepriseDossierLink(),
],
),
),