Lockyard

Settings

Who it is for

Staff (admins).

What you can do

  • Edit facility name, address, status, and map size.
  • Edit move-in, reservation, and billing rules.
  • Delete a facility from the Danger zone.

How it works

  • Route: /admin/facilities/[id]/settings renders components/storage/FacilitySettings.tsx.
  • Updates use updateFacility and upsertFacilityPolicy in actions/storage.ts.
  • Delete uses deleteFacilityIfEmpty in actions/facilityDelete.ts.

Limits

  • The Danger zone card is on this page, below the policy form. The button is Delete facility.
  • Rooms and size codes do not block delete. A tenant, reservation, or lease does.
  • The tour must show that card and must not click the button.