Skip to content

JYテーマ iPadでのレイアウト修正 - #5269

Merged
TinyKitten merged 1 commit into
devfrom
fix/jy-ipad-theme
Feb 13, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/jy-ipad-theme

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Feb 13, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

リリースノート

  • アニメーションと表示の改善
    • シェブロンアニメーションのメカニズムを最適化し、より滑らかな動作を実現しました
    • UI要素の位置決めと移動アニメーションをより効率的に改良しました
    • 到着時の状態遷移における視覚的フィードバックを改善しました

@github-actions github-actions Bot added the react label Feb 13, 2026
@coderabbitai

coderabbitai Bot commented Feb 13, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

React Nativeアニメーション実装の2つのコンポーネントをリファクタリング。ChevronYamanoteではanimatedPropsベースをuseAnimatedStyleベースに変更し、赤色フィル描画を独立したAnimated.Viewに分離。PadArchではシェブロンアニメーションをボトム位置ベースからtranslateYベースに変更。

Changes

Cohort / File(s) Summary
アニメーション実装の刷新
src/components/ChevronYamanote.tsx
animatedPropsベースのアニメーション処理をuseAnimatedStyleベースに移行。赤色フィルの描画を別のAnimated.Viewでラップして、fillScaleStyleアニメーションを適用。StyleSheet導入とG コンポーネント使用廃止。
シェブロンアニメーション最適化
src/components/PadArch.tsx
シェブロンポジショニング調整(right/top座標の計算式変更)。アニメーション方式をボトム位置ベースからtranslateYベースに変更。フェードイン/アウト計算ロジックを更新。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

react

Poem

🐰 Animation flows dance anew,
From props to styles, a cleaner view,
Chevrons shimmer, translated high,
While red fills bloom across the sky! ✨

🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Merge Conflict Detection ⚠️ Warning ❌ Merge conflicts detected (11 files):

⚔️ android/app/build.gradle (content)
⚔️ app.config.ts (content)
⚔️ ios/TrainLCD.xcodeproj/project.pbxproj (content)
⚔️ src/components/ChevronYamanote.tsx (content)
⚔️ src/components/PadArch.tsx (content)
⚔️ src/constants/threshold.ts (content)
⚔️ src/hooks/useNearestStation.ts (content)
⚔️ src/hooks/useRefreshStation.ts (content)
⚔️ src/hooks/useThreshold.test.tsx (content)
⚔️ src/hooks/useThreshold.ts (content)
⚔️ src/store/atoms/location.ts (content)

These conflicts must be resolved before merging into dev.
Resolve conflicts locally and push changes to this branch.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PRタイトルは「JYテーマ iPadでのレイアウト修正」で、変更内容がChevronYamanote.tsxとPadArch.tsxのiPadレイアウト関連の修正であることと合致しており、主な変更を明確に要約している。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/jy-ipad-theme
⚔️ Resolve merge conflicts (beta)
  • Auto-commit resolved conflicts to branch fix/jy-ipad-theme
  • Create stacked PR with resolved conflicts
  • Post resolved changes as copyable diffs in a comment

No actionable comments were generated in the recent review. 🎉

🧹 Recent nitpick comments
src/components/ChevronYamanote.tsx (1)

61-73: LinearGradientの簡略化を検討

両方のStopが同じ色(crimson)を指定しているため、実質的にソリッドフィルです。fill="crimson"で直接塗りつぶすことで簡略化できます。

♻️ 提案: ソリッドフィルへの簡略化
         <Svg viewBox="0 0 393.2 296" width="100%" height="100%">
-          <LinearGradient
-            id={id}
-            gradientUnits="userSpaceOnUse"
-            x1={4}
-            y1={150}
-            x2={388}
-            y2={150}
-            gradientTransform="matrix(1 0 0 -1 0 298)"
-          >
-            <Stop offset={0} stopColor="crimson" />
-            <Stop offset={1} stopColor="crimson" />
-          </LinearGradient>
-          <Path fill={`url(#${id})`} d="M268 4H4v288h264l120-144z" />
+          <Path fill="crimson" d="M268 4H4v288h264l120-144z" />
         </Svg>

これによりuseIdフックとLinearGradient関連のインポートも不要になります。


Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten TinyKitten self-assigned this Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant