Skip to content

AIチャット画面のメッセージや提案カードに控えめな出現アニメーションを追加 - #6503

Merged
TinyKitten merged 2 commits into
devfrom
feature/destination-agent-animations
Aug 1, 2026
Merged

TinyKitten merged 2 commits into
devfrom
feature/destination-agent-animations

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

概要

AIチャット(行き先相談)画面の動きが無骨だったため、既存の LinearTransition.springify() イディオムと調和する控えめなフェード系アニメーションを追加しました。いずれも Reanimated 既定の ReduceMotion.System に従うため、OS の「視差効果を減らす」設定では自動的に無効化されます。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • メッセージバブルの出現を FadeInDown(250ms)に、エラー時の巻き戻し・会話リセット時の消滅を FadeOut(150ms)にした(index.tsx)
  • タイピングインジケータの出現・消滅をフェードにし、「駅を検索しています…」ラベル表示時のバブル幅変化をスプリングで馴染ませた(index.tsx / AgentTypingIndicator.tsx)
  • 提案カードのスケルトン・エラー表示をフェードインにし、読み込み完了後のカードを提案順に 60ms ずつの時差フェードで表示するようにした(index.tsx)
  • 空状態をアイコン → タイトル → 例文チップの順に段階フェードインし、初回送信時はフェードアウトで消すようにした(AgentEmptyState.tsx / index.tsx)
  • 送信ボタンの有効/無効の opacity 切り替えを 150ms のアニメーションにし、残り文字数カウンターの出現・消滅もフェードにした(AgentInputBar.tsx)
  • ヘッダーのリセットボタンの表示・非表示をフェードで切り替えるようにした(AgentHeader.tsx)
  • プロジェクト独自の reanimated モックに FadeIn / FadeInDown / FadeOut 等のチェーン可能なビルダースタブを追加(src/__mocks__/react-native-reanimated-mock.js)
  • docs/spec/ai-agent/ui.md のアニメーション仕様の記載を実装に合わせて更新

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

関連Issue

Refs #6475

スクリーンショット(任意)

Summary by CodeRabbit

  • 新機能
    • AIエージェント画面のメッセージ、提案カード、空状態、入力欄、タイピングインジケーターなどに、自然なフェードやスライド、レイアウトアニメーションを追加。
    • 提案カードや例文チップを順番に表示し、画面の変化を分かりやすくしました。
    • OSの「視差効果を減らす」設定に従い、アニメーションを自動的に無効化します。
  • 改善
    • 送信ボタン、文字数カウンター、リセットボタンの表示切り替えを滑らかにしました。
    • ローディングやエラー、免責文などの表示・非表示を自然に切り替えます。

@TinyKitten TinyKitten self-assigned this Aug 1, 2026
@github-actions github-actions Bot added the react label Aug 1, 2026
@coderabbitai

coderabbitai Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: adf39207-e0a1-4684-8421-746cf456d464

📥 Commits

Reviewing files that changed from the base of the PR and between d4b92a1 and acd2b9b.

📒 Files selected for processing (1)
  • src/screens/DestinationAgent/index.tsx
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/screens/DestinationAgent/index.tsx

📝 Walkthrough

Walkthrough

DestinationAgentのメッセージリスト、状態表示、操作要素にReanimatedの入退場・レイアウトアニメーションを追加しました。アニメーション仕様とテスト用モックも更新しました。

Changes

DestinationAgent UIアニメーション

Layer / File(s) Summary
アニメーション契約とモック
src/__mocks__/react-native-reanimated-mock.js, docs/spec/ai-agent/ui.md
Fadeアニメーション用のモックを追加しました。UIアニメーション仕様に、入退場、状態表示、操作ボタン、ReduceMotion.System を追加しました。
画面状態と提案カードのアニメーション
src/screens/DestinationAgent/index.tsx
提案カード、ローディング、エラー、メッセージ、空状態、タイピング表示、免責文に入退場アニメーションを適用しました。提案カードには表示順の遅延を追加しました。
コンポーネントの操作アニメーション
src/screens/DestinationAgent/AgentEmptyState.tsx, src/screens/DestinationAgent/AgentHeader.tsx, src/screens/DestinationAgent/AgentInputBar.tsx, src/screens/DestinationAgent/AgentTypingIndicator.tsx
空状態、リセットボタン、送信ボタン、文字数カウンター、タイピングインジケーターにフェードまたはレイアウトアニメーションを追加しました。

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

Sequence Diagram(s)

sequenceDiagram
  participant DestinationAgentScreen
  participant FadeInDown
  participant AgentTypingIndicator
  DestinationAgentScreen->>FadeInDown: 提案カードと状態表示を遅延表示
  DestinationAgentScreen->>AgentTypingIndicator: タイピング状態を表示
  AgentTypingIndicator->>FadeInDown: ラベルとコンテナに入場アニメーションを適用
Loading

Poem

うさぎが跳ねて、カードがふわり
空の画面は、すっと消える
送信ボタンは、やさしく光る
タイピングの泡も、ふわりと登る
Reanimatedで、画面が舞う

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed タイトルはAIチャット画面への控えめな出現アニメーション追加という主な変更を明確に示しています。
Description check ✅ Passed 概要、変更内容、変更種類、テスト結果、関連Issueを記載しており、テンプレートの必須項目を満たしています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/destination-agent-animations

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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/DestinationAgent/index.tsx`:
- Around line 601-611: Update the Animated.View rendering
destinationAgentDisclaimer in the isEmpty branch to add an entering FadeIn
animation lasting 200ms, configured with ReduceMotion.System so it respects the
OS motion-reduction setting, while preserving the existing exiting animation.
🪄 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: 0d82d615-b2af-42c9-8ca6-4c11570acc70

📥 Commits

Reviewing files that changed from the base of the PR and between 7d0e160 and d4b92a1.

📒 Files selected for processing (7)
  • docs/spec/ai-agent/ui.md
  • src/__mocks__/react-native-reanimated-mock.js
  • src/screens/DestinationAgent/AgentEmptyState.tsx
  • src/screens/DestinationAgent/AgentHeader.tsx
  • src/screens/DestinationAgent/AgentInputBar.tsx
  • src/screens/DestinationAgent/AgentTypingIndicator.tsx
  • src/screens/DestinationAgent/index.tsx

Comment thread src/screens/DestinationAgent/index.tsx Resolved
@TinyKitten

Copy link
Copy Markdown
Member Author

Fixes Applied Successfully

Fixed 1 file(s) based on 1 CodeRabbit feedback item(s).

Files modified:

  • src/screens/DestinationAgent/index.tsx

Commit: acd2b9b4b

The latest autofix changes are on the feature/destination-agent-animations branch.

@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai approve

@coderabbitai

coderabbitai Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor
✅ Action performed

Comments resolved and changes approved.

@TinyKitten
TinyKitten merged commit 572b56a into dev Aug 1, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the feature/destination-agent-animations branch August 1, 2026 01:16
@TinyKitten TinyKitten mentioned this pull request Aug 1, 2026
6 of 9 tasks
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