forked from jappel/leistungsbilanz-ts
Replace Revit CSV backend with Linear XLSX
This commit is contained in:
parent
52d3b1a270
commit
1cfeb06ec7
65 changed files with 4764 additions and 3717 deletions
32
AGENTS.md
32
AGENTS.md
|
|
@ -295,7 +295,10 @@ not change the project revision or undo/redo stacks. Restoring a server-stored
|
|||
snapshot verifies its checksum and the current-state hash, replaces supported
|
||||
project data atomically and records a new `restore` revision with a complete
|
||||
inverse command. Restore can therefore be undone and redone after a restart.
|
||||
Current snapshot schema version 9 additionally stores
|
||||
Current snapshot schema version 10 stores the Linear-XLSX configuration and
|
||||
external state with Worksharing-ID identity. Empty versions 1 to 9 are upgraded;
|
||||
versions containing legacy CSV configuration or external CSV state are rejected
|
||||
with a German migration error. Version 9 additionally stores
|
||||
`feedingDistributionBoardId` and `feedingCircuitId` on distribution boards;
|
||||
versions 1 to 8 are upgraded with both references set to `null`. Version 8
|
||||
stores the optional net room area `rooms[].areaM2` (see
|
||||
|
|
@ -307,8 +310,8 @@ distribution-board info fields `boardNumber`, `location`, `fedFrom` and
|
|||
`remark` and the project cover fields `siteAddress`, `workStage`,
|
||||
`projectLead` and `projectEditor`; all older supported versions are upgraded
|
||||
with `null` for these fields.
|
||||
Stored named and automatic snapshots of every supported version (1 to 9)
|
||||
remain restorable; they are upgraded while parsing. Version 5 stores
|
||||
Stored named and automatic snapshots of versions 1 to 9 remain restorable when
|
||||
they contain no legacy CSV state; they are upgraded while parsing. Version 5 stores
|
||||
the manual quantity share of every CircuitDeviceRow. Version 4 snapshots are upgraded with
|
||||
`manualQuantity = quantity`; they already contain the complete confirmed
|
||||
external-model source, import batches, room mappings and objects. Version 3
|
||||
|
|
@ -320,17 +323,17 @@ supported versions contain circuit-group identity, distribution-board components
|
|||
separate circuit/component protection records. Portable duplicate imports
|
||||
remap component ids and protection-owner references together with the existing
|
||||
project graph.
|
||||
The current runtime still contains the legacy Revit-CSV/IfcGUID foundation:
|
||||
project configuration, preview, confirmed initial import, external objects and
|
||||
the three row-assignment commands. It remains the audited starting point, not
|
||||
the Phase-14 target. Do not extend its CSV transport or IFCGUID identity model.
|
||||
The approved cutover is Linear XLSX with exact case-sensitive Worksharing-ID
|
||||
identity. See `docs/spec/revit-excel-integration-requirements.md` and
|
||||
R3 replaced the runtime configuration and persistence foundation with Linear
|
||||
XLSX and exact case-sensitive Worksharing-ID identity. Migration `0014` drops
|
||||
the old development-only external CSV data after resetting linked row totals to
|
||||
their manual share. Snapshot schema 10, restore and project transfer use the
|
||||
new state; non-empty legacy CSV snapshots and legacy CSV history entries are
|
||||
rejected with a German error. The backend CSV parser and routes are removed.
|
||||
The old project-page frontend remains only until its replacement in R4; do not
|
||||
reconnect it to runtime CSV endpoints. See
|
||||
`docs/spec/revit-excel-integration-requirements.md` and
|
||||
`docs/spec/revit-excel-phase-14-plan.md`.
|
||||
|
||||
During R1/R2 no database or runtime schema changes are made. R3 will replace
|
||||
the legacy configuration and transport additively, reject non-empty legacy CSV
|
||||
snapshot/history state with a German error, and introduce snapshot schema 10.
|
||||
The target configuration has no independent version counter; `expectedRevision`
|
||||
invalidates stale plans, and each import batch stores a configuration copy.
|
||||
Only the newest import batch retains workbook bytes and the full matrix; older
|
||||
|
|
@ -582,9 +585,8 @@ Critical target rules:
|
|||
produce warnings and are skipped. Only missing circuit columns for the
|
||||
selected combined/separate mode block export.
|
||||
- Missing GZF defaults visibly to 1 without separate confirmation.
|
||||
- R2 must generate a changed return workbook from the local sample. The user
|
||||
tests it in Linear before R3. If Linear rejects it, propose direct OOXML
|
||||
modification of the original workbook before starting R3.
|
||||
- The corrected R2 return workbook was successfully imported into Linear on
|
||||
2026-09-30; R3 is complete and R4 is the next package.
|
||||
- All confirmed writes use typed project commands with `expectedRevision`,
|
||||
complete inverse data and the shared project-command transaction boundary.
|
||||
- Do not add automatic circuit planning, Revit circuit adoption, multi-source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue