Skip to Content
HomeLink Hub
Agent & Landlord Experience

Dashboard and Tabs

How the professional (tabs) navigator is assembled per role, what the Home dashboard shows, the screens that hide behind it, and the first-launch tour.

Where it lives

Screen routeFileWho sees it
/(tabs) layoutapp/(tabs)/_layout.tsxEvery non-tenant role: AGENT, LANDLORD, DEVELOPER, LAWYER
/(tabs) (Home, pathname /)app/(tabs)/index.tsxAll of the above, lawyers included
First-launch tourcomponents/tour/app-tour.tsx, components/tour/tours.tsAll of the above, once per user per device
Root stackapp/_layout.tsxEveryone; registers (tabs), agent-onboarding, property, requests/[id], payment-requests/[id] and the rest

Supporting code: utils/home-route.ts (which navigator a role lands in), hooks/use-agent-onboarding.ts (the agent gate), services/dashboard/dashboard-api.ts (RTK Query slice dashboardApi), components/ui/tab-bar-icon.tsx.

Before you start

  • The user is signed in with a professional role. homeRouteForRole sends LANDLORD, AGENT, LAWYER and DEVELOPER to /(tabs); TENANT, or a missing or unknown role, goes to /tenant.
  • Agents must have finished setup. The layout redirects an AGENT whose profile is incomplete to /agent-onboarding (see Agent Onboarding and KYC). Landlords, developers and lawyers are never gated.
  • No device permissions are needed on these screens.

Flow

Which tabs each role gets

The tab bar shows icons only (tabBarShowLabel is false); the titles below are the screen titles set in code. The layout reads state.auth.user.role and hides a tab by giving it a null href.

OrderTitleRouteAgent, landlord, developerLawyer
1Home/(tabs)YesYes
2Chats/(tabs)/chatsYesYes
3Overview/(tabs)/lawyer-dashboardHiddenYes
4Partnerships/(tabs)/partnershipsHiddenYes
5Assignments/(tabs)/assignmentsHiddenYes
6Listings/(tabs)/listingsYesHidden
7Legal Team/(tabs)/legal-teamYesHidden
8Bookings/(tabs)/bookingsYesHidden
9Profile/(tabs)/profileYesYes

So an agent or landlord sees Home, Chats, Listings, Legal Team, Bookings, Profile; a lawyer sees Home, Chats, Overview, Partnerships, Assignments, Profile.

Four more screens live inside the navigator with no tab icon. They are reached by a push from another screen:

RouteOpened fromDocumented in
/(tabs)/notificationsBell icon on HomeChats and notifications
/(tabs)/earningsProfile, Business section, Earnings rowEarnings and Payouts
/(tabs)/analyticsProfile, Business section, Performance rowAnalytics
/(tabs)/requestsNo in-app entry point foundInspection Requests

The Tabs navigator and the tour provider are both keyed on the role. Signing out of one role and into another without restarting the app therefore unmounts and rebuilds the whole tab bar rather than patching it, and the Redux store (all RTK Query caches included) is reset on logout or session expiry.

Hidden is not the same as protected

A null href only removes the tab icon. The route files for both role sets are still part of the navigator, and the lawyer check is purely client-side on user.role. Access to the data behind each screen is enforced by the backend.

Home dashboard

  1. On mount the screen fires three requests: GET /api/v1/dashboard/stats, GET /api/v1/dashboard/recent-activity and GET /api/v1/user/profile. Results sit in the dashboardApi cache (tags DashboardStats, DashboardActivity) and the settingsApi cache (tag Profile).
  2. Header. "Good Morning" followed by the user's first name, or "Agent" when the profile has none. The bell icon on the right pushes /notifications.
  3. Performance Overview.
    • Total Listings: totalListings, with "+N this month" when listingsThisMonth is above zero, otherwise "No change this month".
    • Active Listing: activeListings (listings with status listed) and its share of the total as a percentage, "0%" when there are no listings.
    • Pending: pendingRequests with the caption "Needs review". On the backend this counts inspections on the user's properties whose status is scheduled or pending_review.
  4. Closings Volume. closingsVolume formatted with a naira sign and thousands separators, and "N successful closings" from successfulClosings (properties in status rented or sold).
  5. Recent Activity. The first four items of the feed. Each row has an icon, a title, a two-line description and a relative time ("5 mins ago", "2 hrs ago", "3 days ago"; an unparseable date shows "Just now").
