π Title
Build Profile and Settings screens β currently tapping the header avatar or settings icon does nothing
π Description
Two screens referenced in the UI do not exist:
Profile screen β the avatar circle in `Header.tsx` has no `onPress`. There is no profile screen anywhere in the codebase. The avatar uses `https://via.placeholder.com/40\` as a placeholder URL which will not load on native builds.
Settings screen β the gear icon in `Header.tsx` has no `onPress`. There is no settings screen. The `Header.tsx` greeting is hardcoded as `"Good evening, JosuΓ©"` β it is neither time-aware nor user-aware.
β
Tasks to complete
Profile screen:
Settings screen:
Header fix:
π Documentation/context for AI
https://github.com/TrustUp-app/TrustUp-Frontend/tree/main/docs
Files to create:
- `app/(tabs)/profile.tsx` or `components/pages/ProfileScreen.tsx`
- `app/settings.tsx` or `components/pages/SettingsScreen.tsx`
- `hooks/profile/use-profile.ts`
- `hooks/settings/use-settings.ts`
Files to modify:
- `components/shared/Header.tsx` (add onPress to avatar and gear icon, fix dynamic greeting)
ποΈ Additional notes
- The API endpoint for profile is `GET /users/me` (requires Bearer JWT token in Authorization header)
- Wallet address should be displayed as `G...XXXX` (first 4 + last 4 chars) with a copy icon next to it
- "Sign out" must clear the JWT from secure storage AND reset navigation to the sign-in screen
- Settings do not require an API call β persist locally with AsyncStorage
- Use `EXPO_PUBLIC_API_URL` env variable for the base URL (add to `.env.example` if not present)
π Title
Build Profile and Settings screens β currently tapping the header avatar or settings icon does nothing
π Description
Two screens referenced in the UI do not exist:
Profile screen β the avatar circle in `Header.tsx` has no `onPress`. There is no profile screen anywhere in the codebase. The avatar uses `https://via.placeholder.com/40\` as a placeholder URL which will not load on native builds.
Settings screen β the gear icon in `Header.tsx` has no `onPress`. There is no settings screen. The `Header.tsx` greeting is hardcoded as `"Good evening, JosuΓ©"` β it is neither time-aware nor user-aware.
β Tasks to complete
Profile screen:
Settings screen:
Header fix:
π Documentation/context for AI
https://github.com/TrustUp-app/TrustUp-Frontend/tree/main/docs
Files to create:
Files to modify:
ποΈ Additional notes