0.50.0: Umsetzung der UX-Prüfung (Übersicht, Menü, Einstellungen, Projekte, Liquidität, Handy)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-11-08 14:40:57 +00:00
parent cfa656e98f
commit 3f64143ee1
22 changed files with 570 additions and 163 deletions

View File

@@ -65,13 +65,13 @@ describe("Auslastung je Woche (T16)", () => {
});
describe("freigegebener Freitag (Henning, 21.10.2026)", () => {
it("zählt bei Dauer und Auslastung nur für den Vorgang und seine Leute", () => {
it("zählt bei der Dauer mit, die Auslastung rechnet nur Mo–Do (UX-Prüfung, 08.11.2026)", () => {
const v = { id: "v", start: "2026-11-16", stunden: 38.5, freitage: ["2026-11-20"] };
// Jan arbeitet freitags 6,5 Std.: Mo–Do 32 + Fr 6,5 = 38,5 in einer Woche
expect(dauerNachBesetzung(v, [{ vorgang_id: "v", kontakt_id: "jan", personen: 1 }], p, W)).toBe(5);
const w = auslastung("2026-11-16", "2026-11-22", ["jan", "tim"],
[{ id: "v", anfang: "2026-11-16", ende: "2026-11-20", dauer: 5, freitage: ["2026-11-20"] }],
[{ vorgang_id: "v", kontakt_id: "jan", personen: 1 }], p, W);
expect(w[0]!.personen).toEqual([{ kontakt_id: "jan", geplant: 38.5, verfuegbar: 38.5 }, { kontakt_id: "tim", geplant: 0, verfuegbar: 16 }]);
expect(w[0]!.personen).toEqual([{ kontakt_id: "jan", geplant: 32, verfuegbar: 32 }, { kontakt_id: "tim", geplant: 0, verfuegbar: 16 }]);
});
});