From b50b5fcd2180f45a65bbad1dbf12875c5ff83686 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Tue, 20 Oct 2026 08:39:06 +0200 Subject: [PATCH] chore(deps): drop four dependencies nothing imports react-hook-form, @hookform/resolvers, next-themes and @vitejs/plugin-react have no import anywhere in src/, scripts/, tests/, e2e/ or the build and test configs; knip only stayed quiet because each sat on its ignore list. Forms keep a controlled draft and validate with the shared Zod schemas, and the theme bootstrap is hand-written. The ignore entries, the comments that still named the form library, and the guideline text go with them. --- docs/ui-guidelines.md | 6 +- knip.jsonc | 4 - package.json | 4 - pnpm-lock.yaml | 150 ------------------ pnpm-workspace.yaml | 5 +- .../dashboard/quick-entry-forms.lazy.tsx | 2 +- src/components/ui/date-field.tsx | 4 +- .../vaccinations/vaccination-form.tsx | 2 +- 8 files changed, 9 insertions(+), 168 deletions(-) diff --git a/docs/ui-guidelines.md b/docs/ui-guidelines.md index f908d4c2a..4adc25d80 100644 --- a/docs/ui-guidelines.md +++ b/docs/ui-guidelines.md @@ -132,7 +132,8 @@ helper text explaining why. Silent disabled buttons frustrate users. ### 2.2 Inputs and forms -We use `react-hook-form` + Zod schemas from `src/lib/validations/`. +Forms keep a controlled draft in component state and validate it with the +Zod schemas from `src/lib/validations/`; the server's schema is the authority. Wrap inputs in `