Skip to content

SelectBoundModalで読み込み中は設定ボタン以外は無効化#5283

Merged
TinyKitten merged 1 commit intodevfrom
feature/disable-if-loading
Feb 14, 2026
Merged

SelectBoundModalで読み込み中は設定ボタン以外は無効化#5283
TinyKitten merged 1 commit intodevfrom
feature/disable-if-loading

Conversation

@TinyKitten
Copy link
Copy Markdown
Member

@TinyKitten TinyKitten commented Feb 14, 2026

Summary by CodeRabbit

バグ修正

  • ローディング状態中、ルート情報、列車タイプ、ルート保存操作に関連するボタンが無効化されるようになりました。ユーザーインターフェースの応答性が向上し、データ読み込み中のユーザー操作がより適切に処理されるようになります。

@TinyKitten TinyKitten self-assigned this Feb 14, 2026
@github-actions github-actions Bot added the react label Feb 14, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 14, 2026

📝 Walkthrough

ウォークスルー

SelectBoundModal.tsx のUI制御にローディング状態の処理が追加されました。RouteInfo ボタンがローディング中に無効化され、TrainType と Save Route アクションもローディング状態を考慮するように拡張されました。

変更内容

コホート / ファイル 概要
ローディング状態の UI 制御
src/components/SelectBoundModal.tsx
ローディング中にボタンを無効化するロジックを追加。RouteInfo ボタン、TrainType、Save Route アクションがローディング状態を条件として考慮されるようになりました。

コード確認の推定工数

🎯 2 (Simple) | ⏱️ ~8 分

関連する可能性のあるPR

推奨ラベル

react

🐰 ローディング状態で ボタンたちは
静かに眠り 待つがいい
ユーザーの手を 優しく止めて
完了を待つ その時まで ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Merge Conflict Detection ⚠️ Warning ⚠️ Unable to check for merge conflicts: Failed to fetch base branch: From https://github.com/TrainLCD/MobileApp
! [rejected] dev -> dev (non-fast-forward)
+ f709c9c...3ec5d89 dev -> origin/dev (forced update)
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトルは、SelectBoundModalコンポーネントで読み込み中に設定ボタン以外を無効化するという主な変更内容を明確かつ簡潔に説明しており、変更内容と完全に関連している。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/disable-if-loading
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch feature/disable-if-loading
  • Create stacked PR with resolved conflicts
  • Post resolved changes as copyable diffs in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/SelectBoundModal.tsx (1)

586-591: ⚠️ Potential issue | 🟡 Minor

読み込み中は「閉じる」も無効化が必要です。
PR目的「設定ボタン以外は無効化」に対して、閉じるボタンが有効のままです。

修正案
           <Button
             style={styles.closeButton}
             textStyle={styles.closeButtonText}
             onPress={onClose}
+            disabled={loading}
           >
             {translate('close')}
           </Button>

@TinyKitten TinyKitten merged commit 0984c4c into dev Feb 14, 2026
6 checks passed
@TinyKitten TinyKitten deleted the feature/disable-if-loading branch February 14, 2026 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant