ustaxcourt / ef-cms

An Electronic Filing / Case Management System.
https://dawson.ustaxcourt.gov/
Other
88 stars 47 forks source link

10074 bug: Auto Scroll Issues on Petitions Clerk Create Case Form (and more) #5382

Closed Mwindo closed 1 month ago

Mwindo commented 1 month ago

TL;DR: Fixing some quite a few form validation bugs/quirks.


The goals of this PR:

In the future, we will probably move away from the ErrorNotification altogether--similar to how things work with the new petitioner flow--but this at least keeps behavior consistent until then and hopefully will make a refactor easier.


An outline of the issues addressed:

  1. After (almost) every field edit on the petitions clerk create case form, we were scrolling back to the ErrorNotification banner. (This was the original error of 10074). 2. In certain cases on the petitions clerk create case form, the form scrolled weirdly. (This was design debt 10357.) Not fixed!
  2. In the PetitionsPayment forms, blank Payment Dates and Payment Methods led to 400 errors rather than validation errors. (See video below.)

https://github.com/user-attachments/assets/f6888b74-2aa3-4bea-b6ae-90ed7cdf33e7

  1. Certain onBlurs/onChanges weren't providing live validation. (E.g., Status Report Order validation was not providing live validation updates.) There are probably still some that I have missed.