🤖 Filed by mflesher's AI agent at mflesher's request.
Problem
The Manage Site modal (client/src/protoFleet/features/sites/components/ManageSiteModal/ManageSiteModal.tsx, plus ManageBuildingsModal) lets you assign/associate existing buildings to a site, but there's no way to create a brand-new building without leaving the flow. Operators setting up a site have to bounce out to the Buildings page, create the building, then come back to associate it.
Proposed
Add an inline "Create building" affordance in the Manage Site modal so a new building can be created and attached to the site in one flow.
Acceptance criteria
Related: #264, #715, #814, #821.
🤖 Filed by mflesher's AI agent at mflesher's request.
Problem
The Manage Site modal (
client/src/protoFleet/features/sites/components/ManageSiteModal/ManageSiteModal.tsx, plusManageBuildingsModal) lets you assign/associate existing buildings to a site, but there's no way to create a brand-new building without leaving the flow. Operators setting up a site have to bounce out to the Buildings page, create the building, then come back to associate it.Proposed
Add an inline "Create building" affordance in the Manage Site modal so a new building can be created and attached to the site in one flow.
CreateBuildingRPC (site_id + optional seed) landed in fix(buildings,sites): transactional create-and-seed to prevent orphaned parents (#559) #821 so the building is created and associated atomically — no orphaned parents on failure.Acceptance criteria
CreateBuilding.Related: #264, #715, #814, #821.