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

Create Mahalle

Host: <ROOT_DOMAIN> · Route: /new-mahalle

Purpose and access

Create a tenant from the marketing-host form using an authenticated account.Entry, public access, and redirect rules are described for this screen below.

Screen layout

Create your Mahalle contains the CreateTenantForm with tenant name and slug/URL. The slug field supports automatic name-based generation, manual editing, and availability checking.

Fields and displayed information

Fields and filters: Create tenant form

Fields and filters: Slug field

Actions

Interaction sequence

Enter tenant identity → submit → create through /tenants → continue to the resulting administrator workspace.

States and rules

The route requires an account session; unauthenticated visitors are redirected. This simpler creation form is separate from the location/account onboarding wizard.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/marketing/new-mahalle/page.tsx
  • apps/web/src/features/tenants/create-tenant-form.tsx
  • apps/web/src/features/tenants/slug-field.tsx
  • apps/web/src/components/auth-shell.tsx
Data and access helpers: apps/web/src/lib/session.ts, apps/web/src/lib/server-api.ts, apps/web/src/lib/api-client.ts

API behavior references

  • apps/api/src/auth/auth.controller.ts
  • apps/api/src/tenants/admins.controller.ts
  • apps/api/src/tenants/roles.controller.ts
  • apps/api/src/tenants/tenants.controller.ts
  • apps/api/src/onboarding/onboarding.controller.ts