Commit Graph

3 Commits

Author SHA1 Message Date
df6f70d6c5 Drei Meldungen aus den Aenderungswuenschen vom 09.10.2026
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.
2026-10-13 15:23:20 +02:00
3a4f44318c Derive the filter test's list from the registry it tests
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>
2026-08-16 19:46:24 +02:00
6957b95a97 Let the overview say what "upcoming" means
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>
2026-08-16 18:56:05 +02:00