-
Notifications
You must be signed in to change notification settings - Fork 0
feat: implement prototype function for auth and payment #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a prototype function for authentication and payment by adding new order-payment and order-completed screens, updating authentication flows (including login, registration, OTP, and password reset), and refining UI navigation and state management.
- Introduces new payment screens with PaymentLayout and PaymentCompleted components.
- Updates multiple auth flows across registration, login, OTP verification, and password reset with new schema integrations and state hooks.
- Enhances navigation and state persistence (removing the old authSlice, adding PersistGate, and adjusting route layouts).
Reviewed Changes
Copilot reviewed 65 out of 66 changed files in this pull request and generated 3 comments.
Show a summary per file
File | Description |
---|---|
client/app/order-payment.tsx | New order-payment screen handling payment method submission. |
client/app/order-completed.tsx | New screen showing payment completion. |
client/app/ProfileDetails.tsx | New profile editing UI integrated with auth data. |
client/app/auth/schema.ts | Introduces zod schemas for login, register and user details. |
client/app/auth/AuthWrapper.tsx | Updates authentication wrapper for routing based on userId. |
client/app/(tabs)/profile.tsx | Adds logout functionality and profile editing navigation. |
client/app/_layout.tsx | Refines main layout with route screen updates and persist integration. |
client/app/auth/RegisterForm.tsx | Updates registration form to use centralized auth schema and error handling. |
client/app/auth/LoginOTPForm.tsx | Implements OTP login with temporary user state management. |
client/app/auth/ResetPasswordManager.tsx | Adapts reset password flow to use BaseAccount and transitions among steps. |
client/app/auth/ResetPasswordEmailForm.tsx | Updates email verification for reset password using useForgetPassword. |
client/app/(tabs)/index.tsx | Enhances the home screen with scroll view changes and order review navigation. |
client/app/auth/LoginForm.tsx | Updates login form to use authenticate function and temporary user management. |
client/app/(tabs)/_layout.tsx | Adjusts tab layout flow by referencing currentUserId over userToken. |
client/app/auth/ResetPasswordForm.tsx | Updates reset password form to include user details and hook usage. |
client/app/auth/ResetPasswordOTPForm.tsx | Refines OTP form to display updated profile details using ProfilePicker. |
client/app/auth/AuthLayout.tsx | Refactors auth layout to use tmpUser from state. |
client/app/(tabs)/terms.tsx | Removes the terms screen. |
client/app/auth/authSlice.ts | Removes the deprecated authSlice. |
Files not reviewed (1)
- client/app.json: Language not supported
Comments suppressed due to low confidence (1)
client/app/auth/RegisterForm.tsx:81
- The 'terms' screen is referenced in the register form but has been removed; update the route or reinstate the terms screen as needed.
router.push('/terms')
No description provided.