Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Add max length to user input fields

オープン
#964 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
4
フォーク
0
平均マージ
14時間 50分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Garvan-Data-Science-Platform/ctrl のほかの issue

Garvan-Data-Science-Platform/ctrl の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。