Skip to Content
HomeLink Hub

Inspection requests

How an agent or landlord lists, reviews, accepts, rejects and replies to tour requests from tenants.

Where it lives

RouteView fileAccess
/requests (Inspection Requests tab, the default)src/views/app/requests/requests.tsx, src/views/app/requests/components/requests-table.tsx, src/views/app/requests/components/requests-columns.tsxagent, landlord
/requests/:idsrc/views/app/requests/request-detail.tsxagent or landlord of the property

API calls are in src/services/requests/inspections-api.ts (RTK Query, base path /api/v1/inspection). The message dialog also uses src/services/chat/chat-api.ts. The same inspections appear read-only on /bookings, see Bookings and payment requests.

Before you start

  • Signed in as an agent or landlord. Lawyers are redirected to /legal.
  • A tenant has asked for a tour from the consumer app. That creates an inspection with status pending_review.
  • The fee shown on the request is the lister's own inspection fee (set under Settings, Inspection Fee). The API falls back to the platform default, and the screen falls back to ₦5,000 when the API sends none.

Flow

Browse incoming requests

  1. Choose Requests in the sidebar. The page is headed "Incoming Requests" and fires GET /api/v1/inspection/agent/requests and GET /api/v1/booking/landlord/payment-requests?page=1&limit=20.
  2. Two tabs sit under the header: Inspection Requests and Payment Requests. The first tab's badge counts inspections in pending_review or in_progress. The open tab is kept in the URL (?tab=payments), and Inspection Requests is the default with no parameter.
  3. The filter card has:
    • Property Type: All Property Types, Villa, Apartment, Commercial, House, Land, Shortlet, Office. Compared with the property's type, ignoring case.
    • Status: All Status, Pending Review, In Progress, Scheduled, Completed, Cancelled.
    • Date Range: a button reading "Last 30 days".
    • A running total: "N active requests pending".
  4. The table shows six rows per page, with the page number in the URL (?page=2). Changing a filter returns to page 1. The footer reads "Showing X to Y of Z entries".
ColumnContent
User InformationTenant name and avatar, with the fixed label "Tenant"
Property DetailsThumbnail, title, community and state
Inquiry Brief"Tour requested for (date)", or the rejection reason once rejected
StatusBadge, see below
ActionEye icon opens /requests/{id}. The pencil and bin icons have no action
API statusBadge in the listBadge on the detail page
pending_reviewPENDING REVIEWPending Review
in_progressIN PROGRESSIn Progress
scheduledSCHEDULEDScheduled
completedCLOSEDCompleted
cancelledCLOSEDCancelled

Parts of the list are not wired up

The Export CSV button, the Date Range button, and the pencil and bin icons have no handlers. Choosing Completed or Cancelled in the Status filter always shows "No results.", because the table maps both statuses to closed before comparing them with the filter value.

Open a request

  1. Click the eye icon. The page loads GET /api/v1/inspection/{id} and GET /api/v1/chat/rooms.
  2. The left column shows:
    • A TOUR REQUEST badge, "Inspection #" followed by the last six characters of the id, and the received date and time.
    • The heading "Property Visit Request:" with the listing title.
    • Scheduled Date and Scheduled Time, as requested by the tenant.
    • The Status badge.
    • The rejection reason as a quote, once there is one.
    • Activity Timeline with four fixed steps (table below).
  3. The right column shows Immediate Response (the Inspection Fee, "Per Visit", and the three action buttons), Prospect Profile (name, TENANT tag, Email, Requested On, Scheduled For) and Target Asset (photo, type, title, location, price, beds, baths, size). View Full Listing Details goes to /listings/{propertyId}.
Timeline stepTicked when status isText before / after
Tour Request SubmittedalwaysDate and time, plus "Submitted by (tenant name)."
Agent Acceptedin_progress, scheduled, completed"Awaiting agent review" / "Request accepted by agent"
Payment Confirmed & Scheduledscheduled, completed"Awaiting escrow payment" / "Scheduled for (date) at (time)"
Inspection Completedcompleted"Pending" / completion date

