Repository navigation
ライセンス画面に公共交通オープンデータ関連4事業者のライセンス表記を追加し、未使用のRxJSを削除 - #6361
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]>
Co-Authored-By: Claude Fable 5 <[email protected]>
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 48 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughLicenses.tsx で LICENSE_MAP/getLicenseInfo による文字列解析ベースのURL解決を廃止し、LicenseItem に licenseUrl を直接付与する方式へ変更しました。en.json/ja.json にライセンス関連の翻訳キーを追加し、package.json から rxjs 依存を削除しました。 Changesライセンス画面のURL直指定化
翻訳キー追加と依存関係整理
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant LicensesScreen
participant ActionSheet
participant Linking
User->>LicensesScreen: ライセンス項目をタップ
LicensesScreen->>LicensesScreen: item.license と item.licenseUrl を確認
LicensesScreen->>ActionSheet: アクションシートを表示
User->>ActionSheet: 遷移先を選択
ActionSheet->>Linking: openURL(item.href または item.licenseUrl)
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
Co-Authored-By: Claude Fable 5 <[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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/screens/Licenses.tsx`:
- Around line 34-42: `LicenseItem` currently allows `license` and `licenseUrl`
to be set independently, so `handlePressLicenseItem` can silently skip the
license sheet when only one is present. Refactor `LicenseItem` in `Licenses.tsx`
to a discriminated union (or equivalent) that requires `license` and
`licenseUrl` together, and update any `LicenseItem` definitions/usages so
entries with license data must provide both fields while plain entries omit
both.
🪄 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: ASSERTIVE
Plan: Pro
Run ID: e767d5d8-616e-45af-a81d-f74dca82b982
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (4)
assets/translations/en.jsonassets/translations/ja.jsonpackage.jsonsrc/screens/Licenses.tsx
💤 Files with no reviewable changes (1)
- package.json
Co-Authored-By: Claude Fable 5 <[email protected]>
Fixes Applied SuccessfullyFixed 1 file(s) based on 1 CodeRabbit feedback item(s). Files modified:
Commit: Validation: The latest autofix changes are on the |
概要
ライセンス画面に、公共交通オープンデータセンター(ODPT)経由で利用しているデータの出典として京都市交通局・横浜市交通局・西武バス・函館市企業局交通部のライセンス表記を追加しました。あわせて、コードから参照されなくなっていた RxJS を依存関係とライセンス表記の両方から削除しました。
変更の種類
変更内容
licenseUrlを明示的に持たせ、タップ時のアクションシートからライセンス本文ページを開けるようにしたgetLicenseInfoを廃止(翻訳文言の変更でライセンスリンクが静かに壊れる構造を解消。アクションシートのラベルは常に画面表示と同じライセンス表記に統一)LICENSE_MAPをLicenseIdunion 型に置き換えja.json/en.jsonに事業者名とライセンス表記の翻訳キーを追加rxjsをpackage.jsonから削除し、ライセンス画面の RxJS 項目も削除テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
New Features
改善