Description
Problem
#3358 introduces the ability to disable the auto-start or auto-stop section of the workspace schedule form. For ease of use, your most recently entered values are held in the form even when you disable it, so that if you re-enable it, you don't have to re-enter them. However, they are cleared when you submit the form (this is necessary because the backend uses empty values to signify disabled; the switch is only on the frontend). Thus, a disabled section has misleading helper text that tells you when your workspace will stop or start, but in reality, if you submit the form with switches off, no automatic starting or stopping will happen.
This helper text is lying to you:
Definition of Done:
It's clear to the user what values will be saved when they submit the form.
Possible solutions:
- do not persist form values (clear the values when a section is disabled)
- hide helper text when a section is disabled (probably requires editing
getFormHelpers
in order to preserve the decision between showing helper text and error text) - add helper text to the switches to make it more obvious that if the switch is off, all bets are off
- ???