برنامه نویسی با امیراحمدادیبی: post #245 — TG.ME

بهترین کاری که برای پرامپت نوشتن میتونید بکنید اینه اون کاری رو که میخواید بکنید رو بگید به ai و بهش بگید حالا یه پرامپت خوب بهتون بده In the registration flow, after the username/password screen successfully submits set_password and the backend auto-completes issue_tokens with status: "completed" and valid tokens, update the app flow like this: 1. Immediately navigate with context.go(AppRoutes.register) after AuthFlowCompleted. 2. When RegisterScreen opens again, trigger its initialization/sync flow so it: - detects the cached access token, - marks account creation as completed, - fetches the latest KYC submission status, - updates the registration step UI accordingly. 3. On RegisterScreen, step 1 must appear completed and step 2 (KYC) must become active. 4. The user should not be sent directly to KYC automatically. They must return to RegisterScreen first. 5. When the user taps Continue on RegisterScreen: - if no KYC submission exists, navigate to AppRoutes.kycStart, - if KYC is pending or approved, navigate to AppRoutes.kycSubmissionStatus, - if KYC is rejected, allow retry and continue the KYC flow again. 6. Reuse the existing AuthFlowBloc, AuthFlowNavigationListener, and RegisterScreen sync logic instead of introducing a new registration-complete flow. 7. Make sure loading and navigation are reliable even when issue_tokens is auto-advanced by the bloc. Please inspect and update the relevant files: - lib/features/auth_flow/widgets/auth_flow_navigation_listener.dart - lib/features/auth_flow/bloc/auth_flow_bloc.dart - lib/features/register/registration_screen.dart Goal: After successful token issuance, the user lands back on the registration screen, sees account creation completed, sees the latest KYC status, and can proceed by tapping Continue. ببین یه نمونه پرامپت خوبه که برای من نوشته

July 4, 2026 660