fix(web): show per-field registration errors and preserve inputs #339
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/BUNYIP-271-register-field-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?
A failed registration submit re-rendered
register_cardwith only the typed email preserved and a single generic banner, so the user lost their input and could not tell which field was wrong. Attribute each failing rule to the field it governs (email / password / confirm) and render the message next to the offending input via a newRegisterErrorsstruct; an API-side rejection with no clear field attribution still renders as the top banner while the email stays preserved. Passwords are still never echoed into the HTML, and on any rejected submit a hint tells the user to re-enter the (now-cleared) password. The successful-registration path (redirect to /onboarding) is unchanged.bunyip-webis a bin-only crate, socargo test --workspace --libsilently skipped its entire suite, meaning the existing auth-page tests and the new registration guards never ran in CI. Switch the CI and justfile test invocations to--all-targetsso binary-crate tests actually gate.#BUNYIP-271