Repository navigation
Live Update通知チャンネルおよび通知文言をi18n対応 - #5389
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
📝 WalkthroughWalkthroughLiveUpdateModule.kt の通知文言と駅名表示ロジックをリソース化・拡張。通知チャンネル名・説明を文字列リソースへ移動し、駅番号対応(stationNumber 等)と表示フォーマット(括弧付与・方面処理)を追加。英語・日本語の strings.xml を追加・更新。 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
android/app/src/main/java/me/tinykitten/trainlcd/LiveUpdateModule.kt (1)
136-137: 駅名が空のときの表示体裁を整える(任意)
Line 136-137 で name が空・number が有る場合に「 (番号)」だけが出るので、必要なら number 単独表示にしておくと見栄えが安定します。🔧 例: 空名を考慮
- fun formatStationWithNumber(name: String, number: String): String = - if (number.isNotEmpty()) "$name ($number)" else name + fun formatStationWithNumber(name: String, number: String): String = + when { + name.isEmpty() -> number + number.isNotEmpty() -> "$name ($number)" + else -> name + }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@android/app/src/main/java/me/tinykitten/trainlcd/LiveUpdateModule.kt` around lines 136 - 137, The helper formatStationWithNumber currently returns " (number)" when name is empty; update formatStationWithNumber(name: String, number: String) to detect blank/empty name and, if name.isBlank() and number.isNotEmpty(), return just the number, otherwise keep the existing behavior (if number.isNotEmpty() return "$name ($number)" else return name) so the display doesn't show a leading space/paren when the station name is missing.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@android/app/src/main/java/me/tinykitten/trainlcd/LiveUpdateModule.kt`:
- Around line 146-155: formattedBoundName currently splits boundStationName by a
delimiter that can be "・" or "/", but always splits boundStationNumber by "/",
causing mismatches; update the logic in the formattedBoundName block to compute
the same delimiter for boundStationNumber as for boundStationName (or split
boundStationNumber by both delimiters) so names and numbers align, i.e., use the
same delimiter variable when calling split on boundStationNumber before mapping
into formatStationWithNumber(name, number).
---
Nitpick comments:
In `@android/app/src/main/java/me/tinykitten/trainlcd/LiveUpdateModule.kt`:
- Around line 136-137: The helper formatStationWithNumber currently returns "
(number)" when name is empty; update formatStationWithNumber(name: String,
number: String) to detect blank/empty name and, if name.isBlank() and
number.isNotEmpty(), return just the number, otherwise keep the existing
behavior (if number.isNotEmpty() return "$name ($number)" else return name) so
the display doesn't show a leading space/paren when the station name is missing.
This was referenced Feb 21, 2026
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.
close #5388
Co-Authored-By: Claude Opus 4.6 [email protected]
Summary by CodeRabbit
新機能
ローカライズ