Skip to content

feat(frontend): AppBar コンポーネント実装#71

Open
aowheel wants to merge 3 commits intomainfrom
issue/56
Open

feat(frontend): AppBar コンポーネント実装#71
aowheel wants to merge 3 commits intomainfrom
issue/56

Conversation

@aowheel
Copy link
Collaborator

@aowheel aowheel commented Mar 11, 2026

関連 Issue

Closes #56

変更内容

  • AppBar(sticky コンテナ)、AppBarItem(left/center/right スロット)、AppBarBackButtonAppBarTitleAppBarAvatar の5コンポーネントを実装
  • Figma の3バリエーション(アバター+タイトル / 戻る+タイトル / 戻る+タイトル+右アクション)に対応
  • 長文タイトルの truncate 動作を含む Ladle ストーリーを4パターン作成

動作確認

  • ローカル環境で動作確認済み
  • テストが通ることを確認済み
  • ビルドが成功することを確認済み

設計メモ

  • Theme の semantic color / typography のみ使用(ベタ書きなし)
  • 左右スロットは absolute 配置、中央は px-40 で重なり防止 + truncate
  • a11y: aria-labelfocus-visible:ring 対応
  • アイコンは lucide-react をプレースホルダーとして使用

🤖 Generated with Claude Code

Implement AppBar, AppBarItem, AppBarBackButton, AppBarTitle, and
AppBarAvatar components using semantic design tokens. Includes Ladle
stories for all three Figma variants plus long title truncation.

Closes #56

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 11, 2026 09:56
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

フロントエンドの画面上部ナビゲーションとして利用する AppBar 系コンポーネント群を追加し、Ladle で Figma 想定バリエーションの見た目確認ができるようにする PR です。

Changes:

  • AppBar / AppBarItem / AppBarBackButton / AppBarTitle / AppBarAvatar の UI コンポーネントを追加
  • 主要 4 パターン(アバター + タイトル、戻る + タイトル、戻る + タイトル + アクション、長文タイトルの truncate)の Ladle ストーリーを追加

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 6 comments.

File Description
packages/frontend/app/components/ui/app-bar.tsx AppBar コンポーネント群の実装を追加
packages/frontend/app/components/app-bar.stories.tsx AppBar の Ladle ストーリーを追加

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

- Replace external dicebear URL with inline data URI for avatar
- Replace window.history.back() with console.log in Ladle stories
- Remove typography classes from AppBarItem center slot (keep in AppBarTitle)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

コンポーネント実装:AppBar(AppBar_Item)

2 participants