Dashboard home
The landing screen for agents and landlords, covering stat cards, earnings, the performance chart, recent activity and quick actions.
Where it lives
| Route | View or component file | Access |
|---|---|---|
/ | src/views/app/dashboard/dashboard.tsx | signed-in, agent or landlord |
| Performance chart | src/views/app/dashboard/components/chart.tsx | same |
| Recent Activity | src/views/app/dashboard/components/recent-activity.tsx | same |
| Listing Overview | src/views/app/dashboard/components/pie-chart.tsx | same |
| Quick Actions | src/views/app/dashboard/components/quick-actions.tsx | same |
| Active Market | src/views/app/dashboard/components/active-market.tsx | same |
All data comes from src/services/dashboard/dashboard-api.ts (RTK Query, base path /api/v1/dashboard).
Before you start
- Signed in as an agent or landlord. Lawyers are redirected to
/legal. - No KYC or email check is made here. An unverified agent sees the dashboard with the onboarding banner above it.
Flow
Loading the page
Opening / fires these requests in parallel. Each card has its own loading state, so the page fills in piece by piece.
| Request | Feeds |
|---|---|
GET /api/v1/dashboard/stats | The four stat cards |
GET /api/v1/dashboard/earnings | The three earnings cards |
GET /api/v1/dashboard/performance?view=weekly | The performance chart |
GET /api/v1/dashboard/recent-activity | The Recent Activity table |
GET /api/v1/dashboard/listing-overview | The Listing Overview donut |
GET /api/v1/settings | The map type for the Active Market tile |
Results are cached by RTK Query for the session and are not kept in localStorage.
Stat cards
| Card | Value | Badge |
|---|---|---|
| Total Listings | totalListings | "+N this month" from listingsThisMonth |
| Active Listings | activeListings | "Live Now" (fixed text) |
| Pending Requests | pendingRequests | "N open" |
| Successful Closings | successfulClosings | Closing volume, for example "₦1.2M Volume", "₦840K Volume" or "₦500 Volume" |
While loading, each value shows "—" and each computed badge shows "…".
Earnings cards
| Card | Value | Line underneath |
|---|---|---|
| Total Earnings | totalEarnings in naira | "Inspection + acquisition fees" |
| Inspection Fee Earnings | inspectionEarnings | "N paid inspections" |
| Acquisition Fee Earnings | acquisitionEarnings | "N closed acquisitions" |
These cards are a summary only. The full ledger and withdrawals are on the Earnings page, documented in another section.
Performance chart
- The card is titled "Weekly Performance" with the line "Engagement trends across all channels". It plots two series, Views and Inquiries.
- Use the dropdown on the right to switch between Weekly and Monthly. The title changes to "Monthly Performance" and the app sends
GET /api/v1/dashboard/performance?view=monthly. - The choice is held in component state, so it resets to Weekly when the page is reopened.
Recent Activity
A table with the columns Activity and Time, five rows per page. Each row is built from one item of the activity feed:
| Item type | Title | Second line |
|---|---|---|
message | "New message from" and the sender | The message text, cut at 80 characters, or "Regarding" and the property |
inspection | "Inspection request:" and the property | "Submitted by" and the client |
booking | "Booking from" and the client | "Property:" and the property |
review | The star rating if any, then "Review from" and the reviewer | "On" and the property |
- Time is relative: "just now", "5m ago", "3h ago", "2d ago".
- Below the table: "Showing X to Y of Z entries" with previous, numbered and next page buttons. The page number is kept in the URL as
?activityPage=2, so a refresh stays on the same page. - Rows are not clickable.
View All Logs does nothing yet
Listing Overview
A donut chart, "Distribution across all listing statuses", with one slice per status returned by the API (Active, Pending, Sold, Rented, Inactive), a legend with counts, and a Total.
Quick Actions
| Button | Result |
|---|---|
| Add Listing | Opens /listings/create. See Create a listing. |
| View Messages | Opens /messages |
| Manage Requests | Opens /requests |
| Share Report | Opens a bottom drawer titled "Share Report" |
Share Report is a stub
Active Market
A non-interactive map tile labelled "Active Market" and "Lagos, Nigeria". The centre point and the label are hard-coded; they do not depend on where the user's listings are. Only the base map type (road map, satellite, hybrid or terrain) comes from the platform settings, defaulting to satellite.
States and edge cases
- Loading. Stat and earnings cards show dashes; the chart, donut and activity table each show a small spinner.
- Empty account. Stat cards show 0, the donut area shows "No listings yet.", and the activity table shows "No activity found." with no pagination row.
- Failed requests. There is no error message on this screen. A failed request leaves its card at zero or empty.
- Expired session. These requests go through RTK Query, which does not redirect on a
401. The cards simply stay empty. See the section overview. - Singular labels. "1 paid inspection" and "1 closed acquisition" drop the plural "s".
What happens next
- The stat cards and the weekly chart feed the "Market Pulse" popover on the listings table, which reuses the same two requests.
- For deeper figures (revenue, deals closed, category breakdown) go to Analytics.