[ux] Raw Zod validation strings shown to users ("Too small: expected string to have >=N characters") #130

Closed
opened 2026-06-22 06:27:53 +03:00 by Ghost · 0 comments

Severity: ux-polish

Several forms surface internal Zod error strings verbatim instead of human copy:

  • Profile name (/settings/account/profile): empty → "Too small: expected string to have >=1 characters"; 80 chars → "Too big: expected string to have <=40 characters".
  • Change password: short new password → "Too small: expected string to have >=8 characters".
  • Create group: 0–1 char name → "Too small: expected string to have >=2 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

Issue 130: empty Name shows raw Zod string 'Too small: expected string to have >=1 characters'

**Severity:** ux-polish Several forms surface internal Zod error strings verbatim instead of human copy: - **Profile name** (`/settings/account/profile`): empty → "Too small: expected string to have >=1 characters"; 80 chars → "Too big: expected string to have <=40 characters". - **Change password**: short new password → "Too small: expected string to have >=8 characters". - **Create group**: 0–1 char name → "Too small: expected string to have >=2 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 ![Issue 130: empty Name shows raw Zod string 'Too small: expected string to have >=1 characters'](https://gitea.vvzvlad.xyz/attachments/2da82468-446b-4214-b11d-b7b5f2827264)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vvzvlad/gitmost#130