feat(ui): Korrespondenz redesign — compact strip, log cards, single-person mode #164

Merged
marcel merged 32 commits from feat/issue-162-korrespondenz-redesign into main 2026-03-30 21:38:23 +02:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit 46eb908ff4 - Show all commits

View File

@@ -31,6 +31,7 @@ function handleInput(e: Event) {
if (result.display === '') {
value = '';
errorMessage = null;
onchange?.();
return;
}

View File

@@ -173,6 +173,14 @@ describe('DateInput clearing the date', () => {
expect(value).toBe('');
expect(errorMessage).toBeNull();
});
it('fires onchange when the field is cleared', async () => {
let called = 0;
render(DateInput, { value: '2024-12-20', onchange: () => called++ });
const input = page.getByRole('textbox');
await input.fill('');
expect(called).toBeGreaterThan(0);
});
});
// ─── Hidden input ─────────────────────────────────────────────────────────────