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 route | File | Who sees it |
|---|---|---|
/(tabs) layout | app/(tabs)/_layout.tsx | Every non-tenant role: AGENT, LANDLORD, DEVELOPER, LAWYER |
/(tabs) (Home, pathname /) | app/(tabs)/index.tsx | All of the above, lawyers included |
| First-launch tour | components/tour/app-tour.tsx, components/tour/tours.ts | All of the above, once per user per device |
| Root stack | app/_layout.tsx | Everyone; 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.
homeRouteForRolesendsLANDLORD,AGENT,LAWYERandDEVELOPERto/(tabs);TENANT, or a missing or unknown role, goes to/tenant. - Agents must have finished setup. The layout redirects an
AGENTwhose 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.
| Order | Title | Route | Agent, landlord, developer | Lawyer |
|---|---|---|---|---|
| 1 | Home | /(tabs) | Yes | Yes |
| 2 | Chats | /(tabs)/chats | Yes | Yes |
| 3 | Overview | /(tabs)/lawyer-dashboard | Hidden | Yes |
| 4 | Partnerships | /(tabs)/partnerships | Hidden | Yes |
| 5 | Assignments | /(tabs)/assignments | Hidden | Yes |
| 6 | Listings | /(tabs)/listings | Yes | Hidden |
| 7 | Legal Team | /(tabs)/legal-team | Yes | Hidden |
| 8 | Bookings | /(tabs)/bookings | Yes | Hidden |
| 9 | Profile | /(tabs)/profile | Yes | Yes |
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:
| Route | Opened from | Documented in |
|---|---|---|
/(tabs)/notifications | Bell icon on Home | Chats and notifications |
/(tabs)/earnings | Profile, Business section, Earnings row | Earnings and Payouts |
/(tabs)/analytics | Profile, Business section, Performance row | Analytics |
/(tabs)/requests | No in-app entry point found | Inspection 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
- On mount the screen fires three requests:
GET /api/v1/dashboard/stats,GET /api/v1/dashboard/recent-activityandGET /api/v1/user/profile. Results sit in thedashboardApicache (tagsDashboardStats,DashboardActivity) and thesettingsApicache (tagProfile). - 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. - Performance Overview.
- Total Listings:
totalListings, with "+N this month" whenlistingsThisMonthis above zero, otherwise "No change this month". - Active Listing:
activeListings(listings with statuslisted) and its share of the total as a percentage, "0%" when there are no listings. - Pending:
pendingRequestswith the caption "Needs review". On the backend this counts inspections on the user's properties whose status isscheduledorpending_review.
- Total Listings:
- Closings Volume.
closingsVolumeformatted with a naira sign and thousands separators, and "N successful closings" fromsuccessfulClosings(properties in statusrentedorsold). - 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 type | Title | Description |
|---|---|---|
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 message | The message text, else the property, else "New message received." |
- Add listing. The round plus button floating bottom right dispatches
setListingFormMode("create")(Redux slicelistingUi) 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
AppTourProviderwraps the tab navigator and is given theagenttour for every non-lawyer role and thelawyertour for lawyers.- When the pathname is
/(Home) the provider reads the AsyncStorage entrylocal:TOURS_SEEN, an object keyed by tour and user id (for exampleagent:followed by the user id). If the key is absent it waits for interactions to settle plus 900 ms, then starts the spotlight. - 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.
- Stopping the tour by any route, finishing or skipping, writes the key to
local:TOURS_SEEN. Thelocalstore 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. - Replay App Tour on the Profile tab navigates back to Home and restarts it after 400 ms.
Agent tour steps, in order:
| Target | Title | Body |
|---|---|---|
| Bell on Home | Stay in the loop | New booking requests, inspection updates and payments are announced here. |
| Add button on Home | List a property | Tap here to add a new listing with photos, price, location and amenities. |
| Chats tab | Talk to clients | Reply to tenants and buyers asking about your properties. |
| Listings tab | Manage listings | Edit, update or check the status of every property you've listed. |
| Legal Team tab | Your legal team | Partner with verified lawyers who handle contracts and documentation for your deals. |
| Bookings tab | Bookings and inspections | Review and respond to inspection requests and bookings from clients. |
| Profile tab | Your profile and help | Manage 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
0until 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
dashboardApirefetches (for example on a fresh mount after sign-in).
Agent Onboarding and KYC
The mandatory five-step agent setup (identity, agency profile, notifications, payout bank account, inspection schedule) and the standalone NIN verification screen in Profile.
Create a Listing
How the three-step listing wizard is entered, what the Details and Location steps collect, and how the form is held between steps.
HomeLink Hub