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.
This commit is contained in:
Marc-André Bombeck committed 2026-10-20 08:39:06 +02:00
1 parent 9b93247ae0
commit b50b5fcd21
8 files changed
+9 -168

No files matched your search

@@ -4,7 +4,7 @@
* The quick-entry forms, loaded when a sheet first opens rather than with the
* page. The dashboard and the bottom bar's capture picker are on nearly every
* authenticated paint, and both used to import all five forms eagerly (each
* with react-hook-form, zod, its pickers and its own queries) for sheets most
* with zod, its pickers and its own queries) for sheets most
* visits never open.
*
* Client-only (`ssr: false`): every sheet is closed on the server render. The
+2 -2
View File
@@ -38,7 +38,7 @@ const DateFieldCalendar = dynamic(
*
* The committed VALUE is always ISO `yyyy-MM-dd` — identical to the native
* `<input type="date">` contract `<DateInput>` ships — so this is a drop-in
* for `<DateInput>` and existing react-hook-form wiring is unchanged.
* for `<DateInput>` and existing form wiring is unchanged.
*
* How it works:
* - A text overlay paints the formatted display string (or the placeholder)
@@ -52,7 +52,7 @@ const DateFieldCalendar = dynamic(
* quirks) is gone.
* - A hidden mirror input carries `name` + the ISO value so any caller that
* relies on native form submission still sees a normal field; the forwarded
* ref points at it for react-hook-form `register()` parity.
* ref points at it, so a caller reads it like any native input.
*
* Height / a11y / target-size parity with `<DateInput>`: the same
* `min-h-11 h-11 sm:min-h-10 sm:h-10` floor (WCAG 2.5.5 — 44 px on mobile,
@@ -17,7 +17,7 @@
* new definition can be added from it without leaving the form.
*
* Follows the encounter form's controlled-draft shape rather than a
* react-hook-form instance — the sibling surface this plan cites as its
* form-library instance — the sibling surface this plan cites as its
* precedent uses a draft, and the server's Zod schema is the validation
* authority either way. The client guard is for the two properties a person
* feels immediately: a date is present, and the vaccine is named somehow.