chore: "Buch"-Erwähnungen aus UI & Kommentaren entfernen
User-sichtbare Hinweise (Meilenstein-Mindestanzahl, Stakeholder-Empty, Freitags-Warnung) ohne Quellenangabe umformuliert; Dev-Kommentare von "Buch Kap. X" auf "Leitfaden" geändert. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
d8a224d5af
commit
390a99bf5e
5 files changed
+14
-14
No files matched your search
@@ -96,14 +96,14 @@ export const CHANGE_ENTSCHEIDUNG_META: Record<ChangeEntscheidung, { label: strin
|
||||
};
|
||||
export const CHANGE_ENTSCHEIDUNGEN: ChangeEntscheidung[] = ['offen', 'genehmigt', 'abgelehnt'];
|
||||
|
||||
// Datums-Warnungen nach Buch-Regeln (keine Meilensteine Freitag / vor Feiertagen).
|
||||
// Datums-Warnungen (keine Meilensteine Freitag / vor Feiertagen).
|
||||
export function dateWarnings(iso: string | null | undefined): string[] {
|
||||
if (!iso) return [];
|
||||
const d = new Date(`${iso}T00:00:00`);
|
||||
if (Number.isNaN(d.getTime())) return [];
|
||||
const out: string[] = [];
|
||||
const wd = d.getDay(); // 0=So .. 6=Sa
|
||||
if (wd === 5) out.push('Fällt auf einen Freitag — Buch-Regel: keine Meilensteine/Abgaben freitags.');
|
||||
if (wd === 5) out.push('Fällt auf einen Freitag — besser keine Meilensteine/Abgaben freitags.');
|
||||
if (wd === 0 || wd === 6) out.push('Fällt aufs Wochenende.');
|
||||
const month = d.getMonth();
|
||||
const day = d.getDate();
|
||||
|
||||
@@ -215,7 +215,7 @@ export function ProjektRoute() {
|
||||
);
|
||||
}
|
||||
|
||||
// --- Modus (Buch Kap. 4: jederzeit ans Team kommuniziert) -------------------
|
||||
// --- Modus (Leitfaden: jederzeit ans Team kommuniziert) ---------------------
|
||||
function ModusControl({ projectId, modus }: { projectId: string; modus: ProjectModus }) {
|
||||
const utils = trpc.useUtils();
|
||||
const set = trpc.project.setModus.useMutation({
|
||||
@@ -849,8 +849,8 @@ function StakeholdersSection({ projectId }: { projectId: string }) {
|
||||
{list.length > 0 && <StakeholderMatrix list={list} />}
|
||||
{list.length === 0 && !adding && (
|
||||
<p className="text-sm text-[var(--color-ink-muted)]">
|
||||
Noch keine Stakeholder erfasst. Buch: alle, die auch nur entfernt mit dem Projekt zu
|
||||
tun haben, haben Interessen, Macht und Einfluss.
|
||||
Noch keine Stakeholder erfasst. Alle, die auch nur entfernt mit dem Projekt zu tun
|
||||
haben, haben Interessen, Macht und Einfluss.
|
||||
</p>
|
||||
)}
|
||||
<div className="space-y-2">
|
||||
@@ -1602,7 +1602,7 @@ function MilestonesSection({
|
||||
{milestones.length < 2 && (
|
||||
<p className="mb-2 flex items-start gap-1.5 text-xs text-[var(--color-ampel-amber-fg)]">
|
||||
<AlertTriangle size={13} className="mt-0.5 shrink-0" />
|
||||
Buch-Regel: jedes Projekt hat mindestens 2 Meilensteine (Anfang & Ende).
|
||||
Jedes Projekt sollte mindestens 2 Meilensteine haben (Anfang & Ende).
|
||||
</p>
|
||||
)}
|
||||
<Card.Root>
|
||||
|
||||
Reference in new issue
Block a user