Profile and Settings
The tenant Profile tab and every screen behind it - personal information, security, appearance, notification preferences, payment history, purchased properties and sign out.
The Profile tab is the tenant's account hub. It shows who is signed in, links to the settings screens, to the tenant's payments and properties, to help, and holds the "Log out" button.
Where it lives
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Profile stack | none | app/tenant/profile/_layout.tsx | Tenants |
| Profile | /tenant/profile | app/tenant/profile/index.tsx | Tenants |
| Personal Information | /tenant/profile/edit | app/tenant/profile/edit.tsx | Tenants |
| Security & Privacy | /tenant/profile/security | app/tenant/profile/security.tsx | Tenants |
| Appearance | /tenant/profile/appearance | app/tenant/profile/appearance.tsx | Tenants |
| Notification | /tenant/profile/notifications | app/tenant/profile/notifications.tsx | Tenants |
| Payment History | /tenant/profile/payment-history | app/tenant/profile/payment-history.tsx | Tenants |
| My Properties | /tenant/profile/purchases | app/tenant/profile/purchases.tsx | Tenants |
Profile data comes from userApi (services/user/user-thunk.ts, base /api/v1/user). Payment history uses paymentApi, purchases use propertyApi, and appearance uses hooks/use-theme-preference.tsx.
Before you start
- Signed in. The Profile tab is the fifth icon in the tenant tab bar.
- No KYC is required to use these screens. KYC status is displayed but tenants have no KYC screen in the app.
- No device permissions are requested here. "In-app" notification toggles depend on the notification permission granted at launch; see App launch and onboarding.
Flow
Profile menu
- The screen fires
GET /api/v1/user/profile. Until it answers, the header is filled fromlocal:USERin AsyncStorage; if neither is available a "Loading profile..." line shows. - The header card shows the avatar (or a generated placeholder avatar seeded with the name), the display name (or "HomelinkHub Member"), a pill reading "KYC Verified", "Email Verified" or "Verification Pending", and a subtitle such as "Verified Member · Joined Mar 2026" ("Member" when unverified, "Recently joined" when there is no date). The edit icon opens Personal Information.
- Menu groups and rows:
| Group | Row | Subtitle | Action |
|---|---|---|---|
| Account Management | Security & Privacy | Password, 2FA, and permission | Opens /tenant/profile/security |
| Account Management | My Properties | Places you've rented or bought | Opens /tenant/profile/purchases |
| Account Management | Payment History | Inspections and bookings you've paid for | Opens /tenant/profile/payment-history |
| Preference | Appearance | none | Opens /tenant/profile/appearance |
| Preference | Language | Coming soon | Disabled |
| Preference | Notification | none | Opens /tenant/profile/notifications |
| Property Activity | Saved Searches | Coming soon | Disabled |
| Others | Help Center | Guides and frequently asked questions | Opens /support/help |
| Others | Replay App Tour | A quick walkthrough of the main features | Restarts the guided tour |
| 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 |
- "Rate the App" opens the Play Store page on Android or the App Store review page on iOS when a store URL is configured. Otherwise it falls back to the native in-app review prompt, and if that is unavailable shows "Rating unavailable" / "We couldn't open the app store on this device. Please try again later.".
- "Replay App Tour" is described in Home and discovery. Help Center and Contact Support are in Help and support.
Editing personal information
- The screen titled "Personal Information" preloads from
GET /api/v1/user/profile(cached). Fields:
| Field | Rule |
|---|---|
| Full Name | Required. Split on the first space into first and last name. |
| Email Address | Read-only. Note under it: "Email changes are managed from your verified account workflow." |
| Phone Number | Optional, after a fixed "+234" prefix. Stored numbers are shown without the country code. |
| City | Optional. Placeholder "Lagos". |
- "Save changes" with an empty name shows "Missing information" / "Please enter your full name.".
- The phone is normalised before sending: digits starting with 234 get a plus sign; an 11-digit number starting with 0 or a 10-digit number becomes
+234followed by the local digits; anything else is sent as a plus sign and the digits. There is no length check. - The app fires
PUT /api/v1/user/profilewithfirstName,lastName,phoneandcity. The button reads "Saving...". - On success the app merges the new name, phone and city into
local:USER, shows "Profile updated" / "Your personal information has been saved." and goes back. TheUsercache tag is invalidated so the profile refetches. - On failure: "Update failed" with the server message or "Unable to update your profile right now.".
Name and city are not saved on the server
The backend handler for PUT /api/v1/user/profile only reads phone and avatar from the body. The name and city the tenant typed are written to local:USER on the device but not to the account, so they revert after the next sign-in and never show on other devices or to agents. A different endpoint, PUT /api/v1/user/personal-info, exists and is what the agent profile uses. There is also no way to change the avatar on this screen.
Security & Privacy
- "Security Strength" shows a percentage: 40 as a base, plus 20 each for a verified email, verified KYC and enabled two-factor. At 80 or above the caption is "Enhanced Protection", otherwise "Security setup in progress".
- "Security Checklist" lists "Identity verified", "Email verified" and "Two-factor authentication", each marked "DONE" or "PENDING". The rows are not tappable.
- Change Password. Fields "Current Password", "New Password", "Confirm New Password". "Update Password" validates in order and shows an inline red message for the first failure:
- "All password fields are required."
- "New passwords do not match."
- "New password must be at least 4 characters."
- It then fires
POST /api/v1/user/change-passwordwithcurrentPasswordandnewPassword. Success clears the fields and shows the inline green message "Your password was updated successfully.". Failure shows the server message or "Failed to change password.". The user stays signed in. - Two-Factor Authentication. The card shows "ENABLED" or "DISABLED" and a button "Enable 2FA" or "Disable 2FA".
- Enable: fires
POST /api/v1/user/enable-2faand shows "Two-factor enabled" with the server message or "Your account now has an extra layer of protection.". - Disable: opens the modal "Disable Two-Factor Auth" asking for the password. An empty password shows "Password is required to disable two-factor authentication.". "Disable" fires
POST /api/v1/user/disable-2fawithpassword, then shows "Two-factor disabled" / "Two-factor authentication has been turned off.". Errors show inside the modal. - A failed enable shows "2FA update failed" with the server message or "Failed to update two-factor authentication.".
- Enable: fires
Password and 2FA gaps
The app accepts a 4-character new password but the API requires 8 to 128, so short passwords fail with the server's message. The two 2FA mutations do not invalidate the cached profile, so the "ENABLED" or "DISABLED" label and the security score may not change until the profile is refetched. On the backend, enabling 2FA only sets a flag on the user; the sign-in endpoint does not ask for a second factor, and the mobile sign-in screen has no step for one.
There is no delete-account option, active-sessions list or privacy toggle on the tenant security screen, although userApi defines a deleteAccount mutation.
Appearance
- Three radio rows: "System", "Light", "Dark".
- Tapping one applies it immediately across the app and stores it in
local:THEME_PREFERENCE. No API call is made. - The choice is a device preference: it survives sign-out and applies to whoever signs in next on the same phone.
Notification preferences
- The screen titled "Notification" reads
notificationPreferencesfrom the cached profile. Missing values fall back to defaults.
| Event | Description shown | Default In-app | Default Email |
|---|---|---|---|
| New property matches | Get notified when a new listing matches your saved search. | On | On |
| Escrow updates | Receive progress updates as payments move through escrow. | On | On |
| Agent messages | Stay on top of messages from agents and landlords. | On | On |
| Price drop alerts | Know when a saved property drops in price. | Off | On |
| Promotional emails | Receive HomelinkHub product news, tips, and offers. | Off | On |
- Each event has three switches: "In-app", "Email" and "SMS · Soon". The SMS switch is disabled and always off. The intro text explains that In-app covers the notifications screen and push notifications on this phone.
- "Save changes" is enabled only when something differs from the loaded state. It fires
PUT /api/v1/user/notification-preferenceswith the full object (all five events, each withinApp,email,sms). - Success shows "Preferences saved" / "Your notification settings have been updated.". Failure shows "Save failed" with the server message or "Unable to update your notification preferences.".
Payment History
- Fires
GET /api/v1/escrow/mywithpage1 andlimit50. Only the first 50 escrow transactions are shown; there is no paging. - Each card shows the property title, location, a status pill ("Pending", "Funded", "Completed", "Disputed", "Cancelled"), "Amount", the type ("Rent" or "Purchase"), the created date and "Ref:" with the transaction reference.
- Pull down to refresh. Cards are not tappable.
Escrow only
Despite the menu subtitle and the empty-state text, this list contains escrow transactions only. Inspection fees and direct Paystack payments are not included; the backend's GET /api/v1/transaction/history is not called by the app.
My Properties
- Fires
GET /api/v1/property/acquiredwithpage1 andlimit50. - Each card shows the first photo, title, location, a status pill, "Rented for" or "Bought for" with the amount, and "Date". Status labels: "Awaiting payment" (pending), "In escrow" (funded), "Completed", "Disputed", "Cancelled".
- Tapping a card opens the listing at
/property/[id]. See Property details. - Pull down to refresh.
Log out
- "Log out" at the bottom of the Profile screen reads the refresh token from
local:REFRESH_TOKENand dispatches thelogoutthunk. The button shows a spinner and is disabled meanwhile. There is no confirmation dialog. - The thunk calls
DELETE /api/v1/users/push-tokens, thenPOST /api/v1/auth/signoutwithrefreshToken. - Whether or not the server call succeeds, the stored tokens and user are removed, the Redux store is reset, and the app replaces the route with
/(auth)/signin. See Sign up and sign in.
States and edge cases
- Profile request fails. The Profile screen keeps showing the copy from
local:USER; there is no error message. Edit, Security and Notification show their loading line ("Loading your profile...", "Loading your preferences...") only while loading and otherwise render with empty or default values. - Payment History. Loading: centred spinner. Error: "Could Not Load Payments" with "Retry". Empty: "No Payments Yet" / "Payments you make for inspections and bookings will appear here." with "Browse Properties", which replaces the route with
/tenant. - My Properties. Loading: centred spinner. Error: "Could Not Load Your Properties" with "Retry". Empty: "No Properties Yet" / "Properties you rent or buy through Home Link Hub will appear here." with "Browse Properties".
- Unknown escrow status. Both lists fall back to a grey pill showing the raw status.
- Offline. Saves fail with their fallback message; lists show their error state.
- Session expired. A 401 triggers one silent token refresh; if that fails the app returns to sign in.
What happens next
- Notification preferences are stored on the user record; the backend consults them when deciding which channels to use for an event.
- A password change takes effect immediately for the next sign-in. The current session is kept.
- Logging out detaches this device's push token so the next person to use the phone does not receive the previous user's notifications.
HomeLink Hub