Skip to main content
Source snapshot: 13 October 2026. These pages describe the current implementation, including unfinished controls. See coverage and review notes.

Fleet and Mahalles

Host: control.<ROOT_DOMAIN> · Route: /tenants

Purpose and access

Provision and manage tenant records across the platform.You need an account session and platform access. Platform privileges are separate from tenant roles; privileged writes remain subject to endpoint role checks.

Screen layout

Fleet & Mahalles includes search, status/district filters, sorting, selection, CSV export, and Provision New Mahalle. Provisioning captures name, slug, optional owner email, geography, Masjid, and contact details.

Fields and displayed information

Displayed table columns: Mahalle & Host, Location, Members / Families, Admins, Created, Status, Actions.

Fields and filters: Tenants table

Fields and filters: Provision tenant dialog

Actions

Linked navigation

Interaction sequence

Provision → fill name/slug and optional metadata → save → inspect the new tenant. Select a row for its command center. Suspend/reactivate updates status; bulk delete requires confirmation and reports deleted/skipped results.

States and rules

Provisioning does not use citizen member intake. Platform role requirements are enforced by the API. Filtering is client-side over loaded tenants; CSV exports the selected/current collection implemented by the handler.Explicit validation messages in the rendered forms:
  • Name and slug are required
The rendered action controls bind loading indicators to pending state. Failed API saves keep their documented error/notification path; a loading indicator alone does not establish persistence.

Implementation references

Paths below are relative to the application repository. This is source-reviewed behavior, not a recorded browser test.
  • apps/web/src/app/sites/control/(app)/tenants/page.tsx
  • apps/web/src/features/platform/tenants-table.tsx
  • apps/web/src/features/platform/provision-tenant-dialog.tsx
Data and access helpers: apps/web/src/lib/session.ts, apps/web/src/lib/server-api.ts, apps/web/src/lib/platform.ts, apps/web/src/lib/api-client.ts

API behavior references

  • apps/api/src/platform/platform-tenant-access.controller.ts
  • apps/api/src/platform/platform.controller.ts
  • apps/api/src/billing/plans.controller.ts
  • apps/api/src/billing/tenant-billing.controller.ts
  • apps/api/src/features/features.controller.ts
  • apps/api/src/features/tenant-features.controller.ts
  • apps/api/src/forms/forms.controller.ts
  • apps/api/src/analytics/analytics.controller.ts
  • apps/api/src/analytics/tenant-analytics.controller.ts