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

Billing usage

Host: admin.<ROOT_DOMAIN> · Route: /[tenant]/billing/usage

Purpose and access

Inspect the tenant resource-usage presentation.You need an account session and a resolved membership context in the selected Mahallu (including the API’s current platform elevation path). The API independently checks the requested operation’s permissions and feature availability.

Screen layout

Plan limits and usage contains storage and resource cards for subdivisions, members, programmes/registers, users, messaging, and website views.

Fields and displayed information

This screen has no editable fields or filters in its rendered components.

Actions

Interaction sequence

Refresh or Recalculate → a timed loading indicator runs → the existing displayed figures remain. Resources has no connected click handler.

States and rules

Used and limit figures are fixed component values. This screen does not measure storage, enforce quotas, or recalculate live usage.

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/admin/[tenant]/billing/usage/page.tsx
  • apps/web/src/features/billing/billing-usage.tsx
Data and access helpers: apps/web/src/lib/session.ts, apps/web/src/lib/server-api.ts, apps/web/src/lib/tenants.ts

API behavior references

  • apps/api/src/billing/plans.controller.ts
  • apps/api/src/billing/tenant-billing.controller.ts