Skip to Content
HomeLink Hub

Dashboard home

The landing screen for agents and landlords, covering stat cards, earnings, the performance chart, recent activity and quick actions.

Where it lives

RouteView or component fileAccess
/src/views/app/dashboard/dashboard.tsxsigned-in, agent or landlord
Performance chartsrc/views/app/dashboard/components/chart.tsxsame
Recent Activitysrc/views/app/dashboard/components/recent-activity.tsxsame
Listing Overviewsrc/views/app/dashboard/components/pie-chart.tsxsame
Quick Actionssrc/views/app/dashboard/components/quick-actions.tsxsame
Active Marketsrc/views/app/dashboard/components/active-market.tsxsame

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.

RequestFeeds
GET /api/v1/dashboard/statsThe four stat cards
GET /api/v1/dashboard/earningsThe three earnings cards
GET /api/v1/dashboard/performance?view=weeklyThe performance chart
GET /api/v1/dashboard/recent-activityThe Recent Activity table
GET /api/v1/dashboard/listing-overviewThe Listing Overview donut
GET /api/v1/settingsThe map type for the Active Market tile

Results are cached by RTK Query for the session and are not kept in localStorage.

Stat cards

CardValueBadge
Total ListingstotalListings"+N this month" from listingsThisMonth
Active ListingsactiveListings"Live Now" (fixed text)
Pending RequestspendingRequests"N open"
Successful ClosingssuccessfulClosingsClosing volume, for example "₦1.2M Volume", "₦840K Volume" or "₦500 Volume"

While loading, each value shows "—" and each computed badge shows "…".

Earnings cards

CardValueLine underneath
Total EarningstotalEarnings in naira"Inspection + acquisition fees"
Inspection Fee EarningsinspectionEarnings"N paid inspections"
Acquisition Fee EarningsacquisitionEarnings"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

  1. The card is titled "Weekly Performance" with the line "Engagement trends across all channels". It plots two series, Views and Inquiries.
  2. 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.
  3. 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 typeTitleSecond line
message"New message from" and the senderThe 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
reviewThe 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

The "View All Logs" link in the card header has no click handler.

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

ButtonResult
Add ListingOpens /listings/create. See Create a listing.
View MessagesOpens /messages
Manage RequestsOpens /requests
Share ReportOpens a bottom drawer titled "Share Report"

Share Report is a stub

The drawer has an Email Address field, a Message field and a Send Report button, but the fields are not read and no request is sent. Send Report only closes the drawer.

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.

On this page