fix(assets): field-level validation on the New Asset form #222
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-216-new-asset-form-field-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?
Replace the single shared
errorbanner used for client validation on the New Asset form with per-field error state. Empty required Type and Company are now flagged on their own fields (highlighted, message under the field) instead of as a generic top banner; the banner is reserved for server/submit-time errors. All fields are validated and their errors collected before returning, so the form no longer aborts on the first failure.Name, Serial Number, Manufacturer, and Model gain
maxlength(and matching inline length checks) via documented caps assumed to mirror the server's asset columns. Script-y Serial/Name already render inert on the asset detail page because Dioxus escapes text nodes by default.Add unit tests covering the new asset validators.
#MAPPS-216
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com