-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: クエスト追加ダイアログを追加 #459
feat: クエスト追加ダイアログを追加 #459
Conversation
Walkthroughこの変更は、新しい「クエストのクイック追加ダイアログ」機能を導入するものです。具体的には、新しいクエストの追加ダイアログ画面とそれに関連するルーティング、ボタン操作、ローカリゼーションの追加が含まれています。 Changes
Sequence Diagram(s)このセクションをスキップします。 Assessment against linked issues
Poem
Tip Early access features: enabledWe are currently testing the following features in early access:
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Visit the preview URL for this PR (updated for commit bc11697): https://asis-quest-catalog-dev--pr459-feature-gh-458-jjygk0ei.web.app (expires Sun, 07 Jul 2024 11:21:39 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 5aa3b98f0f68e3358ab4b28a7b45d288ba01e139 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
feature/home/pubspec.lock
is excluded by!**/*.lock
Files selected for processing (13)
- app/lib/router/app_router.g.dart (2 hunks)
- app/lib/router/routes/home_route.dart (2 hunks)
- app/lib/router/shell_branch/home_branch.dart (1 hunks)
- catalog/lib/feature/home/page/home_page.dart (1 hunks)
- feature/home/lib/feature_home.dart (1 hunks)
- feature/home/lib/src/gen/l10n/l10n.dart (1 hunks)
- feature/home/lib/src/gen/l10n/l10n_en.dart (1 hunks)
- feature/home/lib/src/gen/l10n/l10n_ja.dart (1 hunks)
- feature/home/lib/src/l10n/app_en.arb (1 hunks)
- feature/home/lib/src/l10n/app_ja.arb (1 hunks)
- feature/home/lib/src/ui/page/home/home_page.dart (2 hunks)
- feature/home/lib/src/ui/page/home/quick_add_quest_dialog.dart (1 hunks)
- feature/home/pubspec.yaml (1 hunks)
Files skipped from review due to trivial changes (5)
- feature/home/lib/src/gen/l10n/l10n_en.dart
- feature/home/lib/src/gen/l10n/l10n_ja.dart
- feature/home/lib/src/l10n/app_en.arb
- feature/home/lib/src/l10n/app_ja.arb
- feature/home/pubspec.yaml
Additional comments not posted (23)
feature/home/lib/feature_home.dart (1)
4-4
: LGTM!
quick_add_quest_dialog.dart
のエクスポートが追加されています。catalog/lib/feature/home/page/home_page.dart (1)
13-13
: LGTM!
onQuickAddButtonPressed
コールバックがHomePage
に追加されています。app/lib/router/shell_branch/home_branch.dart (1)
18-20
: LGTM!新しい
QuickAddQuestDialogRoute
が追加されています。app/lib/router/routes/home_route.dart (2)
12-14
: LGTM!
onQuickAddButtonPressed
コールバックがHomeRoute
に追加されています。
24-37
: LGTM!新しい
QuickAddQuestDialogRoute
が追加されています。feature/home/lib/src/ui/page/home/home_page.dart (4)
14-14
: 新しいパラメーターの追加
onQuickAddButtonPressed
パラメーターが追加されました。これにより、クイック追加ボタンが押されたときのコールバックを設定できます。
19-19
: 新しいフィールドの追加新しいフィールド
_onQuickAddButtonPressed
が追加されました。これにより、クイック追加ボタンが押されたときのコールバックが保存されます。
24-24
: 新しいフィールドの追加新しいフィールド
_onQuickAddButtonPressed
が追加されました。これにより、クイック追加ボタンが押されたときのコールバックが保存されます。
55-55
: クエスト概要セクションの更新
QuestOverviewSection
にonQuickAddButtonPressed
コールバックが追加されました。これにより、クイック追加ボタンが押されたときに適切なアクションが実行されます。feature/home/lib/src/ui/page/home/quick_add_quest_dialog.dart (12)
1-1
: 新しいインポート
flutter_hooks
パッケージがインポートされました。これにより、フックを使用して状態管理が行われます。
8-8
: 新しいクラスの追加
QuickAddQuestDialog
クラスが追加されました。このクラスはクエストを迅速に追加するためのダイアログを実装しています。
10-12
: コンストラクタの追加
QuickAddQuestDialog
クラスのコンストラクタが追加されました。onClose
コールバックを受け取ります。
14-14
: 新しいフィールドの追加
_onClose
フィールドが追加されました。これにより、ダイアログを閉じるためのコールバックが保存されます。
16-18
: ビルドメソッドの追加
build
メソッドが追加されました。ここでダイアログのUIが構築されます。
20-27
: フックの使用
useTextEditingController
とuseValueListenable
フックが使用されています。これにより、テキストフィールドの状態が管理されます。
29-29
: フォームキーの使用
useMemoized
フックを使用してフォームキーが生成されています。これにより、フォームの状態が管理されます。
31-31
: ダイアログの構築
AlertDialog
ウィジェットが使用されています。これにより、クエスト追加ダイアログの基本的なレイアウトが提供されます。
32-32
: ダイアログのタイトルダイアログのタイトルとしてローカライズされたテキストが使用されています。
33-87
: フォームの構築フォームが構築され、テキストフィールドが追加されています。それぞれのフィールドにはバリデーションが含まれています。
89-92
: キャンセルボタンキャンセルボタンが追加されました。これにより、ダイアログを閉じることができます。
94-109
: クエスト追加ロジックフォームのバリデーションとクエストの追加ロジックが実装されています。バリデーションが成功した場合、クエストが追加され、ダイアログが閉じられます。
feature/home/lib/src/gen/l10n/l10n.dart (1)
135-175
: 新しいローカライズキーの追加クエスト追加ダイアログのための新しいローカライズキーが追加されました。これにより、ダイアログのテキストが適切に翻訳されます。
app/lib/router/app_router.g.dart (1)
148-164
: 新しいルート拡張の追加
QuickAddQuestDialogRoute
のための新しいルート拡張が追加されました。これにより、ナビゲーションが容易になります。
Issue
概要
クエスト追加ダイアログを追加します。
レビュー観点
レビューレベル
レビュー優先度
参考リンク
スクリーンショット
GH-459.mp4
Summary by CodeRabbit
新機能
改良