Starting with the job builder because it's the most high-impact, we need an elegant and generic way to detect when a form has unsaved changes (maybe through the validate hook?) then then display a warning before the user closes.
This is particularly important on the job builder since clicking anywhere else on the canvas will close the form. See @josephjclark 's old #280
- When making changes to a job, a user's changes aren't saved until the "save" button is pressed (this itself is arguably a little bit anachronistic).
- If the user refreshes the page, navigates away or goes "back" (easily done with a misplaced gesture), all changes will be lost without warning.
- This is particularly painful when writing job code.
Starting with the job builder because it's the most high-impact, we need an elegant and generic way to detect when a form has unsaved changes (maybe through the validate hook?) then then display a warning before the user closes.
This is particularly important on the job builder since clicking anywhere else on the canvas will close the form. See @josephjclark 's old #280