fix(assets): validate the asset Edit modal like the create form (MAPPS-238) #240

Merged
vas2000-work merged 2 commits from fix/MAPPS-238-asset-edit-modal-validation into main 2026-06-17 02:51:21 +02:00
Owner

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.

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.
fix(assets): validate the asset Edit modal like the create form
All checks were successful
Check / clippy + fmt + tests (pull_request) Successful in 1m42s
34017cfa4f
The Edit Asset modal posted whatever was typed: a blank Name reached the
server and Serial/Manufacturer/Model were uncapped. Mirror the create
form (MAPPS-216): reject a blank or over-long name and over-long optional
fields before the PUT with an inline message, and add maxlength caps to
the Name/Manufacturer/Model/Serial inputs.

#MAPPS-238

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Merge branch 'main' into fix/MAPPS-238-asset-edit-modal-validation
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
Check / clippy + fmt + tests (pull_request) Successful in 3m12s
ef3f2063e9
vas2000-work deleted branch fix/MAPPS-238-asset-edit-modal-validation 2026-06-17 02:51:21 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!240
No description provided.