leistungsbilanz-ts/src/frontend/utils
Grovy311 cd89c4a499 Add buildings above floors and a building structure page
Projects with several buildings could not be structured: floors and rooms
hung directly off the project. Floors can now belong to a building
(migration 0009: table buildings, nullable floors.building_id). Rooms and
distribution boards keep their floor; their building follows from it.
Existing floors stay without a building.

Buildings use the location-structure command store with
project-building.insert/.update/.delete, inverses and persistent Undo/Redo;
deleting a building with assigned floors is rejected. Floor commands carry
buildingId since command version 2. Version 1 floor commands from existing
history predate buildings and are upgraded with buildingId = null before
they are executed and persisted, so forward and inverse keep one version.

Project snapshot schema 7 stores buildings and floor.buildingId; versions
1-6 are upgraded without buildings. Restore and portable transfer include
buildings, and the transfer remaps building ids.

Buildings, floors and rooms move from the project overview to their own
page /projects/:id/struktur with three columns (Gebäude -> Etagen -> Räume)
that filter each other, and a sidebar entry. Floor selects in the board and
room dialogs are grouped by building. Unchanged dialogs close without a
command. Details in docs/building-structure.md; see issue #6.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-26 12:52:34 +02:00
..
api.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00
building-structure.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00
circuit-device-row-move-command.ts Persist device row moves 2026-07-25 21:09:02 +02:00
circuit-editor-history.ts Restore editor history after reload 2026-07-25 21:45:58 +02:00
circuit-grid-insertion.ts Restore circuit drag placement 2026-07-31 08:33:41 +02:00
circuit-grid-model.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
circuit-grid-projection.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
circuit-grid-safety.ts Confirm cross-section device moves 2026-07-22 20:31:55 +02:00
circuit-group-editing.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
circuit-protection-editing.ts Configure circuit protection 2026-07-31 07:45:48 +02:00
circuit-section-renumber-command.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
circuit-section-reorder-command.ts Persist circuit reorders 2026-07-25 21:22:10 +02:00
circuit-structure-command.ts Create clean release database baseline 2026-07-31 14:07:26 +02:00
circuit-structure-projection.ts Fix code-review findings across domain, persistence, server and frontend 2026-08-06 21:31:16 +02:00
distribution-board-component-editing.ts Manage distribution board components 2026-07-31 07:29:25 +02:00
project-version-history.ts Add buildings above floors and a building structure page 2026-09-26 12:52:34 +02:00