Profile and settings
The Profile tab for agents, landlords and lawyers, covering personal information, appearance, notification preferences, security and sign out.
The Profile tab is the last icon in the tab bar and is the same screen for every professional role. It is a menu: most rows open a sub-screen in the profile stack, a few jump to other parts of the app, and some are placeholders with no action.
Where it lives
| Screen route | File | Who sees it |
|---|---|---|
/(tabs)/profile | app/(tabs)/profile/index.tsx | Agents, landlords and lawyers |
/(tabs)/profile/edit | app/(tabs)/profile/edit.tsx | Same roles, from the pencil on the profile card |
/(tabs)/profile/appearance | app/(tabs)/profile/appearance.tsx | Same roles |
/(tabs)/profile/notifications | app/(tabs)/profile/notifications.tsx | Same roles |
/(tabs)/profile/security | app/(tabs)/profile/security.tsx | Same roles |
/(tabs)/profile/kyc | app/(tabs)/profile/kyc.tsx | Only while the account is not KYC verified. Covered in Agent onboarding and KYC |
The stack is declared in app/(tabs)/profile/_layout.tsx with headers hidden; each screen draws its own back chevron and title. Data comes from services/settings/settings-api.ts (everything under /api/v1/user).
Before you start
- The user is signed in with a professional role. Agents must have completed agent setup or the tabs layout redirects them away.
- No device permission is needed by any screen on this page. The avatar edit button does not open the photo library (see States and edge cases).
- The profile is loaded with
GET /api/v1/user/profileand cached under the RTK Query tagProfile. Every sub-screen reads the same cache entry.
Flow
Profile menu
- The header reads Profile. Below it the profile card shows the avatar (a spinner while loading, a placeholder image if the account has none), the full name, and a pill reading Verified or Unverified from
isKYCVerified. - The line under the name reads Verified Member or Member (from
isEmailVerified), followed byJoinedand the month and year the account was created. - The pencil on the card opens Personal Information (
/profile/edit). - The menu sections, in order:
| Section | Row | Subtitle | Action |
|---|---|---|---|
| Account Management | Security & Privacy | Password, 2FA, and permission | Opens /profile/security |
| Account Management | Identity Verification | Complete your KYC (NIN) | Opens /profile/kyc. Row is hidden once isKYCVerified is true |
| Business | Earnings | What you have earned and what is in escrow | Opens /earnings |
| Business | Performance | Views, inquiries and closings | Opens /analytics |
| Preference | Appearance | profile.theme, default SYSTEM | Opens /profile/appearance |
| Preference | Language | profile.language, default ENGLISH | None |
| Preference | Notification | (none) | Opens /profile/notifications |
| Property Activity | Saved Searches | Lekki, Magodo and 4 others | None |
| Others | Help Center | Guides and frequently asked questions | Opens /support/help |
| Others | Replay App Tour | A quick walkthrough of the main features | Navigates to the role's home and restarts the tour after a short delay |
| Others | Contact Support | Get help from our team | Opens /support/contact |
| Others | Rate the App | Tell us how we're doing | Opens the store listing |
- Log out sits at the bottom (see Sign out).
Role differences
The screen does not branch on role. Lawyers see the same menu as agents and landlords, including the Earnings and Performance rows under Business, which lead to agent-oriented screens. The only conditional row is Identity Verification, which depends on KYC status, not role. The tour that Replay App Tour restarts is the lawyer tour for lawyers and the agent tour for everyone else.
Rate the App opens the Play Store page on Android (the market:// link first, the web listing if that fails) and the App Store write-review page on iOS when an App Store URL is configured. If neither opens, it falls back to the native in-app review prompt, and finally to the alert Rating unavailable / We couldn't open the app store on this device. Please try again later.
Edit personal information
- The screen title is Personal Information. Fields are prefilled from the cached profile.
| Field | Input | Client-side rule |
|---|---|---|
| Full Name | Free text, placeholder Full Name | Required. Split on the first space: first word becomes firstName, the rest becomes lastName |
| Email Address | Email keyboard, no auto-capitalise | Required after trimming. No format check in the app |
| Phone Number | Phone keypad, placeholder 816 000 4000 | Optional. Sent trimmed, or omitted when empty |
- Tapping Save changes with an empty first name or email shows the alert Missing fields /
Full name and email are required.and sends nothing. - Otherwise the app fires
PUT /api/v1/user/personal-infowithfirstName,lastName,emailandphone. The button reads Saving... and is disabled while the request runs. - On success the cached profile is patched immediately with the submitted values, the
Profiletag is invalidated, the alert Saved /Profile updated successfully.appears, and the screen goes back. - On any failure the alert is Error /
Failed to update profile.The server's own message is not shown. - The footnote reads:
Your information is securely encrypted and never shared with third parties without your explicit consent.
Server validation the form does not explain
The backend validates firstName and lastName as 2 to 50 characters, email as a valid address, and phone as digits, spaces, +, - and brackets only. A single-word full name sends an empty lastName, which the server rejects, and the user only sees the generic failure alert. The +234 prefix with a caret next to the phone field is a static label: it is not a country picker and is not prepended to the value that is saved.
Appearance
- The screen lists three options with a radio mark: System, Light and Dark.
- Tapping one applies it immediately across the app. There is no save button.
- The choice is written to AsyncStorage key
local:THEME_PREFERENCEassystem,lightordark. It is a device preference: it survives sign out and applies to whoever signs in next on that phone. - On launch the app holds rendering until the stored choice has been read, so a user on Dark does not see a light first frame.
Not synced to the account
No API call is made from this screen. The Appearance row subtitle on the profile menu shows profile.theme from the server, so it can read SYSTEM while the device is set to Dark.
Notification preferences
- The screen title is Notification, with the intro
Choose how and when you'd like to receive updates about your properties, bookings, and account activity. - Three switches are shown:
| Switch | Meaning | Initial value |
|---|---|---|
| Push Notification | The in-app channel: the notifications list and phone push together | notificationPreferences.newMessages.inApp |
| Email Notification | Email for every event | notificationPreferences.newMessages.email |
| SMS Notification | Disabled, shown off with a Coming soon badge | Always off |
- Save changes builds a payload that sets
inAppandemailto the two switch values for every event key in the stored preferences (newMessages,propertyInquiries,inspectionBookings,paymentConfirmations,systemUpdates,newPropertyMatches,escrowUpdates,agentMessages,priceDropAlerts,promotionalEmails). Thesmsvalue is left untouched. - The app fires
PUT /api/v1/user/notification-preferences. The button reads Saving... while it runs. - On success the cached profile is patched with the saved preferences and a
notificationPreferencesConfirmedAttimestamp, the alert Saved /Notification preferences updated.appears, and the screen goes back. - On failure the alert is Error /
Failed to update notifications.If the profile has not loaded, the alert is Error /Notification preferences unavailable.
There is no per-event control in the app. Any finer-grained choice made elsewhere is overwritten the next time this screen is saved, because both switches are applied to all events.
Security and privacy
The screen title is Security & Privacy. On open it calls GET /api/v1/user/active-sessions alongside the cached profile.
Change password
- Tapping Change password opens a bottom sheet with three masked fields: Current password (placeholder
Enter current password), New password (At least 8 characters) and Confirm new password (Re-enter new password). - Update password validates in this order:
- Current or new password empty: Missing details /
Enter your current and new password. - New password shorter than 8 characters: Password too short /
Your new password must be at least 8 characters. - New and confirm differ: Passwords do not match /
Make sure both new password fields match.
- Current or new password empty: Missing details /
- The app fires
POST /api/v1/user/change-passwordwithcurrentPasswordandnewPassword. The button shows a spinner while it runs. - On success the sheet closes, the fields are cleared, and the alert Updated /
Your password has been changed.appears. The user stays signed in. - On failure the alert title is Error and the body is the server's message, falling back to
Unable to change password. - Closing the sheet with the X or the Android back button clears all three fields.
Two Factor Auth
- The row shows Enabled or Not Enabled from
profile.twoFactorEnabled. - Tapping the row toggles the setting straight away with no confirmation:
POST /api/v1/user/enable-2faorPOST /api/v1/user/disable-2fa. - Success shows Updated /
Two-factor authentication enabled.orTwo-factor authentication disabled.and refetches the profile. Failure shows Error /Unable to update 2FA setting.
2FA is a flag only on this screen
There is no code entry, authenticator setup or verification step here. The backend handler just sets twoFactorEnabled on the user.
Biometric login and Facial unlock are greyed out with Coming soon and cannot be tapped.
Active Sessions
- Each session shows its device, location and
Last active:with a local date and time. The icon is a phone when the device name containsiphoneorandroid, a tablet foripadortablet, otherwise a laptop. - The first session in the list carries a THIS DEVICE badge. Every other session shows a LOG OUT button.
- Log out other devices in the section header fires
POST /api/v1/user/logout-all-devices. The link reads Logging out... while it runs, then shows Success /Logged out from other devices.or Error /Failed to log out other devices.
Sign out
- The user taps Log out at the bottom of the profile menu. There is no confirmation dialog.
- The
logoutthunk first unregisters this device's push token (see Chats and notifications), then firesPOST /api/v1/auth/signoutwith an empty body. - Whatever the server answers, the device credentials are removed: AsyncStorage keys
session:ACCESS_TOKEN,local:REFRESH_TOKENandlocal:USER. - The Redux store is reset on both
logout.fulfilledandlogout.rejected, which wipes theauthandchatslices and every RTK Query cache. - On success the app replaces the route with
/(auth)/signin. - If the request fails, the alert Error /
Unable to log out right now.is shown and no navigation happens, even though the local session has already been cleared.
States and edge cases
- Loading. The profile card and the edit screen show a spinner in place of the avatar while the profile loads; the name reads
Profileuntil data arrives. The notification preferences screen shows a spinner above the switches. Active sessions show a spinner in place of the list. There are no skeletons. - Rows with no action. Language and Saved Searches have no handler. The Saved Searches subtitle
Lekki, Magodo and 4 othersis hardcoded. - Avatar cannot be changed. The pencil over the avatar on the edit screen has no handler, so there is no photo picker, upload or permission prompt.
- Security Strength card is static. The
70%ring, the heading Enhanced Protection and the text about reaching 100% are hardcoded and do not reflect the account. - Per-session LOG OUT is not wired up. The button on each non-current session has no handler. Only Log out other devices does anything.
- THIS DEVICE is positional. The badge is given to the first session returned, not matched against this device.
- Log out other devices is broader than its label. The backend handler clears every stored session and removes the refresh token for the account. This device keeps working on its current access token, but may be sent to sign in once that token expires.
- Missing security features. There is no delete-account entry and no privacy-settings screen in this navigator.
DELETE /api/v1/user/accountandPUT /api/v1/user/privacy-settingsare defined insettings-api.tsbut not used here. - Email changes are not re-verified in the app. Editing the email only sends the new value; no verification screen follows.
- Session expiry. A
401whose message mentions the token triggers one shared refresh viaPOST /api/v1/auth/refresh-token. If that fails the store is cleared and the app replaces the route with/(auth)/signin.
What happens next
- Saving personal information or notification preferences updates the cached profile at once, so the profile card, the tabs layout and agent setup all see the new values without waiting for a refetch.
- Saving notification preferences stamps
notificationPreferencesConfirmedAt, which is what marks the Notifications step of agent setup as done. - A successful KYC check hides the Identity Verification row and flips the pill on the profile card to Verified.
- Signing out detaches the device from the account for push, so the next person to sign in on the phone does not receive the previous user's notifications.
HomeLink Hub