Commit Graph

6 Commits

Author SHA1 Message Date
d25778d2fa Mehrere Notfallkontakte, Planstelle nicht vor ihrer Einheit, Anstehend fuehrt in die Historie, Uebernahme, Meine Notizen
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 11m47s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m19s
CI / Ausrollen (push) Successful in 7s
- Notfallkontakte: eigene Tabelle employee_emergency_contacts (Migration
  20261019160000), beliebig viele je Person, angelegt, geaendert und
  entfernt wie Angehoerige (add_/update_/delete_emergency_contact, mit
  Historie und Protokoll). Bestand uebernommen. Verhaeltnis-Liste wie bei
  den Angehoerigen (Ehepartner, Lebenspartner, Kind, Sonstige mit Freitext).
  Neueinstellung, Wiedereintritt, Import und Mitarbeiterexport schreiben
  und lesen die Tabelle.
- Planstelle beginnt nicht vor und nicht nach dem Bestehen ihrer
  Organisationseinheit: Ausloeser an om_positions (Migration
  20261019150000), gilt fuer Anlegen, Aendern und Klonen.
- Anstehend auf der Uebersicht: Klick oeffnet die Akte im Reiter Historie,
  bei einer Wiedervorlage im Reiter HR-Notizen (?tab=).
- Uebernahme: Vertrag zeigt Besetzungsart und "Uebernahme Ja/Nein" aus der
  Historie; die Kachel Eintritte (YTD) zaehlt Uebernahmen mit.
- Glocke: "Meine Notizen" schaltet bei hinzugewaehlten Kollegen auf nur
  die eigenen Notizen um.

Rauchtest Schritt 18.

Geprueft: lint, tsc, types:check, 921 Tests, Waechter
2026-10-19 17:17:02 +02:00
002472741a Bezeichnungen ohne Gendern in Oberflaeche und Exporten
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 12m0s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m27s
CI / Ausrollen (push) Successful in 5s
Fachlich vorgegeben: nicht gendern, auch in den Exporten. Gespeichert
bleibt der Wert der Datenbank ("Angestellte:r", "Arbeiter:in",
"Praktikant:in", "Ehepartner:in", "Lebenspartner:in") - er steht in
Aufzaehlungstypen, Pruefbedingungen, der Historie und der Sicht fuer die
IT. Uebersetzt wird nur die Anzeige.

lib/ohne-gendern.ts: eine Regel ueber den Text (":innen", ":in", "e:r",
"e:n"), damit auch Texte aus der Datenbank wie "Angehoerige:r
hinzugefuegt" und Feldnamen der Historie ohne Gendern erscheinen.
Auswahllisten senden weiter den gespeicherten Wert.

Angewendet in Formularen, Historie, Protokoll, Berichten und Filtern,
Mitarbeiter- und Ereignisexport, Importvorlage; der Import nimmt beide
Schreibweisen an. Feste Texte (Menue, Liste, Notizen, Anmeldung)
direkt umformuliert.

Geprueft: lint, tsc, types:check, 885 Tests, Waechter
2026-10-19 12:24:29 +02:00
muena
86177d648e Uebergabe-Bereinigung: Kommentare, Geheimnisse, CSP, Dokumentation
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.
2026-10-14 09:42:51 +02:00
47db290821 Kommentare ohne Namen, Daten und Verweise nach innen
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.
2026-10-13 17:33:19 +02:00
e8e675fd07 Turn the note filter around: yours by default, colleagues added
All checks were successful
CI / Lint, Typen, Tests, Build (push) Successful in 11m36s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m10s
Yesterday's version had it the other way — everyone visible, untick to
hide. The decision from the business side is the opposite: you see your
own notes, and you tick the colleagues you also want. So note_mutes
becomes note_subscriptions and the predicate flips from `not exists` to
`exists`.

The existing rows are not carried over. The meaning inverts rather than
the sign: converting faithfully ("everyone except the muted") would write
almost the whole roster into the new table and reproduce exactly the state
the change is meant to end. Anyone opening the setting tomorrow would
think it had not taken effect. The table is a day old; what is lost is a
few ticks from trying it out.

What this costs is worth saying plainly: the silent case that could not
happen under exceptions can happen now. Do not tick a colleague and you
will not see her follow-ups — not while she is on holiday either. That is
the flip side of the decision, and it is written down in the migration
rather than discovered later.

Each note now says who wrote it. Own notes read "von mir" rather than
repeating your own name, which would sit on every second line and tell
nobody anything. The flag is computed on the server: the user id is
already there, and threading it through four components for one word is a
poor trade. The counter on the button follows the same turn — "+2" for
what you added, nothing when you added nothing.

Verified: 21 tests, five mutation-checked (restoring `not exists`,
dropping the own-notes clause, inverting the default, hiding the author,
and printing your own name instead of "von mir" each turn them red). 489
tests, typecheck, lint, schema drift and build clean. The migration is
reviewed but not run — no reachable database here.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-10 11:36:38 +02:00
99b1df9735 Choose whose notes reach your bell
Some checks failed
CI / Lint, Typen, Tests, Build (push) Failing after 5m49s
CI / Migrationen auf leerer Datenbank (push) Successful in 10m24s
The bell is a shared pile: every active HR person sees every open note,
regardless of who wrote it. That was agreed and it stays the default —
this narrows it, it never widens it. You can now untick colleagues whose
notes you do not want to see.

What gets stored is the *exceptions*, not the selection. The difference
shows the day someone new joins HR: had the selection been stored, she
would be invisible to everyone until each person ticked her, and nobody
would notice her follow-ups piling up. This way she is visible from day
one and hiding her is a deliberate act. Same reasoning that made notes a
shared inbox in the first place — the silent gap is worse than a row too
many.

Own notes always come through: `note_mutes` rejects a self-reference, and
the predicate says so again rather than depending on a check constraint
staying put. Notes with no author come through too — hiding one because
nobody knows who wrote it is exactly the loss this list exists to prevent.

The rule lives in lib/notes.ts as one SQL expression because two places
need it: the bell in the header and the "Anstehend" card on the dashboard.
Two copies drift, and then the card counts something the bell does not
show.

No SQL function and no audit row, unlike anything that touches employee
data — this is a personal display preference, and an audit trail recording
every tick would make finding real changes harder. Same pattern as saved
reports and hire drafts, and the owner policy on note_mutes means a row
for someone else cannot be written even with invented values.

The checkbox flips immediately and flips back if saving fails; the list
gets clicked through several at a time and a round trip per tick feels
like hesitation.

Verified: 19 tests, five mutation-checked (or→and, dropping the own-notes
clause, inverting `not exists`, inverting the default, and losing the
email fallback each turn them red). Typecheck, lint, schema drift, 477
tests and the build are clean. Not seen in a browser: login goes through
the company account and the database is unreachable — the migration is
reviewed but has not been run.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 20:03:24 +02:00