Repository navigation
AIエージェントのUI設計書を追加 - #6478
AIエージェントのUI設計書を追加#6478
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAIエージェント用チャット画面のUI設計書を新規追加しました。画面構成、メッセージ表示、提案カード、送信状態、画面遷移、テーマ、多言語、アクセシビリティ、Figma反映事項を定義しています。 ChangesAIエージェントUI
Estimated code review effort: 2 (Simple) | ~10 minutes 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: 3
🧹 Nitpick comments (1)
docs/spec/ai-agent/ui.md (1)
215-217: 🗄️ Data Integrity & Integration | 🔵 Trivial | 💤 Low valueSelectBoundModal 起動前の状態契約も明記してください。
pendingStation/pendingStations/selectedLineをクリアし、pendingLineをセットしてからモーダルを開く前提を共有フックの責務として書いておくと、実装差分を追いやすいです。🤖 Prompt for 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. In `@docs/spec/ai-agent/ui.md` around lines 215 - 217, 共有フックの責務として、SelectBoundModalを開く前にpendingStation、pendingStations、selectedLineをクリアし、pendingLineをセットする状態契約をdocs/spec/ai-agent/ui.mdに明記してください。RouteSearchScreenのhandleLineSelectedと同じ既存UI遷移の説明は維持してください。
🤖 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 `@docs/spec/ai-agent/ui.md`:
- Around line 278-280: Update the sending-state requirements in the UI
specification’s send-button behavior to require actual submission blocking, not
only `opacity: 0.5`: the send handler must guard against in-flight submissions,
the button must set `disabled`, and it must expose `accessibilityState={{
disabled: true }}` while sending.
- Around line 195-207: 提案ごとに表示対象路線を一意に解決できるよう、suggestions のレスポンス契約へ lineId
などの安定した路線識別子を追加してください。GET_STATIONS_BY_IDS で再取得した Station の Line
一覧から名称一致に頼らずその識別子で対象路線を明示的に選択し、CommonCard には解決した Line を渡す仕様を更新してください。
- Around line 182-185: ユーザーメッセージの配色仕様で、#008ffe 上の白文字を未決事項として扱わず、WCAG AA
準拠の背景色または文字色へ変更してください。該当する設計要件・受け入れ条件にも準拠を明記し、Figmaでの検討事項として実装へ引き継がないでください。
---
Nitpick comments:
In `@docs/spec/ai-agent/ui.md`:
- Around line 215-217:
共有フックの責務として、SelectBoundModalを開く前にpendingStation、pendingStations、selectedLineをクリアし、pendingLineをセットする状態契約をdocs/spec/ai-agent/ui.mdに明記してください。RouteSearchScreenのhandleLineSelectedと同じ既存UI遷移の説明は維持してください。
🪄 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: 0a1230ea-c644-4ce9-a1b6-cd9d343661c0
📒 Files selected for processing (1)
docs/spec/ai-agent/ui.md
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9
Fixes Applied SuccessfullyFixed 1 file based on 3 CodeRabbit feedback items. Files modified:
Commit: Summary of changes:
The latest autofix changes are on the |
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9
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 `@docs/spec/ai-agent/ui.md`:
- Around line 452-464:
Figma判断項目の一覧に、東海道本線のアイコンがりんかい線と同一になっている既知の不一致を修正待ち項目として追加してください。「全項目とも確定」という表現が誤解を招かないよう、当該アイコンは修正確認後に確定扱いと明記し、既存の確定項目は変更しないでください。
🪄 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: eefc25a0-8afb-4baa-ad28-2f145d5775b3
📒 Files selected for processing (1)
docs/spec/ai-agent/ui.md
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9


概要
#6474 でFIXしたAIエージェント設計(
docs/spec/ai-agent/architecture.md)にフィットするUI設計書を追加します。Figmaデザインは人力ではなくFigma MCPで本書を入力として起こし、@TinyKitten がレビュー・採否判断を行う前提の中間計画書です(#6477 の成果物)。変更の種類
変更内容
docs/spec/ai-agent/ui.mdを新規追加。主な内容:#FAFAFA背景・白カード + シャドウ・アクセント#008ffe・LEDテーマ時のドットフォント + 角丸なし)を全面踏襲し、新規のビジュアル語彙は「チャットバブル」「タイピングインジケータ」の2つに限定RouteSearchScreenの検索バー直下バナー / 代替: FooterTabBarタブ化・ホーム画面カード)DestinationAgentScreenの画面構成(ヘッダー・メッセージリスト・入力バーの3層)とASCIIワイヤフレームCommonCard流用で検索結果と同一の見た目にし、GET_STATIONS_BY_IDSでの再取得タイミングを含めて規定#0071CE)、提案カードの路線解決ルール(stationId由来のStation.line使用・名称一致禁止)と送信中の再送信ブロック必須条件(ハンドラガード +disabled+accessibilityState)を明文化テスト
ドキュメントのみの変更のため、以下を実行しています。
npx markdownlint-cli2 docs/spec/ai-agent/ui.md: 0 issues(CLAUDE.md記載のMarkdown規約準拠)npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
Closes #6477
スクリーンショット(任意)
なし(ドキュメントのみ)
🤖 Generated with Claude Code
https://claude.ai/code/session_01KDaiKgFRUQAb3Pmn97t2a9
Summary by CodeRabbit