Summary
Add a location field to the user profile to allow developers to showcase their city or country.
Contexts
Currently, the user profile supports fields like bio, company, and role, but lacks a space for geographical location. Adding a location field enhances the professional profile aspect of DevCard, making it easier for users to identify where their contacts are based. This field should be optional and integrated across the backend, shared types, and mobile UI.
Tasks
Acceptance Criteria
Area
backend / mobile / shared
Difficulty
Low
Summary
Add a
locationfield to the user profile to allow developers to showcase their city or country.Contexts
Currently, the user profile supports fields like
bio,company, androle, but lacks a space for geographical location. Adding alocationfield enhances the professional profile aspect of DevCard, making it easier for users to identify where their contacts are based. This field should be optional and integrated across the backend, shared types, and mobile UI.Tasks
apps/backend/prisma/schema.prismato includelocation String?in theUsermodel.npx prisma migrate dev --name add_location_to_user.updateProfileSchemainapps/backend/src/utils/validators.tsto include an optionallocationfield (max 100 chars).profiles.tsroutes to includelocationin theselectblocks forGET /meandPUT /me.User,UpdateProfilePayload,PublicProfile, andPublicCardinterfaces inpackages/shared/src/types.tsto includelocation: string | null.ProfileDatainterface and UI inapps/mobile/src/screens/DevCardViewScreen.tsxto display the location near the role/company information.Acceptance Criteria
Area
backend/mobile/sharedDifficulty
Low