Accept a request

  1. Press Accept Request. It is enabled only while the status is pending_review.
  2. The "Accept Request" dialog shows the property, the tenant, a Fee Breakdown (Agent Inspection Fee, Total Fee (Escrow)) and Inspection Details (Scheduled Date, Scheduled Time, Location). A note reads "Accepting this request will notify the client and add the inspection to your HomeLink Hub calendar."
  3. Press Confirm & Accept. The app sends PATCH /api/v1/inspection/{id}/review with { "action": "approve" }.
  4. The status moves from pending_review to in_progress. The dialog closes, the page refetches, the badge reads "In Progress" and the second timeline step is ticked. Cancel closes the dialog without a request.

There is no date or time picker. The agent accepts the slot the tenant chose, or rejects the request.

Reject a request

  1. Press Reject Request (also only enabled in pending_review).
  2. In the "Reject Request" dialog pick a preset or type a reason:
    • "Property is no longer available"
    • "Already booked for this time slot"
    • "Outside my service area"
    • "Client does not meet requirements"
    • Free text in "Or write a custom reason...". Typing clears the preset, and picking a preset clears the text.
  3. Validation: the reason must not be empty after trimming, otherwise Confirm Rejection stays disabled. The API requires rejectionReason for a reject and allows at most 1000 characters.
  4. The dialog warns "The client will be notified of this rejection. This action cannot be undone."
  5. Press Confirm Rejection. The app sends PATCH /api/v1/inspection/{id}/review with { "action": "reject", "rejectionReason": "..." }.
  6. The status becomes cancelled and the reason is saved as the cancellation reason. It then shows as a quote on the detail page and in the list's Inquiry Brief column.

No toast on accept or reject

Neither action shows a success toast, and a failed request is not caught: the dialog stays open with no message. Check the status badge to confirm the change.

Message the tenant

  1. Press Send Message. It is available in every status.
  2. The "Send Message" dialog shows the property, a "Tagging Request" panel (request id and date) and the recipient. Type into "Write your message here...". Enter sends, Shift+Enter adds a line. The button is disabled while the text is empty.
  3. The app looks through the rooms from GET /api/v1/chat/rooms for one whose referenced property is this listing. If there is none it creates one with POST /api/v1/chat/rooms (name: the tenant's full name, participants: the tenant, referencedProperty: the listing, isPrivate: true).
  4. It then sends POST /api/v1/chat/rooms/{roomId}/messages with { "content": "...", "messageType": "TEXT" }, and the dialog closes. The conversation continues on /messages, see Messages.

Room lookup is by property only

The existing-room check compares the property, not the tenant. If the lister already has a conversation about the same listing with someone else, the message is posted into that room. A failed send is only logged to the console.

Scheduling, completion and reviews

Not available in this app

The dashboard has no screen to reschedule, mark an inspection complete, leave a review, or connect a calendar. On the API, POST /api/v1/inspection/schedule and PATCH /api/v1/inspection/{id}/complete are placeholders that answer "coming soon". Google Calendar endpoints exist under /api/v1/calendar/google, but nothing in this app calls them.

States and edge cases

SituationWhat the user sees
List loadingSpinner with "Loading requests..."
No rows after filtering"No results."
Detail loadingSpinner with "Loading request..."
Unknown id, or a request on someone else's property (API answers "Access denied")"Request not found." with a Go back link
Status is not pending_reviewAccept Request and Reject Request are disabled
New request arrives while the page is openNothing changes until the page is reloaded. There is no realtime update on these screens

What happens next

  • After accept: the tenant gets an in-app notification and email, "Inspection Request Approved". The tenant then pays the inspection fee in the consumer app. When the payment provider confirms it, the API sets the status to scheduled and syncs the inspection to a connected calendar on the server.
  • After reject: the tenant gets "Inspection Request Rejected" with the reason, and the API removes the inspection from the calendar.
  • Money: a paid inspection fee appears on /earnings under the Inspections source, see Earnings and withdrawals.

On this page