Repository navigation
[codex] 駅詳細のGraphQLフラグメントを整理して取得項目を軽量化 - #5807
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 (1)
📝 WalkthroughウォークスルーGraphQL クエリ定義に新しい 変更内容
推定コードレビュー工数🎯 3 (Moderate) | ⏱️ ~20 minutes ポエム
🚥 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 |
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/lib/graphql/queries.ts`:
- Around line 112-124: The fragment inclusion is inconsistent: you import/inject
COMPANY_FRAGMENT but inside fragment LineInStationFields on LineNested you list
company fields inline instead of using the CompanyFields fragment; replace the
inline company field selections with the fragment spread ...CompanyFields so the
COMPANY_FRAGMENT (CompanyFields) is actually referenced and NoUnusedFragments
validation passes (update the fragment LineInStationFields on LineNested to use
...CompanyFields within the company selection; keep the surrounding fragments
like LINE_SYMBOL_FRAGMENT, STATION_NUMBER_FRAGMENT, and TTS_SEGMENT_FRAGMENT
unchanged).
🪄 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: 872eb1c3-54b8-4518-b638-a90e0b43c91b
📒 Files selected for processing (2)
src/@types/graphql.d.tssrc/lib/graphql/queries.ts
概要
StationFieldsで参照するline/lines向けにLineInStationFieldsを追加しました変更理由
駅詳細で使う
LineNestedフラグメントが広すぎたため、不要なフィールドまで取得していました。駅画面で必要な項目に絞ることで、クエリと生成型の両方を軽量化します。影響
StationFieldsに依存する型定義が更新されます確認
npm run lintnpm run typecheckSummary by CodeRabbit
リリースノート