[PR #30631] refactor(web): migrate legacy forms to TanStack Form #32905

Closed
opened 2026-02-21 20:52:18 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/30631

State: closed
Merged: Yes


Closes #30629

Summary

Migrated the remaining legacy forms (installForm.tsx and ForgotPasswordForm.tsx) from react-hook-form to @tanstack/react-form. This standardizes the form architecture across the application and allows for the removal of unused dependencies.

Changes

  • Migrated installForm.tsx to use useAppForm
  • Migrated ForgotPasswordForm.tsx to use useAppForm
  • Removed react-hook-form and @hookform/resolvers from package.json
  • Updated pnpm-lock.yaml

Verification

  • Verified form validation and submission locally
  • Passed pnpm type-check
  • Passed pnpm lint
**Original Pull Request:** https://github.com/langgenius/dify/pull/30631 **State:** closed **Merged:** Yes --- Closes #30629 ## Summary Migrated the remaining legacy forms (`installForm.tsx` and `ForgotPasswordForm.tsx`) from `react-hook-form` to `@tanstack/react-form`. This standardizes the form architecture across the application and allows for the removal of unused dependencies. ## Changes - Migrated `installForm.tsx` to use `useAppForm` - Migrated `ForgotPasswordForm.tsx` to use `useAppForm` - Removed `react-hook-form` and `@hookform/resolvers` from `package.json` - Updated `pnpm-lock.yaml` ## Verification - Verified form validation and submission locally - Passed `pnpm type-check` - Passed `pnpm lint`
yindo added the pull-request label 2026-02-21 20:52:18 -05:00
yindo closed this issue 2026-02-21 20:52:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#32905