Inspection requests
How an agent or landlord lists, reviews, accepts, rejects and replies to tour requests from tenants.
Where it lives
| Route | View file | Access |
|---|---|---|
/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.tsx | agent, landlord |
/requests/:id | src/views/app/requests/request-detail.tsx | agent 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
- Choose Requests in the sidebar. The page is headed "Incoming Requests" and fires
GET /api/v1/inspection/agent/requestsandGET /api/v1/booking/landlord/payment-requests?page=1&limit=20. - Two tabs sit under the header: Inspection Requests and Payment Requests. The first tab's badge counts inspections in
pending_revieworin_progress. The open tab is kept in the URL (?tab=payments), and Inspection Requests is the default with no parameter. - 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".
- 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".
| Column | Content |
|---|---|
| User Information | Tenant name and avatar, with the fixed label "Tenant" |
| Property Details | Thumbnail, title, community and state |
| Inquiry Brief | "Tour requested for (date)", or the rejection reason once rejected |
| Status | Badge, see below |
| Action | Eye icon opens /requests/{id}. The pencil and bin icons have no action |
| API status | Badge in the list | Badge on the detail page |
|---|---|---|
pending_review | PENDING REVIEW | Pending Review |
in_progress | IN PROGRESS | In Progress |
scheduled | SCHEDULED | Scheduled |
completed | CLOSED | Completed |
cancelled | CLOSED | Cancelled |
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
- Click the eye icon. The page loads
GET /api/v1/inspection/{id}andGET /api/v1/chat/rooms. - 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).
- 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 step | Ticked when status is | Text before / after |
|---|---|---|
| Tour Request Submitted | always | Date and time, plus "Submitted by (tenant name)." |
| Agent Accepted | in_progress, scheduled, completed | "Awaiting agent review" / "Request accepted by agent" |
| Payment Confirmed & Scheduled | scheduled, completed | "Awaiting escrow payment" / "Scheduled for (date) at (time)" |
| Inspection Completed | completed | "Pending" / completion date |
Accept a request
- Press Accept Request. It is enabled only while the status is
pending_review. - 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."
- Press Confirm & Accept. The app sends
PATCH /api/v1/inspection/{id}/reviewwith{ "action": "approve" }. - The status moves from
pending_reviewtoin_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
- Press Reject Request (also only enabled in
pending_review). - 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.
- Validation: the reason must not be empty after trimming, otherwise Confirm Rejection stays disabled. The API requires
rejectionReasonfor a reject and allows at most 1000 characters. - The dialog warns "The client will be notified of this rejection. This action cannot be undone."
- Press Confirm Rejection. The app sends
PATCH /api/v1/inspection/{id}/reviewwith{ "action": "reject", "rejectionReason": "..." }. - The status becomes
cancelledand 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
- Press Send Message. It is available in every status.
- 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.
- The app looks through the rooms from
GET /api/v1/chat/roomsfor one whose referenced property is this listing. If there is none it creates one withPOST /api/v1/chat/rooms(name: the tenant's full name, participants: the tenant,referencedProperty: the listing,isPrivate: true). - It then sends
POST /api/v1/chat/rooms/{roomId}/messageswith{ "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
| Situation | What the user sees |
|---|---|
| List loading | Spinner with "Loading requests..." |
| No rows after filtering | "No results." |
| Detail loading | Spinner 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_review | Accept Request and Reject Request are disabled |
| New request arrives while the page is open | Nothing 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
scheduledand 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
/earningsunder the Inspections source, see Earnings and withdrawals.