Repository navigation
LineDotの到着予想分数表示の不具合を修正 - #6331
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 26 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough到着予測時刻の基準計算にdepartureCumulativeMinutesを導入し、GraphQLスキーマにTrainRoute関連型やGetStationsByIds型を追加、対応クエリを拡張。useEstimateArrivalTimesのフィルタ条件を修正し、LineDotのletterSpacingをPlatform別に調整した。 Changes到着予測基準時刻の修正
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant Query as ESTIMATE_ARRIVAL_TIMES
participant Hook as useEstimateArrivalTimes
participant UI as LineDot
Query->>Hook: routes.stops[].departureCumulativeMinutes
Hook->>Hook: baseMinutesをdepartureCumulativeMinutesから算出
Hook->>Hook: currentStation.groupIdをrelativeStopsから除外
Hook->>UI: relativeStopsを提供してestimatedMinutesTextを表示
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
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/hooks/useEstimateArrivalTimes.ts`:
- Around line 133-151: Add test coverage in useEstimateArrivalTimes.test.tsx for
the new base-minute logic in useEstimateArrivalTimes: verify that relative ETA
calculation uses departureCumulativeMinutes as the offset when the current
station is inside windowStops, and add a case where currentStation is not found
so baseMinutes falls back to 0. Also assert that the current station is still
excluded from relativeStops in both scenarios, especially when the fallback path
would otherwise leave a non-offset value visible.
🪄 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: 02cdbccb-7a48-4503-8308-152f7082e163
📒 Files selected for processing (4)
src/@types/graphql.d.tssrc/components/LineBoard/shared/components/LineDot.tsxsrc/hooks/useEstimateArrivalTimes.tssrc/lib/graphql/queries.ts
概要
変更の種類
変更内容
テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit