Remove intents from the code and make sure it does not affect behavior.
We believe it will be easy for the edit form, but might be affecting new form.
Example of a challenging removal:
|
const schema = isEditMode && intent === 'save' ? SaveOnlySchema : Schema |
|
return parseWithZod(formData, { schema }) |
Does intent get used now that the multiple submit buttons were... removed?
Originally posted by @plocket in #677
Remove intents from the code and make sure it does not affect behavior.
We believe it will be easy for the edit form, but might be affecting new form.
Example of a challenging removal:
home-energy-analysis-tool/heat-stack/app/components/ui/heat/CaseSummaryComponents/SingleCaseForm.tsx
Lines 87 to 88 in 8f29687
Originally posted by @plocket in #677