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

House profile

Host: admin.<ROOT_DOMAIN> · Route: /[tenant]/houses/[houseId]

Purpose and access

Inspect a dwelling and the family and members associated with it.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

The page presents House Information, Family, Members, and History panels with an edit-house control.

Fields and displayed information

Fields and filters: House form dialog

Actions

Linked navigation

Interaction sequence

Open a house from the directory → inspect its division and address → follow the family/member links → or edit house details and save → refresh.

States and rules

Missing houses use notFound. Unlinked households and missing members have explicit empty messages. History currently states No history to show yet; do not describe an implemented house timeline.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/admin/[tenant]/houses/[houseId]/page.tsx
  • apps/web/src/features/tenants/edit-house-button.tsx
  • apps/web/src/features/tenants/house-form-dialog.tsx
Data and access helpers: apps/web/src/lib/session.ts, apps/web/src/lib/server-api.ts, apps/web/src/lib/tenants.ts, apps/web/src/lib/houses.ts, apps/web/src/lib/structure.ts, apps/web/src/lib/business-resources.ts, apps/web/src/lib/members.ts, apps/web/src/lib/api-client.tsRelevant controller permission keys: houses.view, houses.create, houses.update, houses.delete. Keys are operation-specific; the current guard grants OWNER/ADMIN and its platform-elevation context an operational bypass. A visible control still does not establish authorization.

API behavior references

  • apps/api/src/houses/houses.controller.ts