Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add max length to user input fields

Abierto
#964 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Start by reading application/common/types/commonTypes.ts to find the defined limits, then inspect the Participant and Admin clients and the existing Contact Us form implementation. Identify all user input fields and how their length limits are presented; done means the clients communicate limits consistently with the shared types and the approach is easy to extend to new fields.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

PR related to #891 adds max length to most fields in the api validation, but users are still able to input unreasonably large strings.

Below I was able to input an extremely long string in the first name field (note: that it failed validation):

...JudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudithJudi'
... 31159 more characters
[backend]:     }
[backend]:   },
[backend]:   status: 400
[backend]: }
[backend]: {
[backend]:   message: 'Validation Failed',
[backend]:   details: { 'bodyRequest.firstName': { message: 'Invalid value provided' } },
[backend]:   level: 'error',
[backend]:   timestamp: '2026-09-22T03:41:55.923Z'
[backend]: }

It is good practice to communicate limits to users, so we should add max length information to all user input fields (Participant and Admin clients). The max lengths should align with those in application/common/types/commonTypes.ts.

There are a couple of cases where this exists already (e.g. Contact Us form). Ideally the implementation of this is done in a way that makes it easy to maintain and add to new fields that are created.

Lenguaje dominante
TypeScript
Estrellas
4
Forks
0
Merge medio
14 h 50 min
PR fusionados (30 d)
5

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Garvan-Data-Science-Platform/ctrl

Todos los issues de Garvan-Data-Science-Platform/ctrl

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.