Wishlist
Saving properties with the heart on a card and viewing them on the tenant Wishlist tab.
The wishlist is a per-user list of saved properties held on the backend. Tenants add to it with the heart icon and read it on the Wishlist tab.
Where it lives
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Wishlist tab | /tenant/wishlist | app/tenant/wishlist.tsx | Tenants (third icon in the tab bar) |
| Heart on a list card | /tenant | app/tenant/index.tsx with components/app/property-card.tsx | Tenants |
| Heart on property details | /property/[id] | app/property/[id].tsx | Covered in Property details |
Supporting code: services/wishlist/wishlist-thunk.ts (RTK Query slice wishlistApi, tag Wishlist).
Endpoints defined in the slice:
| Hook | Request | Used by |
|---|---|---|
useGetWishlistQuery | GET /api/v1/wishlist?page=1&limit=20 | Wishlist tab |
useAddToWishlistMutation | POST /api/v1/wishlist/add with body propertyId | Home cards, property details |
useRemoveFromWishlistMutation | POST /api/v1/wishlist/remove with body propertyId | Home cards, property details |
useToggleWishlistMutation | POST /api/v1/wishlist/toggle with body propertyId | Not used by any screen |
useIsInWishlistQuery | GET /api/v1/wishlist/check/:propertyId | Not used by the screens on this page |
Before you start
- Signed in. Every
/api/v1/wishlistroute requires authentication on the backend. - No KYC and no device permissions are required.
Flow
Saving from a card
- On the home screen, each
Recommended for youcard shows a heart in the top-right corner of the photo. Cards whose status issoldorrented(short lets excepted) show the status label there instead and cannot be saved from the card. - Tapping an outline heart fills it red immediately (optimistic local state on the home screen) and fires
POST /api/v1/wishlist/addwith the property id. - Tapping a filled heart empties it and fires
POST /api/v1/wishlist/removewith the property id. - Both mutations invalidate the
Wishlisttag, so the Wishlist tab refetches its list. - If the request fails the heart silently returns to its previous state. No toast or alert is shown on the home screen.
Home hearts do not reflect saved state
isFavorite: false and keeps toggles in local component state. It never reads the wishlist, so after a reload a property that is already saved shows an outline heart again, and tapping it sends another add request.Where hearts are not interactive
Viewing the Wishlist tab
- Tap the Wishlist icon in the tab bar. The screen fires
GET /api/v1/wishlist?page=1&limit=20. The result is kept in thewishlistApiRTK Query cache. - Each saved property is shown as a card:
| Card element | Source |
|---|---|
| Photo | media.images[0] (string or url), stock placeholder if missing |
| Badge | Always AVAILABLE with a flash icon |
| Name | title |
| Price line | ₦X/year when pricing.rentPrice is set, else the formatted pricing.salePrice, else N/A, followed by community . state |
Email Alerts switch | On by default |
View Details button | See the warning below |
| Trash icon | See the warning below |
- The list shows at most the first 20 saved properties. There is no pagination.
Wishlist card actions are not wired
View Details button and the trash icon have no press handlers. The screen prepares a remove handler that would call POST /api/v1/wishlist/remove, but the card never invokes it. From this screen a tenant can neither open a saved property nor remove it; removal currently works only through the heart on the home card or on property details.Hardcoded card values
AVAILABLE badge is a fixed string and does not reflect the real listing status. The Email Alerts switch only changes local state on the card; it makes no API call and resets when the screen reloads. Short-let nightly prices are not read here, so a short let without a rent or sale price shows N/A.States and edge cases
- Loading: a large spinner while the first request is in flight.
- Empty:
No Saved PropertieswithTap the heart on any property and it will be waiting for you here.and aBrowse Propertiesbutton that replaces the route with/tenant. - Error or offline: the screen has no dedicated error state. A failed request leaves the list empty, so the
No Saved Propertiesempty state is shown. - There is no pull to refresh. The list refetches when an add, remove or toggle mutation invalidates the
Wishlisttag, or when the query is first subscribed after its cache entry has expired. - An expired access token is refreshed once silently; if the refresh fails the session is cleared and the app goes to
/(auth)/signin.
What happens next
- Saved properties are stored against the user on the backend, so the same list is returned on any device after sign-in.
- The
wishlistApicache is dropped with the rest of the Redux store on sign-out or session expiry. - Nothing else in the mobile app reacts to wishlist changes; no notification or email is triggered by the app code on this page.
Property details
The listing screen a tenant opens from any card, with photo, reviews, sharing, wishlist, map and the buttons that start an inspection or a payment.
Booking an inspection
Requesting a property tour, paying the inspection fee once the agent approves, and tracking every request on the My Inspections tab.
HomeLink Hub