Platform settings
Payment mode, the three platform fees, the default lawyer, listing photo geotagging, the default map type and the admin panel theme.
Where it lives
| Route | View / component | Access |
|---|---|---|
/dashboard/settings | src/views/settings/settings.tsx | Admin only |
Also: src/services/settings/settings-thunk.ts, src/services/settings/settings-slice.ts (Redux slice settings), src/components/theme-provider.tsx, src/components/theme-toggle.tsx. Server side: service/src/routes/setting.routes.ts, service/src/controllers/setting.controller.ts, service/src/models/setting.model.ts.
Before you start
- Signed in as an admin.
- These are global settings held in a single record.
GET /api/v1/settingsis a public endpoint that the other apps read;PATCH /api/v1/settingsis admin only. - To choose a default lawyer, at least one active user with role
LAWYERmust exist.
Flow
- Opening the page (titled "System Settings") sends
GET /api/v1/settingsandGET /api/v1/admin/users(the user list supplies the lawyers). Settings are stored in thesettingsslice; the defaults used when a value is missing are payment modeESCROW, platform fee 1, inspection fee 5000, agent commission 5, geotagging off with 500 metres, and map typesatellite. - Each card saves on its own. Every save is a
PATCH /api/v1/settingscarrying only that card's fields, and the response replaces all values in the slice. - While any settings request is running, every control on the page is disabled.
Payment mode
- The "Payment Gateway Configuration" card shows "Payment Mode" and "Current Mode:" followed by "Direct Payment (Paystack)" or "Escrow Payment (Pandascrow)".
- The card explains the two modes: "Direct Payment: Full amount goes to platform Paystack account." and "Escrow Payment: Funds are held by Pandascrow until conditions are met."
- Click "Toggle Mode" (it reads "Updating..." while saving). The app sends
PATCH /api/v1/settingswith body{ "paymentMode": "DIRECT" }or{ "paymentMode": "ESCROW" }, whichever is not current. - The "Current Mode" text updates when the response arrives.
One click, no confirmation
"Toggle Mode" switches how buyers pay for bookings and purchases across the platform as soon as it is clicked. There is no confirmation step.
Platform fees
- The "Platform Fees" card has three number inputs:
| Field | Meaning (as shown) | Limits on the input | Default |
|---|---|---|---|
| HomeLink Platform Fee (%) | "HomeLink's own cut, added on top of property rent/sale payments." | min 0, max 100 | 1 |
| Inspection Fee Payment (₦) | "Charged when a tenant/buyer pays for an inspection. Default ₦5,000 — an agent can override it with their own fee." | min 0 | 5000 |
| Property Acquisition Fee — Agent Commission (%) | "Paid to the listing agent when a property purchase completes." | min 0, max 100 | 5 |
- "Save Fees" is enabled once any of the three differs from the saved value.
- Click it. The app sends
PATCH /api/v1/settingswithplatformPropertyFeePercent,defaultInspectionFeeandagentCommissionPercent.
The limits are not enforced
The min and max values are hints on the number inputs only. Neither this view nor the settings endpoint rejects an out-of-range number, and clearing a field sends 0. Check the three values before clicking "Save Fees".
Default lawyer
- The "Legal Verification" card has a "Default lawyer" drop-down listing "No default (agents invite their own)" and every active lawyer as "First Last · email", sorted by name.
- Pick a lawyer (or "No default") and click "Save Default Lawyer", which is enabled once the choice differs from the saved one.
- The app sends
PATCH /api/v1/settingswith body{ "defaultLegalPartnerId": "USER_ID" }, ornullfor no default. - The server accepts only an active user with role
LAWYER; otherwise it answers "The default legal partner must be an active lawyer".
Listing photo geotagging
- The "Listing Photo Geotagging" card has three controls:
| Control | Rule |
|---|---|
| "Check photo location" switch | "Reject photos taken further from the listing than the distance below. Photos with no location data are still accepted." Turning it off also turns "Strict checking" off. |
| "Strict checking" switch | Usable only while "Check photo location" is on. "Every photo must carry location data. Photos without it, such as screenshots, edited images and photos taken with location turned off, are rejected too." |
| "Maximum distance (metres)" | Usable only while "Check photo location" is on. A number from 50 to 50000, stepping by 50. Outside that range the hint turns red: "Enter a distance from 50 to 50,000 metres." |
- "Save Geotagging" is enabled when something changed and the distance is valid.
- Click it. The app sends
PATCH /api/v1/settingswith body{ "imageGeotagging": { "enabled": true, "strict": false, "maxDistanceMeters": 500 } }. - The server repeats the range check and answers "Image geotagging distance must be between 50 and 50000 metres" or "Image geotagging settings are invalid" if it fails.
Map type
- The "Map Type" card offers four choices: "Satellite" (Aerial imagery only), "Hybrid" (Imagery with street names), "Road map" (Streets and labels) and "Terrain" (Road map with elevation).
- Click one, then "Save Map Type" (enabled when the choice differs from the saved one).
- The app sends
PATCH /api/v1/settingswith body{ "mapType": "hybrid" }(valuesroadmap,satellite,hybrid,terrain).
Map type does not appear to be saved by the API
In the service code read for this guide, the PATCH /api/v1/settings handler does not read mapType and the settings model has no such field. The request succeeds, but the response carries no map type, so this card falls back to "Satellite". Treat this setting as unfinished until the backend support is confirmed.
Appearance
- The "Appearance" card offers "Light", "Dark" and "System" ("System follows your operating system setting.").
- Clicking one applies it immediately and stores it in
localStorageunderadmin-theme. No request is sent; the choice is per browser. - The sun or moon button in the page header does the same thing in one click, switching between light and dark.
States and edge cases
- Errors from loading or saving show in a red box under the page title, with the server message or "Failed to fetch settings" / "Failed to update settings". The box clears when the next settings request starts.
- There is no success message. A save has worked when the controls re-enable and the card's save button returns to disabled.
- Unsaved choices in the lawyer and map cards are kept while a save fails, so you can retry.
- If the saved default lawyer has been deactivated or is no longer a lawyer, the drop-down shows a disabled entry "Current default (no longer an active lawyer)" and a red warning: "The current default is no longer an active lawyer, so new listings are not being assigned. Pick another lawyer."
- With no active lawyers the card reads "No active lawyers yet. A lawyer has to sign up before one can be made the default."
- If the user list fails to load, the lawyer drop-down has only the "No default" option; the failure itself is shown on the Users page, not here.
- The auth screens always use the light theme, whatever is chosen under Appearance.
What happens next
- Payment mode decides whether property bookings and purchases are paid directly through Paystack or held in escrow by Pandascrow.
- The platform fee percentage is added on top of the base amount for property rent and sale payments, and is what accrues on Earnings and payouts.
- The inspection fee is the flat amount charged for a site visit when the agent has not set their own fee. It is charged as it is, with no platform surcharge on top.
- The agent commission percentage is the listing agent's cut of a completed property purchase.
- With a default lawyer set, every new listing is assigned to that lawyer for legal verification as soon as it is submitted. Listings that already exist are not affected. With none, listers invite their own lawyer.
- With geotagging on, listing photos are checked against the listing's location when they are uploaded, and photos taken too far away are rejected.