バス路線で列車種別を系統と言い換え長い系統名のtitle表示を改善#5995
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughバス路線用の翻訳キーを追加し、選択画面で Changesバス路線の多言語対応と選択画面の条件分岐
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/components/SelectBoundSettingListModal.tsx`:
- Around line 225-233: The fallback text for the unselected option incorrectly
always uses the train default; in SelectBoundSettingListModal where
translate(...) is called with the default label (currently using
trainTypeDefault), branch on the isBus prop and use the bus fallback key when
isBus is true (e.g., use 'busRouteDefault' or the existing bus fallback key)
instead of the train key; update the same logic for the other occurrence
mentioned (lines ~252-255) so both the label and the default fallback use the
bus keys when isBus is true.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: cf1a62a6-5dc5-4bad-b7e8-f959bd0d179f
📒 Files selected for processing (5)
assets/translations/en.jsonassets/translations/ja.jsonsrc/components/CommonCard.tsxsrc/components/SelectBoundModal.tsxsrc/components/SelectBoundSettingListModal.tsx
Fixes Applied SuccessfullyFixed 1 file based on 1 CodeRabbit feedback item. Files modified:
Commit: バス文脈で The latest autofix changes are on the |
概要
バス路線(都営バス等)の UI 表記から鉄道前提の語を取り除き、長い系統名でも読みやすく表示できるように調整。
変更の種類
変更内容
trainType/trainTypesNotExist/settingsAndTrainTypeの表記を新キーbusRoute/busRoutesNotExist/settingsAndBusRoute(日本語: 「系統」、英語:Route)に切り替え。SelectBoundSettingListModalにisBusプロップを追加し、SelectBoundModalからisBusLine(line)の結果を伝搬。CommonCardの title を、バス路線時のみ最大 3 行まで許容(従来 2 行)。CommonCardでisBus && titleが指定されたとき、系統名末尾の「行」を「方面」と同様に小フォント(titleAffix)で描画。カッコで分割した各セグメントの末尾を判定するため、「池袋駅東口行(新宿伊勢丹前経由・循環)」のように後続にカッコが続くケースにも対応。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
新機能
ローカライズ