refactor(leitungsrechner): professionelles React-Panel + zentrale Berechnung
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 33m10s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 33m10s
- Neue lib src/lib/hose-calc.ts: EINZIGE Quelle der Druckformel (typisiert), inkl. Schlauchanzahl aus lengthPerPieceM (Feld war vorher tot) + 10% Verlegereserve - MeasurePanel als echte React-Komponente ersetzt das innerHTML/Inline-CSS-Overlay in map-view.tsx (~130 Zeilen DOM-Gebastel entfernt) - Schlauchtyp im Messergebnis wählbar (Standard vorausgewählt) statt alle gestapelt - Strahlrohrdruck einstellbar (4/5/6/8 bar), Ergebnis rechnet live neu - Höhendaten-Quelle ehrlich ausgewiesen; sichtbare Warnung wenn keine Höhendaten (vorher stilles "alles flach") - hose-settings-dialog nutzt die zentrale Formel (Duplikat entfernt) - Version 1.4.9 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
11
ROADMAP.md
11
ROADMAP.md
@@ -52,6 +52,17 @@ Legende Aufwand: 🟢 klein · 🟡 mittel · 🔴 gross
|
||||
- Live-Sync für Journal existierte bereits (Socket → journal-refresh).
|
||||
- _Offen (Kür): echtes gleichzeitiges Zeichnen (Co-Drawing) — bewusst nicht gebaut._
|
||||
|
||||
## Zusatz – Leitungsrechner professionalisiert ✅
|
||||
|
||||
- [x] Formel zentralisiert in `src/lib/hose-calc.ts` (eine Quelle, typisiert, testbar)
|
||||
- [x] Ergebnis-Panel als React-Komponente (`MeasurePanel`) statt innerHTML/Inline-CSS
|
||||
- [x] Schlauchtyp wählbar (Standard ★ vorausgewählt) statt alle gestapelt
|
||||
- [x] Strahlrohrdruck einstellbar (4/5/6/8 bar)
|
||||
- [x] Schlauchanzahl aus `lengthPerPieceM` + 10% Verlegereserve (Feld war vorher tot)
|
||||
- [x] Ehrliche Höhendaten-Anzeige (Quelle bzw. Warnung „keine Höhendaten")
|
||||
- Offen (später): Berechnungsparameter pro Mandant, mehrere Leitungen/Pumpenkette,
|
||||
Elevation-Proxy mit Cache, Ergebnis als speicherbares Lageplan-Objekt.
|
||||
|
||||
## Phase 5 – Kür
|
||||
|
||||
- [ ] **5.1 – Linien-Typ-Abfrage** 🟡 (Rettungsachse / Leitung / normal)
|
||||
|
||||
Reference in New Issue
Block a user