@
Name every draft, and put Vertrag before Angehoerige Two things the dashboard and the hire wizard were getting wrong. The drafts card named the author only on other people's drafts. With foreign and own rows side by side that reads as an inconsistency, not as information: the eye has to work out that a missing name means "mine". Now every row says it, "von mir" on the own ones -- the same wording the notes in the bell already use. In the wizard, Angehoerige stood before Vertrag. What a contract is made of -- entry date, working days, a fixed term -- is on paper before the conversation happens; relatives the person brings along, often on the first day. The optional step came before the one the hire rests on. Swapping them meant touching the part that would have broken silently: the per-step validation was a positional list that had to line up with STEP_LABELS by hand. Reordered labels alone would have left the checks where they were -- "Weiter" on Vertrag would have validated the relatives and waved an empty entry date through, until the database refused it at the end. The checks are keyed by step name now, so they travel with the step. Drafts saved before this land on the step number they stored, which now points at a different page. Nothing is lost -- the payload carries every field -- but somebody resuming an older draft may open on Vertrag where they left Angehoerige. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> @
This commit is contained in:
@@ -97,10 +97,11 @@ describe("baueEntwuerfe", () => {
|
||||
expect(e.vonMir).toBe(true);
|
||||
});
|
||||
|
||||
it("nennt bei eigenen Entwürfen keinen Verfasser", () => {
|
||||
// Der eigene Name stünde an jeder Zeile und sagte nichts.
|
||||
const [e] = baueEntwuerfe([zeile({ created_by: ICH })], ICH);
|
||||
expect(e.autor).toBeNull();
|
||||
it("nennt den Verfasser auch am eigenen Entwurf", () => {
|
||||
// Die Karte schreibt daran zwar „von mir"; die Angabe steht trotzdem
|
||||
// bereit, damit die Zeile nicht davon abhängt, wer sie ansieht.
|
||||
const [e] = baueEntwuerfe([zeile({ created_by: ICH, author_name: "Max Stubhan" })], ICH);
|
||||
expect(e.autor).toBe("Max Stubhan");
|
||||
});
|
||||
|
||||
it("nennt bei fremden Entwürfen den Namen", () => {
|
||||
|
||||
Reference in New Issue
Block a user