fix-form-scroll-to-error
🐛 Bug Fixes
[Scroll to the first form error]
Goal: On a short screen, Test connection or Save can fail on a field that is scrolled out of view (storage name). The operator sees nothing.
Solution: When react-hook-form rejects the submit, scroll the first invalid field into the ScrollBox and focus it. Storage editor (all types), workflow init (Next and Test connection name), FTP paths, email chips, and the workflow storage picker.
Files Modified:
ui/src/utils/scrollToFirstFormError.ts- first error path and scrollui/src/pages/storages/StorageEditor.tsx- Test connection and Saveui/src/pages/workflows/stepForms/StepInitForm.tsx- Next, Test connection nameui/src/pages/workflows/stepForms/StepFtpForm.tsx- Add pathui/src/pages/workflows/stepForms/StepEmailForm.tsx- Add mailbox, sender, extensionui/src/pages/workflows/stepForms/StepStorageForm.tsx- storage required