feat: implement user profile management with avatar and phone number …#3
Open
feat: implement user profile management with avatar and phone number …#3
Conversation
…updates, and add new UI components for modals, headers, and avatars.
ATS527
reviewed
Jan 19, 2026
|
|
||
| const settingsSchema = z.object({ | ||
| name: z.string().min(3, "Name must be at least 3 characters"), | ||
| name: z.optional(z.string().min(3, "Name must be at least 3 characters")), |
| <View className="mr-4 flex-row items-center gap-4"> | ||
| <TouchableOpacity onPress={handleToggleTheme}> | ||
| {colorScheme === "dark" ? ( | ||
| <Moon size={24} className="text-foreground" color="#FFFFFF" /> |
Owner
There was a problem hiding this comment.
Move this dark mode and logout to settings page. As the user is not going to frequently logout of the application.
| @@ -0,0 +1,27 @@ | |||
| import { useRouter } from "expo-router"; | |||
Owner
There was a problem hiding this comment.
Use the system default back button here. Research if it is needed in web
| @@ -1,26 +1,38 @@ | |||
| import { zodResolver } from "@hookform/resolvers/zod"; | |||
| import { useMutation, useQuery } from "convex/react"; | |||
| import * as ImagePicker from "expo-image-picker"; | |||
| export const authSchema = z.object({ | ||
| email: z.email("Please enter a valid email address"), | ||
| const signInSchema = z.object({ | ||
| email: z.string().email("Please enter a valid email address"), |
Owner
There was a problem hiding this comment.
string().email() is deprecated. revert back
| const signInSchema = z.object({ | ||
| email: z.string().email("Please enter a valid email address"), | ||
| password: z.string().min(8, "Password must be at least 8 characters"), | ||
| name: z.string().optional(), |
| name: z.string().min(2, "Name is required"), | ||
| }); | ||
|
|
||
| export type AuthFormData = z.infer<typeof signUpSchema>; |
Owner
There was a problem hiding this comment.
resolver is using same schema for both sign in and sign up
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…updates, and add new UI components for modals, headers, and avatars.