Search and Browse
The hero search, the app home listing grid, the search results page with its filters, property cards and the map view.
Browsing is open to everyone. There are two listing pages: the app home (/app), which loads a batch of listings and filters them in the browser, and the search results page (/app/search), where every filter lives in the URL and is sent to the API.
Where it lives
| Route | View / component file | Access |
|---|---|---|
/app | src/views/app/index.tsx | public |
/app/search | src/views/app/search-results.tsx | public |
Hero search (on /, /app and the navbar panel) | src/components/landing/hero-search.tsx | public |
| Navbar title search and filter panel | src/components/landing/navbar.tsx | signed-in |
| Property card | src/components/property-card.tsx | public |
| Map pins | src/components/property-map.tsx | public |
Data comes from propertyApi in src/services/property/property-thunk.ts.
Before you start
- No sign-in is needed to search or open a listing. Saving to the wishlist from a card does need one.
- The map view needs the Google Maps key configured at build time, and only pins listings that have saved coordinates.
Flow
Search from the hero
- Pick a category chip: All, Apartment, House, Villa, Land, Commercial, Shortlet or Office.
- Fill the segmented bar:
- Where: free text, placeholder "Lagos, Abuja, Lekki…".
- Max budget: digits only (up to 12), shown with thousands separators.
- Bedrooms: Any, 1 Bedroom to 4 Bedrooms, 5+ Bedrooms. Hidden for Land and Office.
- For Shortlet the last two are replaced by Check in – out (a two-month range calendar with past days disabled) and Who (Any, 1 Guest to 7 Guests, 8+ Guests).
- Search navigates to
/app/searchwith only the filled params:type,location, then eitherpriceandrooms, orcheckIn,checkOut(asyyyy-MM-dd) andguestsfor short-lets.
No field is required; an empty search lists everything.
Search results (/app/search)
- The page reads the URL and fires
GET /api/v1/property/searchwithlimit=50plus:
| URL param | Sent to the API as | Notes |
|---|---|---|
title | title | From the signed-in navbar search box |
location | state | Free text from the Where field |
type | type | Any casing in the URL; unknown values are ignored |
price | maxPrice | Positive whole numbers only |
minPrice | minPrice | Set by the Price Range dropdown |
rooms or bedrooms | bedrooms | bedrooms wins when both are present |
bathrooms | bathrooms | Set by the Filters drawer |
checkIn, checkOut, guests | not sent | Shown in the header and as chips only |
- The header reads Search Results and "N properties found", followed by the location in quotes, the stay dates and the guest count when present.
- The filter bar has three dropdowns that write straight to the URL: Property Type (Any type plus the seven types), Bedrooms (Any, 1 bed, 2 beds, 3 beds, 4+ beds) and Price Range (Any price, ₦0 – ₦200,000, ₦200,000 – ₦500,000, ₦500,000 – ₦1,000,000, ₦1,000,000+).
- Filters opens a right-hand drawer with a draft copy of the current filters:
- Price Range: a slider for the maximum price from 0 to 2,000,000 in steps of 50,000. The top of the slider means "No max".
- Property Type, Bedrooms (Any, 1, 2, 3, 4) and Bathrooms (Any, 1, 2, 3, 4) as toggle pills.
- Amenities (WiFi, Security, AI Voice, Wardrobe).
- Apply Filters writes type, rooms, bathrooms and max price to the URL and closes the drawer.
- Under the bar, one removable chip per active criterion shows what the results are narrowed by (for example
"villa",Lagos,Up to ₦500,000,2+ beds), plus Clear all. - Each change updates the URL, which refetches the results in place without scrolling to the top.
Amenities and stay dates do not filter
The Amenities pills are kept in local state only (the search API has no amenities filter), and checkIn, checkOut and guests are displayed but never sent. A short-let search is therefore narrowed by type and location only; availability is checked later on the property page.
App home (/app)
- The page opens with the same photo hero and search as the home page (with the "Welcome back" greeting when signed in).
- Under it, Available Properties fires
GET /api/v1/property/search?limit=50once, with no filters, and shows "N properties available". - The filter bar (Property Type, Bedrooms, Price Range) and the Filters drawer look like the ones on the results page but filter the loaded 50 listings in the browser. They do not change the URL or call the API.
- Differences from the results page: bedroom and bathroom choices match exactly (only 4+ means "4 or more"), the drawer's slider starts at ₦500,000 and maps onto the four price bands when applied, and the drawer stays open after Apply Filters.
Cards, list and map views
- The two icon buttons switch between Card view (grid) and List view (compact rows).
- Map view opens a Google map beside the results; the button then reads List view. Each listing with coordinates gets a price pin (short format such as ₦1.5M). Clicking a pin opens an info window with the title, location and price.
- The map frames all pins automatically until the visitor pans or zooms. With no pins, the results page centres on Nigeria and the app home on a fixed default position.
- A card shows the first photo, rating, location, title, price and, for apartments, houses, villas and short-lets, beds and baths, plus the area. The price period is
/yearfor rent,/nightfor short-lets and nothing for a sale. - Clicking a card opens
/app/property/:id. - The heart saves or removes the listing, see Wishlist. The share button (shown on hover, always on touch screens) opens the share menu described in Property details.
- Long-term listings whose status is
soldorrentedshow a Sold or Rented badge instead of the heart. Short-lets never show it.
Search from the navbar (signed in)
- The Search by title... box submits to
/app/search?title=.... - The Filter Properties panel submits
type,price,locationandrooms. Both are described in the overview.
States and edge cases
- Loading. The results page replaces the whole page with a spinner and "Loading properties..." on first load. The app home shows "Finding the latest listings…" in the header and "Loading properties..." in the grid.
- Empty. "No properties found. Try adjusting your filters."
- Errors. Neither page has an error state; a failed request looks the same as an empty result.
- Result cap. Both pages request
limit=50and there is no pagination or "load more". - Unusual URL values. A
roomsvalue with no matching dropdown option (for example 5) still filters, and the dropdown shows its placeholder. Non-numeric prices are ignored. - Signed-out wishlist click. Toast "Please sign in to add properties to your wishlist" and the sign-in modal opens.
Short-let prices on some cards
The results page, the Shortlet Stays section and the property page read a short-let's price from shortLet.nightlyPrice. The app home grid, the home page type sections, Featured and the wishlist read only pricing.rentPrice or pricing.salePrice, so a short-let with neither can show ₦0 on those cards.