Repository navigation
ナンバリング関係のバグを修正 - #5617
ナンバリング関係のバグを修正#5617
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 (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough複数のコンポーネントが Changes
Sequence Diagram(s)(該当なし) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labelsreact 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)
📝 Coding Plan
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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/NumberingIconMonochromeRound.tsx`:
- Around line 12-25: NumberingIconMonochromeRound's smallRoot/mediumRoot lack
the white background and black border and numOnly returns numOnlyStationNumber
before size logic causing non-dash values to render large in a small circle;
update the smallRoot and mediumRoot style objects to include backgroundColor:
'white', borderWidth: 1 and borderColor: 'black' (and ensure borderRadius
remains correct), and change the numOnly logic inside
NumberingIconMonochromeRound so that either (A) size-based handling runs before
returning numOnlyStationNumber or (B) numOnlyStationNumber is only returned when
the value contains a '-' (fallback to the normal numeric rendering for other
values); this will preserve correct sizing for SMALL/MEDIUM when PresetCard
passes SMALL.
In `@src/components/Transfers.tsx`:
- Around line 141-144: The line mark is using station.stationNumbers while other
places use the transfer line's station numbers, causing misalignment when the
transfer is to a different station; update the getLineMarkFunc call in
Transfers.tsx (the const lineMark assignment) to pass stationNumbers taken from
the transfer line's station object (use line.station?.stationNumbers, falling
back to station.stationNumbers if needed) so the left/right marks stay
consistent with line.station.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: bf0d5864-9a4b-4700-8254-8ef49d8b90b1
📒 Files selected for processing (17)
src/components/CommonCard.tsxsrc/components/HeaderJRWest.tsxsrc/components/LineBoardWest.test.tsxsrc/components/LineBoardWest.tsxsrc/components/LineBoardYamanotePad.tsxsrc/components/NumberingIcon.tsxsrc/components/NumberingIconMonochromeRound.tsxsrc/components/NumberingIconReversedRoundHorizontal.tsxsrc/components/NumberingIconRoundHorizontal.tsxsrc/components/PadLineMarks.tsxsrc/components/PresetCard.tsxsrc/components/TransferLineMark.tsxsrc/components/Transfers.tsxsrc/components/TransfersYamanote.tsxsrc/hooks/useCurrentStation.tssrc/hooks/useGetLineMark.tssrc/lineSymbolImage.ts
💤 Files with no reviewable changes (1)
- src/components/LineBoardWest.test.tsx
Summary by CodeRabbit
リリースノート
バグ修正
改善
スタイル