Home and Discovery
The tenant tab bar, home screen, category browsing, the Recommended list, map display and the first-launch guided tour.
A signed-in tenant lands on /tenant, a tab navigator with its own tab bar. The home tab is the starting point for search, categories and a short list of live properties. Everything here is read-only browsing except the heart on a property card, which writes to the wishlist.
Where it lives
| Screen | Route | File | Who sees it |
|---|---|---|---|
| Tenant shell (tab bar, tour provider) | /tenant/* | app/tenant/_layout.tsx | Tenants (and any user with an unknown or missing role) |
| Home | /tenant | app/tenant/index.tsx | Tenants |
| All Categories | /categories | app/categories.tsx | Anyone who can reach it; linked from tenant home |
| Category results | /category/[type] | app/category/[type].tsx | Same |
| Recommended | /recommended | app/recommended.tsx | Same |
Supporting code: components/app/property-card.tsx (list card), components/app/property-grid-card.tsx (grid card), components/tour/app-tour.tsx and components/tour/tours.ts (guided tour), hooks/use-map-type.ts and components/app/property-location-map.tsx (map), services/property/property-thunk.ts (RTK Query slice propertyApi), utils/home-route.ts (which role gets which tab bar).
Before you start
- Signed in.
utils/home-route.tssendsTENANT(and any unrecognised role) to/tenant; landlords, agents, lawyers and developers go to the(tabs)group instead. - No KYC is needed to browse.
- No device permissions are requested on these screens. Location permission is never asked for; the app does not centre anything on the user's position.
- The two listing endpoints used here (
GET /api/v1/property/browse,GET /api/v1/property/search) are public on the backend, but the app still attaches the bearer token fromsession:ACCESS_TOKENwhen one exists.
Flow
Tab bar
The tab bar is 75 points high with rounded top corners and shows icons only (tabBarShowLabel: false). Five tabs are visible, in this order:
| Tab | Route | Documented in |
|---|---|---|
| Home | /tenant | this page |
| Chats | /tenant/chats | Chats and notifications |
| Wishlist | /tenant/wishlist | Wishlist |
| Inspections | /tenant/inspections | Booking an inspection |
| Profile | /tenant/profile | Profile and settings |
A sixth screen, /tenant/notifications, is registered in the same navigator with href: null, so it has no tab icon but keeps the tab bar visible when opened from the bell on the home screen.
Home screen
- The header shows
Good Morningand the user's first name from the Reduxauth.userobject (Guestwhen there is no first name). The greeting text is fixed; it does not change with the time of day. - The bell icon on the right opens
/tenant/notifications. - The search bar (placeholder
Search Properties) is not editable on this screen. Tapping it opens/search. The filter button beside it also opens/search, not/filter. See Search and filters. Verified Categoriesshows four shortcuts:Houses,Apartments,Lands,Commercial. Tapping one pushes/category/[type]withtypeset tohouses,apartments,landsorcommercial.See allopens/categories.Recommended for youfiresGET /api/v1/property/browse?page=1&limit=4on mount. The response is kept in thepropertyApiRTK Query cache (tagProperty). Up to four list cards are rendered.See allopens/recommended.- Tapping a card pushes
/property/[id]withidset to the property_id. See Property details. - Tapping the heart on a card toggles the wishlist. See Wishlist for the requests.
Each card is built from the API item as follows:
| Card field | Source | Fallback |
|---|---|---|
| Image | media.images[0].url | A stock placeholder photo |
| Title | title | Featured property |
| Location | location.community, location.state joined with a comma | Empty |
| Rating | rating.averageRating and rating.reviewCount, shown as (N ratings) | 0 |
| Price | shortLet.nightlyPrice for a SHORTLET, else pricing.rentPrice, else pricing.salePrice, formatted as ₦1,500,000 | N/A |
| Status overlay | sold or rented (never for short lets); replaces the heart | None |
Price period on home cards
/year, including sale prices and nightly short-let rates. The category and search screens pass night, year or nothing correctly.All Categories
/categoriesshows a three-column grid titledAll Categorieswith nine tiles:Houses,Apartments,Lands,Commercial,Shortlets,Offices,Warehouses,Villas,Penthouses. The list is hardcoded in the screen; no request is made.- Tapping a tile pushes
/category/[type]withtypeset to the tile id (houses,apartments,lands,commercial,shortlets,offices,warehouses,villas,penthouses). - The back chevron returns to the previous screen.
Three tiles have no matching category
warehouses, villas and penthouses fall back to the first one, so those tiles show Houses results under a Houses title, and no row is ticked in the Switch Category sheet.Category results
- The screen reads the
typeroute param (defaulthouses) and maps it to a backend property type:
type param | Title | type sent to the API |
|---|---|---|
houses | Houses | HOUSE |
apartments | Apartments | APARTMENT |
lands | Lands | LAND |
commercial | Commercial | COMMERCIAL |
shortlets | Shortlets | SHORTLET |
offices | Offices | OFFICE |
- It fires
GET /api/v1/property/searchwithtype,page=1,limit=50and, when a sort chip other thanAllis active,sort. Results live in thepropertyApicache. The backend returns only listed, verified properties. - Sort chips under the header:
All(nosort, newest first on the backend),Popular(sort=rating),Newest(sort=newest),Lowest Price(sort=price_asc). Changing a chip refetches. - The header title with a chevron opens the
Switch Categorysheet listing the six categories; the current one is highlighted with a tick. Picking one closes the sheet and refetches.Closeor a tap on the backdrop dismisses it. The route param is not changed; the selection is local state. - The icon on the right toggles between grid (two columns, the default) and list view.
- Above the results:
N results for "Category"(singularresultfor one). - Tapping any card pushes
/property/[id]with the propertyid. - Pull down on the list to refetch.
Recommended
/recommendedshows a headerRecommended, a grid/list toggle and the lineFound 24 properties you might like.- Tapping a card pushes
/property/[id]with the card id.
Recommended is placeholder data
1 to 6 and stock photos. It makes no API request, the count line is a fixed string, and tapping a card opens property details with an id that does not exist on the backend. The home section of the same name is real data from GET /api/v1/property/browse.Map view
None of the tenant discovery screens (home, categories, category results, recommended, search) offers a map of results. The only map a tenant sees is the Location block on the property details screen, rendered by components/app/property-location-map.tsx:
- A fixed 192-point Google map with one marker at the property coordinates. Scrolling and zooming are disabled.
- The base map type comes from
GET /api/v1/settings(appSettingsApicache, fieldmapType:roadmap,satellite,hybridorterrain), set by an admin.hooks/use-map-type.tsconverts it for the native map and usessatelliteuntil settings arrive or when the field is missing. - In dark mode a muted night style is applied; it only affects the drawn road map, not satellite imagery.
- When no coordinates are passed the component falls back to a default Lagos location and address text.
Guided tour
The tenant tab layout wraps its screens in AppTourProvider tour="tenant".
- The tour starts by itself the first time a signed-in user is on
/tenant(or/), about 900 ms after the screen settles, iflocal:TOURS_SEENhas no entry for the keytenant:USER_ID. A user who cold-starts into another screen (for example from a chat push) gets it the next time home is shown. - A dimmed overlay spotlights one target per step with a tooltip card. Nothing underneath can be tapped while it runs.
- Tooltip buttons:
Skip tour(hidden on the last step),Back(hidden on the first step), andNext, which readsGet startedon the last step. Dots show progress. - Steps, in order:
| Step | Target | Title |
|---|---|---|
| 1 | Home search bar | Find your next home |
| 2 | Home bell icon | Stay in the loop |
| 3 | Chats tab | Talk to agents |
| 4 | Wishlist tab | Save favourites |
| 5 | Inspections tab | Track inspections |
| 6 | Profile tab | Your profile and help |
- When the tour stops, whether finished or skipped, the key is written to
local:TOURS_SEEN(an object map oftour:userIdtotrue).local:keys survive sign-out, so the tour does not replay on the next sign-in; a different account on the same device gets its own tour. Replay App Touron the profile screen navigates to the role's home route and restarts the tour after about 400 ms.
States and edge cases
- Home loading: a large spinner in the Recommended section while the first browse request is in flight. No skeletons.
- Home error:
Couldn't load propertiesandCheck your connection and pull down to try again. - Home empty:
No Properties YetwithNew listings will appear here as soon as they go live. - Category loading: full-area spinner. Error:
Could Not Load Propertieswith aRetrybutton. Empty:No Houses Yet(the category label is substituted),Nothing is listed in this category right now. Try another one.and aSwitch Categorybutton that opens the sheet. - Session expiry on any request follows the shared rule: one silent refresh, then sign-in.
- Offline: RTK Query surfaces a fetch error and the error states above are shown. Nothing is cached to disk.
Home has no pull to refresh
Property cache tag is invalidated.Hearts on cards
What happens next
- Opening a property goes to Property details, where inspections, payments and short-let bookings start.
- A heart tap on home adds to or removes from the list shown on the Wishlist tab.
- On sign-out or session expiry the whole Redux store, including the
propertyApiandappSettingsApicaches, is reset.
HomeLink Hub