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

@@ -300,14 +300,17 @@ describe.skipIf(!url)("Übernahme aus V70 über die API", () => {
expect(u.aufgaben.ueberfaellig.map((a: { text: string }) => a.text)).toContain("Statik anfragen");
const arten = u.warnungen.map((w: { art: string }) => w.art);
// vorerst ohne Kontostand (Henning, 23.10.2026): keine Kontostand-Warnung, dafür Geldfluss je Woche
expect(arten).toContain("aufgabe");
// überfällige Aufgaben stehen in der Zahlenleiste, nicht mehr unter den Warnungen (UX-Prüfung, 08.11.2026)
expect(arten).not.toContain("aufgabe");
expect(arten).not.toContain("kontostand");
expect(u.brennt.map((b: { art: string }) => b.art)).not.toContain("kontostand");
expect(u.geld).toEqual(expect.objectContaining({ von: expect.any(String), bis: expect.any(String), betrag: expect.any(Number) }));
expect((await app.inject("/api/liquiditaet/lage?wochen=4")).json().mitKontostand).toBe(false);
expect(u.fluss[0]).toEqual(expect.objectContaining({ einnahmen: expect.any(Number), projektkosten: expect.any(Number), laufend: expect.any(Number), ust: expect.any(Number) }));
const e = (await app.inject("/api/einstellungen")).json();
await app.inject({ method: "PUT", url: "/api/einstellungen", payload: { ...e, liquiditaetMitKontostand: true } });
const mit = (await app.inject(`/api/uebersicht?heute=${t.ueberschneidungen[0].ab}`)).json();
expect(mit.warnungen.find((w: { art: string }) => w.art === "kontostand").text).toMatch(/nicht eingetragen/);
expect(mit.brennt.find((w: { art: string }) => w.art === "kontostand")).toMatchObject({ text: "Kontostand nicht eingetragen", ziel: "einstellungen-programmteile" });
await app.inject({ method: "PUT", url: "/api/einstellungen", payload: e });
expect(u.einsatz.tage).toHaveLength(8);
// am Handy bis zu vier Wochen und eine Auswahl aller Mitarbeiter, Kolonnen und Subunternehmer