Lockyard

Size codes

Who it is for

Staff (admins).

What you can do

  • Create, edit, and delete size codes for a facility.
  • Set dimensions, features, and a default monthly rate.

How it works

  • Route: /admin/facilities/[id]/sizes (rendered by components/storage/FacilityDashboard.tsx with tab "sizes").
  • The manager is components/storage/SizeCodeManager.tsx.
  • Create, update, and delete use createSizeCode, updateSizeCode, and deleteSizeCode in actions/storage.ts.

Limits

  • Size-code names are unique per facility, compared without regard to case.
  • Two facilities may reuse a name.
  • Saving a code onto itself is allowed.