Activity typeTitleDescription
inspection(actor) scheduled an inspection"(actor) scheduled an inspection for (property)", else the item text, else "Inspection activity update."
booking(actor) made a booking"(actor) booked (property)", else the item text, else "Booking activity update."
review(actor) left a review"(actor) reviewed (property)", else the item text, else "Review activity update."
message or anything else(actor) sent a messageThe message text, else the property, else "New message received."
  1. Add listing. The round plus button floating bottom right dispatches setListingFormMode("create") (Redux slice listingUi) and pushes /property/create-edit-listing. Continue with Create a Listing.

Unfinished parts of Home

The greeting is the fixed string "Good Morning" at any time of day. View detailed report and View All are rendered as buttons but have no press handler. Activity rows are not tappable. There is no pull-to-refresh on this screen.

Lawyers get the same Home

The Home tab does not branch on role. A lawyer sees the listing statistics, "Agent" as the fallback name, and the add-listing button. The lawyer-specific summary is the Overview tab; see the Lawyer Experience section.

First-launch tour

  1. AppTourProvider wraps the tab navigator and is given the agent tour for every non-lawyer role and the lawyer tour for lawyers.
  2. When the pathname is / (Home) the provider reads the AsyncStorage entry local:TOURS_SEEN, an object keyed by tour and user id (for example agent: followed by the user id). If the key is absent it waits for interactions to settle plus 900 ms, then starts the spotlight.
  3. Each tooltip shows progress dots, a title, a body, Skip tour (not on the last step), Back (not on the first) and Next, which reads Get started on the last step. While the overlay is up nothing underneath can be tapped.
  4. Stopping the tour by any route, finishing or skipping, writes the key to local:TOURS_SEEN. The local store survives sign-out, so the tour does not run again for that user on that device. A second account on the same phone gets its own run.
  5. Replay App Tour on the Profile tab navigates back to Home and restarts it after 400 ms.

Agent tour steps, in order:

TargetTitleBody
Bell on HomeStay in the loopNew booking requests, inspection updates and payments are announced here.
Add button on HomeList a propertyTap here to add a new listing with photos, price, location and amenities.
Chats tabTalk to clientsReply to tenants and buyers asking about your properties.
Listings tabManage listingsEdit, update or check the status of every property you've listed.
Legal Team tabYour legal teamPartner with verified lawyers who handle contracts and documentation for your deals.
Bookings tabBookings and inspectionsReview and respond to inspection requests and bookings from clients.
Profile tabYour profile and helpManage your account and settings here. The Help Center has guides and FAQs, and you can replay this tour from it at any time.

States and edge cases

  • Stats loading: a white spinner inside the Total Listings card. The two small cards and Closings Volume show 0 until data arrives.
  • Activity loading: a spinner in place of the list. Empty: "No recent activity yet."
  • Request failure: neither query has an error state. A failed stats call leaves every figure at 0, and a failed activity call shows the empty message.
  • Expired session: a 401 whose message mentions the token triggers one shared refresh (POST /api/v1/auth/refresh-token). If that fails the store is cleared and the root layout replaces the route with /(auth)/signin.
  • Agent with incomplete setup: the layout renders a redirect instead of the tabs, but only after the profile has loaded, so there is no flash of the setup flow for agents who are done.
  • Tour target missing: the tour definitions note that a step whose target is not mounted never shows its tooltip and the tour stalls, which is why every step points at Home or the tab bar.

What happens next

  • The bell leads to the Notifications screen, the add button to the listing wizard, and each tab to its own guide: Manage Listings, Legal Team, Bookings and Payment Requests, Chats and notifications, Profile and settings.
  • Creating, editing or deleting a listing does not invalidate the dashboard cache tags from the app side, so the Home figures refresh only when dashboardApi refetches (for example on a fresh mount after sign-in).

On this page