0.19.0: einzelne Freitage je Vorgang freigeben
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Nur für diesen Vorgang zählt der Freitag als Arbeitstag (Dauer, Ende, Nachfolger,
Auslastung, Kalender-Abo, Wer macht was, Einsätze am Handy).

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-21 16:34:10 +00:00
parent b2624e48e8
commit feb19241c5
31 changed files with 186 additions and 59 deletions

View File

@@ -2,7 +2,7 @@
// Die Links enthalten ein Geheimnis statt einer Anmeldung, weil Outlook classic sich bei
// Internetkalendern nicht anmelden kann.
import { type Datum, plusTage } from "../domain/datum.js";
import { type Arbeitswoche, istArbeitstag } from "../domain/kalender.js";
import { type Arbeitswoche, istArbeitstag, wocheVon } from "../domain/kalender.js";
import { type Termin, kalender } from "../domain/ical.js";
import type { Pool } from "./db.js";
import { terminplan } from "./terminplan.js";
@@ -45,7 +45,7 @@ export async function baustellenKalender(pool: Pool, woche: Arbeitswoche): Promi
bs.length ? `Besetzung: ${bs.map((b) => `${b.anzeige}${personen(b)}${b.freigegeben ? "" : " (vorgemerkt)"}`).join("; ")}` : meilenstein ? "" : "Besetzung: noch offen",
meilenstein ? "Meilenstein" : `Dauer: ${Math.ceil(v.dauer)} ${Math.ceil(v.dauer) === 1 ? "Arbeitstag" : "Arbeitstage"}`,
].filter(Boolean).join("\n");
arbeitsbloecke(v.anfang, v.ende, woche).forEach(([von, bis], i) =>
arbeitsbloecke(v.anfang, v.ende, wocheVon(v, woche)).forEach(([von, bis], i) =>
termine.push({ uid: `${v.id}-${i}@betrieb.schaarschmidt-holzbau.de`, von, bis, titel, beschreibung }));
}
return kalender("Baustellen", termine);