feat(kb): migrate KB article + category forms to FormGuard (PMS-518) #353
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-518-migrate-kb-forms"
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
Next per-page increment of the PMS-515 form-validation migration (PMS-518). Migrates the KB Article create/edit form and the KB Category modal onto the shared
FormGuard.Changes
KBArticleEditPage::handle_submit): Title and Body were hand-validated with the first-failure-masks-the-second bug (Title checked first,returned before Body). Both now go throughguard.field(...)into their own inline slots (title_error/content_error), so a missing Title no longer hides a missing Body and the first invalid field is focused. Each field gainsrules: vec![Rule::Required]for on-blur validation. The form-level banner is kept for server save errors.name_errorinline slot, for consistency.Behaviour
Verification
just checkparity via the rust-builder image:clippy --all-targets -- -D warnings,fmt --check,cargo check --target wasm32-unknown-unknown- all green.Part of PMS-518 (multi-PR). Progress is tracked in
dev-docs/form-validation-audit.md(updated as batches land; this PR is code-only to avoid a doc conflict with the in-flight new-ticket/log-time PR #352).