Repository navigation
ナンバリング未設定の乗換路線ドット表示にmarginTopを追加 - #5649
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
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)
📝 WalkthroughWalkthroughPadLineMarksで高さスケーリングを除去し、marginTopを固定値に変更。NumberingIconSquareにmediumサイズかつthreeLetterCode未指定の早期レンダーパスと新スタイルを追加。TransferLineDotでドットサイズを定数化し、useMemo依存をdotSizeへ更新。 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/components/NumberingIconSquare.tsx`:
- Around line 317-326: The MEDIUM/LARGE early return in NumberingIconSquare.tsx
skips the common wrapper that applies allowScaling and withOutline, causing
inconsistent rendering; update the MEDIUM/LARGE branch that returns the View
with styles.rootMedium and Typography(styles.lineSymbolMedium) to use the same
wrapper/logic as other sizes (or call the shared render wrapper), passing
through the allowScaling and withOutline props so scaling and outline behavior
remains consistent for NUMBERING_ICON_SIZE.MEDIUM and NUMBERING_ICON_SIZE.LARGE.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 558266ee-8fb7-41a1-83eb-cce7a9859fd5
📒 Files selected for processing (1)
src/components/NumberingIconSquare.tsx
…に合わせる Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/components/PadLineMarks.tsx (1)
148-167: 冗長なkeyプロップLine 149 の親
Viewに既にkey={transferLines[i]?.id}が設定されているため、Line 151 のTransferLineDotのkeyは不要です。♻️ 修正案
<View style={styles.lineMarkWrapper} key={transferLines[i]?.id}> <TransferLineDot - key={transferLines[i]?.id} line={transferLines[i]} small shouldGrayscale={shouldGrayscale} />🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/components/PadLineMarks.tsx` around lines 148 - 167, 親の View にすでに key={transferLines[i]?.id} が付いているため、子コンポーネント TransferLineDot から重複する key プロップを削除してください(該当する箇所は View と TransferLineDot のブロック、変数 transferLines[i]?.id を参照)。リスト要素の一意キーは View 側で保持し、子コンポーネントには key を渡さないように修正してください。
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/components/PadLineMarks.tsx`:
- Around line 148-167: 親の View にすでに key={transferLines[i]?.id} が付いているため、子コンポーネント
TransferLineDot から重複する key プロップを削除してください(該当する箇所は View と TransferLineDot のブロック、変数
transferLines[i]?.id を参照)。リスト要素の一意キーは View 側で保持し、子コンポーネントには key
を渡さないように修正してください。
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: def79644-a2fd-4f7f-bdfb-cfb8909baf9d
📒 Files selected for processing (1)
src/components/PadLineMarks.tsx
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Summary
marginTopがなかったのを修正useMemoにまとめてリファクタリングNumberingIconSquareにMEDIUM/LARGEサイズ対応を追加し、乗換画面でスクエア型ナンバリングアイコンがフルサイズで表示されるバグを修正(NumberingIconRoundと同様のパターン)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート
新機能
バグ修正 / 改善
リファクタリング