[ux] Raw Zod validation strings shown to users ("Too small: expected string to have >=N characters") #130
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Severity: ux-polish
Several forms surface internal Zod error strings verbatim instead of human copy:
/settings/account/profile): empty → "Too small: expected string to have >=1 characters"; 80 chars → "Too big: expected string to have <=40 characters".Expected: friendly messages, e.g. "Name is required", "Name must be 40 characters or fewer", "Password must be at least 8 characters", "Group name must be at least 2 characters".
Suggested fix: provide custom messages on the Zod schemas (
.min(1, "Name is required")etc.).Filed from an automated full-product QA pass on
develop@v0.93.0-64-gb60190ff, fresh DB. Items were observed live in the browser; grouped issues collect several small related findings.Screenshot