Lockyard

Site map

Who it is for

Staff (admins).

What you can do

  • Switch between Edit layout and Occupancy view.
  • Drag units to move them and resize them with handles.
  • Zoom, pan, and fit the map to the units.
  • Click a unit to open its details.
  • See units colored by status.

How it works

  • Route: /admin/facilities/[id]/map (rendered by components/storage/FacilityDashboard.tsx with tab "map").
  • The editor is components/storage/SiteMap.tsx, which uses react-rnd.
  • Position changes are saved with updateRoomPosition in actions/storage.ts.
  • The map size comes from the facility's map width and height.

Limits

  • The staff map edits positions; the public map does not.
  • Dragging and resizing are disabled in Occupancy view.
  • Units without saved positions are not shown until placed.