Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

プロフィール編集 - バリデーションチェック #126

Open
1 task
takecchi opened this issue Dec 14, 2023 · 2 comments
Open
1 task

プロフィール編集 - バリデーションチェック #126

takecchi opened this issue Dec 14, 2023 · 2 comments
Assignees
Labels
feature 新しい機能の追加 good first issue Good for newcomers

Comments

@takecchi
Copy link
Member

Community Issue

概要

現状フロント側でバリデーションチェックを行なっていないので、入力制限やバリデーションチェックを行うようにする。

エラーが出た際にエラーが出た理由と表示をわかりやすくする。
参考: https://mui.com/material-ui/react-text-field/#validation

バックエンドと共通のライブラリはこれ
https://github.com/cuculus-dev/validator

Todo

  • やることリスト
@takecchi takecchi added good first issue Good for newcomers feature 新しい機能の追加 labels Dec 14, 2023
@AyumuAkimoto AyumuAkimoto self-assigned this Mar 7, 2024
@takecchi
Copy link
Member Author

#52
一部共通で使えそう。

@takecchi
Copy link
Member Author

フロントエンドとバックエンド共通のバリデータとして以下を使用する。
https://github.com/cuculus-dev/validator

npm install @cuculus/validator
でインストール可能

現状、ざっくりとしたパターンしか決まっていないので以下を決める必要あり。

  • ユーザー名 ... @〇〇の部分
  • 表示名
  • bio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 新しい機能の追加 good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants