From a1c3622f05d8ddbeceb90286ab6c2e511f09b227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Wed, 30 Sep 2026 15:49:47 +0200 Subject: [PATCH] Move input validation into lib --- src/components/AssigneeInput.svelte | 40 ++++------------------ src/components/LabelInput.svelte | 26 +++----------- src/lib/inputValidation.ts | 37 ++++++++++++++++++++ src/views/auth/CreateIdentity.svelte | 15 +++----- tests/unit/inputValidation.test.ts | 51 ++++++++++++++++++++++++++++ 5 files changed, 103 insertions(+), 66 deletions(-) create mode 100644 src/lib/inputValidation.ts create mode 100644 tests/unit/inputValidation.test.ts diff --git a/src/components/AssigneeInput.svelte b/src/components/AssigneeInput.svelte index bb2573c30..2e8a44b45 100644 --- a/src/components/AssigneeInput.svelte +++ b/src/components/AssigneeInput.svelte @@ -1,12 +1,9 @@