Kommentare beschreiben den heutigen Stand und warum er so ist, nicht mehr
die Entwicklungsgeschichte: keine Datumsangaben zu Ereignissen, keine
Vorfaelle an Testpersonen, keine Lieferantensicht, keine internen Namen
oder Plattformen. In Migrationen nur Kommentare ausserhalb von
Dollar-Quoting; Kommentare in Funktionskoerpern nur dort, wo ihr Text in
keiner anderen Migration als Anker vorkommt.
- Andreis Anpassungen aus windows-uebergabe nach master uebernommen.
- LOLYO-Startpasswort kommt aus LOLYO_STARTPASSWORT statt aus dem Code;
ohne Wert lehnt der Export mit Hinweis ab.
- Beispiel- und erzeugte E-Mail-Adressen ohne Kundendomain.
- Content-Security-Policy wird durchgesetzt; form-action fest mit
login.microsoftonline.com, weil das Paket ohne Umgebungswerte gebaut
wird. Geprueft im Browser: alle Seiten ohne Verstoss, Weiterleitung zu
Microsoft geht durch.
- migrate.mjs: einmalige Uebernahme der alten Buchfuehrung entfernt (seit
20260907100000 ohne Wirkung).
- freischalten.ps1 vergibt und entzieht den HR-Zugang (-Entziehen) und
protokolliert beides im Audit-Log.
- docs/security-review.md -> docs/sicherheitskonzept.md: beschreibt den
heutigen Stand ohne offene Punkte. README, entra-sso.md und
deploy/windows/README.md ohne Widersprueche (Leserolle der IT,
Freischaltung, Konto des Nachtlaufs), Abnahme-Checkliste statt
"noch offen".
Geprueft: lint, tsc, types:check, 823 Unit-Tests, Waechter (412 Dateien,
keine Funde), alle 114 Migrationen auf leerem PostgreSQL 18 (zweiter Lauf
leer), rauchtest.sql und vertragsangaben.sql bestanden.
Vorbereitung der Uebergabe. Die Begruendungen bleiben vollstaendig stehen --
sie sind der Wert dieser Kommentare; entfernt ist nur, woher sie stammen.
"Gemeldet von <Name> am <Datum>: eine halb ausgefuellte Verteilung
sieht aus wie eine Angabe"
-> "Eine halb ausgefuellte Verteilung sieht aus wie eine Angabe"
Betroffen: 27 Namensnennungen in 21 Dateien, Verweise auf ein internes
Testprotokoll (B.02, C.08, D.06, E.07, H.05, H.06, N.02), Datumsangaben, die
eine Chronik der Defekte ergeben, und drei Verweise auf eine Datei, die nicht
mitgeht. Datumsangaben als *Daten* bleiben: die Excel-Epoche, die Beispiele
zur Datumserkennung, die Fixtures in den Tests.
Zwei Funde nebenbei:
actions/auth.ts beschrieb chk_passwort_pfad_endet als geltende Bedingung --
20260908140000 hat sie entfernt. Der Kommentar sagte seither das Gegenteil
dessen, was im Schema steht.
tests/unit/reports.test.ts gruppierte nach "Suesswaren", einem Wert, den
20261007090000 abgeschafft hat. Der Test war gruen, weil groupKeyFor nur
durchreicht -- er prueft jetzt einen Wert, den es gibt.
README verspricht kein npm run test:e2e mehr: weder Skript noch Playwright
sind vorhanden.
Uebersicht: ein Klick waehlt aus, er waehlt nicht ab. Vorher war alles an
und ein Klick blendete eine Art aus -- wer nur Eintritte sehen wollte,
musste drei andere einzeln wegklicken. Jetzt zwei Zustaende ohne
verstecktes Zusatzzeichen: ein Klick zeigt nur diese Art, ein zweiter auf
dieselbe zeigt wieder alle.
Austrittsart: "Freiwillig/Unfreiwillig" heisst jetzt "Wunsch
Dienstnehmer/Wunsch Dienstgeber". Nur beschriftet, nicht umbenannt -- die
gespeicherten Werte stehen seit Juli in Historie, Audit und im
Cornerstone-Export, und ein Umbenennen gaebe alten Zeilen eine neue
Bedeutung.
Organigramm: gewaehlte Sicht, aufgeklappte Knoten und Darstellungsart
ueberleben den Weg zu einer Person und zurueck. Der Speicher ist dabei die
Quelle und keine Kopie im State: der naheliegende Bau -- im Effekt lesen,
in useState schreiben -- ist genau das, wovor react-hooks/set-state-in-effect
warnt, und haette bei jedem Aufbau kurz den zugeklappten Baum gezeigt.
Adding the follow-up kind turned one of these tests green-for-the-wrong-
reason and one red: both had the three kinds written out by hand, so
"all of them are selected" no longer meant what the name said. That is
the failure mode a hand-copied list has — it does not break loudly, it
drifts.
The list now comes from ANSTEHEND_ARTEN, and the two cases that depend
on completeness build their input from it.
I committed the previous change with this test red. That was wrong; it
should have blocked the commit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Sixty days and all three kinds was a guess, and it was the only one on
offer. Payroll cares about next month; the person filling a vacancy
cares about entries and nothing else. The card now takes a period and a
set of kinds.
The choice lives in the address rather than in the browser, because it
has to: the page is built on the server, and ninety days pulls in rows
that were never loaded at sixty. Filtering client-side would silently
cap the answer at whatever the first query happened to fetch. It also
means a filtered overview can be sent to someone and opened again the
same way.
Deselecting every kind returns to all of them. An empty card is not an
answer to a question nobody asked, and the way back would otherwise be
one click further than the way in. The default period and the full set
are absent from the URL instead of written into it, so a shared link
carries only what was actually chosen.
Anything the address cannot be trusted to hold is rejected: an unknown
period falls back to sixty rather than reaching the query, which would
otherwise be an invitation to ask for ten years of rows through a link.
Eight rows still, with a count of what did not fit underneath — this is
an overview, and the employee list is where lists belong.
Not verified in a browser: the built-in preview has no company sign-in,
so the page redirects to the login before it renders. Types, lint and
386 tests pass, and the filter's behaviour is covered directly.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>