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

[ユースケースビルダー] フォーム・オプションの定義に含まれる空白のチェックを追加 #960

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

icoxfog417
Copy link
Contributor

変更内容の説明

ユースケースビルダーで入力項目を定義する際、ラベルやオプションに空白が含まれていた場合バリデーションエラーを出すように修正しました。

  • 例えば {{text: 入力}} という定義の場合、"入力"の前に空白があるためエラーが出力されます
  • {{select:選択項目:1, 2, 3, 4}} という場合、オプションの各数字の前に空白があるためエラーが出力されます

画面イメージ
image

背景
特にselectの入力例を設定する際、意図せず空白が含まれていると入力例と空白が含まれたoptionがマッチせず、値が設定されない事態が起こる (#958)。ユースケースの作成者からすると非常に気づきにくいので、ユースケースを定義する段階でバリデーションエラーを表示することで速やかに修正できるようにする

チェック項目

  • npm run lint を実行した
  • 関連するドキュメントを修正した
  • 手元の環境で動作確認済み
  • npm run cdk:test を実行しスナップショット差分がある場合は npm run cdk:test:update-snapshot を実行してスナップショットを更新した

関連する Issue

#958

@icoxfog417
Copy link
Contributor Author

エラーメッセージを i18n 対応
image

@icoxfog417 icoxfog417 force-pushed the feature/check_item_spaces branch from d4e6641 to 4437262 Compare April 8, 2025 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant