fix(assets): validate the asset Edit modal like the create form (MAPPS-238) #240
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/MAPPS-238-asset-edit-modal-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The Edit Asset modal posted whatever was typed (blank Name reached the server; Serial/Manufacturer/Model uncapped). Mirror the create form (MAPPS-216): reject a blank/over-long name and over-long optional fields before the PUT with an inline message, plus maxlength caps on the inputs. (The raw-error part of the original report is already handled by the MAPPS-210 status_error helper.)
Verified in-container (just pre-commit): fmt + clippy + wasm check + unit tests green.
Fixes MAPPS-238.