Repository navigation
NowHeaderにバス停の場合「都営バス」バッジを表示 - #5762
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Contributor
📝 WalkthroughWalkthroughヘッダーコンポーネントにバス路線検出機能を追加し、駅がバス路線の場合に「都営バス」バッジを表示するように拡張しました。対応する英語と日本語の翻訳キーを新規追加し、UIスタイリングを追加したものです。 Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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 |
Contributor
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/NowHeader.tsx`:
- Around line 136-137: The badge detection and label are inconsistent: update
the bus-detection logic used when computing { label, name, isBus } so it checks
station.line.company (e.g., replace or augment isBusLine(station.line) with a
check for company === Company.Toei or a new isToeiBusLine helper), change the
hardcoded translate('toeiBusBadge') to a generic translate('busBadge') (or
equivalent key) for the label, and add a short comment near the logic explaining
that the app currently only supports Toei buses and where to adjust the
detection/label when other companies are added; ensure references include
isBusLine, station.line.company, and
translate('toeiBusBadge')/translate('busBadge').
🪄 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: 21113f1a-4d45-4f79-b664-3f0d9c3064f9
📒 Files selected for processing (3)
assets/translations/en.jsonassets/translations/ja.jsonsrc/components/NowHeader.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
リリースノート