Startseite mit Aufgaben, Warnungen und wer macht was; Aufgaben aus V70 übernehmen

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-19 19:01:50 +00:00
parent aedd86a29b
commit 8a4fbafa65
10 changed files with 363 additions and 17 deletions

View File

@@ -125,3 +125,19 @@ describe("Liquidität centgenau wie V70", () => {
expect([...projekte(mit)].filter((p) => !projekte(ohne).has(p)).sort()).toEqual(["A-27-001", "A-OHNE-1"]);
});
});
describe("Aufgaben aus V70 (Stufe 1)", () => {
it("übernimmt Text, Datum, Kontakt, Projekt und Erledigt", () => {
const s = JSON.parse(readFileSync(new URL("./daten/v70-sicherung-2026-10-19.json", import.meta.url), "utf8"));
s.aufgaben = [
{ id: "a1", t: "Statik anfragen", d: "2026-10-22", k: "Ing.-Büro Lange", p: 0 },
{ id: "a2", t: "Gerüst abbestellen", done: true, doneAt: Date.UTC(2026, 9, 1) },
{ id: "a3", t: " " },
];
const u = uebernimmV70(s);
expect(u.aufgaben).toEqual([
{ text: "Statik anfragen (Ing.-Büro Lange)", faellig_am: "2026-10-22", projekt: "p0", erledigt_am: undefined },
{ text: "Gerüst abbestellen", faellig_am: undefined, projekt: undefined, erledigt_am: "2026-10-01T00:00:00.000Z" },
]);
});
});