31 lines
796 B
Markdown
31 lines
796 B
Markdown
# Form Behavior and Validation Rules
|
|
|
|
## Universal Rules
|
|
|
|
1. Every required field has inline validation.
|
|
2. Every select has deterministic default value.
|
|
3. Save actions are idempotent and disabled while pending.
|
|
4. Unsafe changes surface explicit impact warnings.
|
|
|
|
## Create/Edit Parity Requirements
|
|
|
|
- intake windows
|
|
- upload policy
|
|
- file requirements
|
|
- assignment policy
|
|
- filtering policy
|
|
- routing policy
|
|
- live policy
|
|
|
|
## Modal Safety Rules
|
|
|
|
1. Modal close must not mutate persisted state.
|
|
2. Non-submit buttons must explicitly set `type="button"`.
|
|
3. Escape/cancel should only dismiss local draft state.
|
|
|
|
## Payload Safety
|
|
|
|
- replace raw free-text config where structured selectors exist
|
|
- normalize serialization format for config payloads
|
|
- reject unknown keys in strict mode contracts
|