0.34.0: Übersicht mit Projektfarben, zweizeiligen Aufgaben und Geldfluss ohne Kontostand
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-23 06:55:07 +00:00
parent 7314a63901
commit e348fd040c
15 changed files with 205 additions and 27 deletions

View File

@@ -240,8 +240,15 @@ describe.skipIf(!url)("Übernahme aus V70 über die API", () => {
const u = (await app.inject(`/api/uebersicht?heute=${t.ueberschneidungen[0].ab}`)).json();
expect(u.aufgaben.ueberfaellig.map((a: { text: string }) => a.text)).toContain("Statik anfragen");
const arten = u.warnungen.map((w: { art: string }) => w.art);
expect(arten).toEqual(expect.arrayContaining(["aufgabe", "kontostand"]));
expect(u.warnungen.find((w: { art: string }) => w.art === "kontostand").text).toMatch(/nicht eingetragen/);
// vorerst ohne Kontostand (Henning, 23.10.2026): keine Kontostand-Warnung, dafür Geldfluss je Woche
expect(arten).toContain("aufgabe");
expect(arten).not.toContain("kontostand");
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/);
await app.inject({ method: "PUT", url: "/api/einstellungen", payload: e });
expect(u.einsatz.tage).toHaveLength(8);
expect(u.einsatz.zeilen.map((z: { anzeige: string }) => z.anzeige)).toContain("Henning Schaarschmidt");
});