[ユーザ管理] ユーザー項目に条件付き表示機能を追加しました #2297
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
概要
ユーザー登録画面において、特定の項目の入力値に応じて他の項目を動的に表示/非表示できる「条件付き表示」機能を追加しました。
背景・目的
ユーザー登録フォームの柔軟性を向上させ、入力内容に応じて必要な項目のみを表示することで、ユーザビリティの向上を図ります。
主な変更内容
1. データベース
users_columnsテーブルに条件付き表示用の4つのカラムを追加conditional_display_flag: 条件付き表示の有効/無効(ShowType使用)conditional_trigger_column_id: トリガーとなる項目のIDconditional_operator: 条件演算子(equals, not_equals, is_empty, is_not_empty)conditional_value: 比較する値2. バックエンド
ConditionalOperatorEnumの追加(4つの演算子を定義)3. フロントエンド
4. テスト
参考(画面イメージ)
参考(表示する条件の選択肢)
レビュー完了希望日
軽微な改修ではないため、十分なレビュー時間を確保していただければと思います。
関連Pull requests/Issues
OW-2682
参考
なし
DB変更の有無
有り
マイグレーションファイル:
database/migrations/2025_10_30_123850_add_conditional_display_to_users_columns.phpチェックリスト