Skip to Content
HomeLink Hub
MobileTenant

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

ScreenRouteFileWho sees it
Wishlist tab/tenant/wishlistapp/tenant/wishlist.tsxTenants (third icon in the tab bar)
Heart on a list card/tenantapp/tenant/index.tsx with components/app/property-card.tsxTenants
Heart on property details/property/[id]app/property/[id].tsxCovered in Property details

Supporting code: services/wishlist/wishlist-thunk.ts (RTK Query slice wishlistApi, tag Wishlist).

Endpoints defined in the slice:

HookRequestUsed by
useGetWishlistQueryGET /api/v1/wishlist?page=1&limit=20Wishlist tab
useAddToWishlistMutationPOST /api/v1/wishlist/add with body propertyIdHome cards, property details
useRemoveFromWishlistMutationPOST /api/v1/wishlist/remove with body propertyIdHome cards, property details
useToggleWishlistMutationPOST /api/v1/wishlist/toggle with body propertyIdNot used by any screen
useIsInWishlistQueryGET /api/v1/wishlist/check/:propertyIdNot used by the screens on this page

Before you start

  • Signed in. Every /api/v1/wishlist route requires authentication on the backend.
  • No KYC and no device permissions are required.

Flow

Saving from a card

  1. On the home screen, each Recommended for you card shows a heart in the top-right corner of the photo. Cards whose status is sold or rented (short lets excepted) show the status label there instead and cannot be saved from the card.
  2. Tapping an outline heart fills it red immediately (optimistic local state on the home screen) and fires POST /api/v1/wishlist/add with the property id.
  3. Tapping a filled heart empties it and fires POST /api/v1/wishlist/remove with the property id.
  4. Both mutations invalidate the Wishlist tag, so the Wishlist tab refetches its list.
  5. 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

The home screen builds every card with 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

Grid cards draw a heart but it is not a button. List cards on the category, search and recommended screens are given no toggle handler, so tapping their heart does nothing.

Viewing the Wishlist tab

  1. Tap the Wishlist icon in the tab bar. The screen fires GET /api/v1/wishlist?page=1&limit=20. The result is kept in the wishlistApi RTK Query cache.
  2. Each saved property is shown as a card:
Card elementSource
Photomedia.images[0] (string or url), stock placeholder if missing
BadgeAlways AVAILABLE with a flash icon
Nametitle
Price line₦X/year when pricing.rentPrice is set, else the formatted pricing.salePrice, else N/A, followed by community . state
Email Alerts switchOn by default
View Details buttonSee the warning below
Trash iconSee the warning below
  1. The list shows at most the first 20 saved properties. There is no pagination.

Wishlist card actions are not wired

On the Wishlist tab the 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

The 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 Properties with Tap the heart on any property and it will be waiting for you here. and a Browse Properties button 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 Properties empty state is shown.
  • There is no pull to refresh. The list refetches when an add, remove or toggle mutation invalidates the Wishlist tag, 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 wishlistApi cache 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.

On this page