feat(sla): show schedule/holiday JSON validation errors inline #404
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-604-sla-json-inline-errors"
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?
What
PMS-604 frontend (AC3). Surface SLA schedule / holiday JSON validation errors inline on the relevant field instead of in the modal banner.
Pairs with the mokosh-server PR that adds strict write-time validation (rejecting malformed schedule/holiday JSON with a 422 keyed onto the
schedule/holidaysfield).How
In both the Business Hours and Holiday Calendar form modals:
schedule_err/holidays_err) wired into the JSON Textarea'serrorprop (standard form pattern).err.field_message("schedule")/("holidays")), show it inline; otherwise keep it in the banner for name/timezone/generic errors.Test
just pre-commit(fmt --check +cargo check --target wasm32-unknown-unknown+ unit tests) passes.Part of PMS-604.