Skip to content

feat(drawer): reorder sections and drop the Recent chats heading - #449

Merged
yuga-hashimoto merged 1 commit into
mainfrom
feat/drawer-section-order
Nov 26, 2026
Merged

yuga-hashimoto merged 1 commit into
mainfrom
feat/drawer-section-order

Conversation

@yuga-hashimoto

Copy link
Copy Markdown
Owner

概要

ドロワー(サイドバー)の並びを要望どおり変更しました。

  • 並び順: ヘッダー → プロジェクト → 各エージェント → 新しいチャット → チャット検索 → チャット一覧
  • 折りたたみ可能な「最近のチャット」見出しを削除し、検索欄の直後にチャット一覧が続くように変更(展開不要)
  • 未使用になった drawer_recent_chats 文字列を全ロケールから削除

Test plan

  • CI(ビルド・テスト)が通ること
  • ドロワーを開き、プロジェクト → エージェント → 新しいチャット → 検索の順で表示されること
  • 「最近のチャット」見出しが消え、プロジェクト毎のチャット一覧が検索欄の下に直接表示されること

Pre-PR review

review 完了です。branch feat/drawer-section-order(親 = origin/main 5a90380d、1 コミット)の差分を全ハンク精査し、周辺コード・テスト・全ロケール・DI 呼び出し元まで確認しました。

判定: APPROVE

ブロッカー

なし

提案(非ブロッキング)

  • README.ja.md:27 — screenshots/navigation-drawer.jpg を参照する alt 文言が「最近のチャット」表示に言及しています。画像が旧並び(または削除した見出し)を写している場合、スクショと alt の更新を検討してください(ビルド・i18n には影響なし)。
  • AppDrawerContent.kt:344 周辺 — 変更自体は正しいですが、Column { groupedByProject(...).forEach { ... } } の外側 Column は必須ではないので、将来整理するなら外せます(動作差なし・任意)。

チェック済み項目

  • スコープ確認: git diff origin/main...feat/drawer-section-order の全 9 ファイル・全ハンクを精査。差分は AppDrawerContent.kt と 8 つの strings.xml のみで、コミットは 1 件、親 SHA が origin/main と一致(worktree ルールの「origin/main 起点・専用ブランチ」を満たす)。
  • 並び順: Header → DrawerProjectsSection → DrawerAgentChips(agents > 1) → NewChatRow → DrawerSearchField → チャット一覧、となり、依頼どおり「プロジェクト → エージェント → 新しいチャット → 検索」になっていることを確認。旧位置の NewChatRow/DrawerAgentChips は削除され二重表示なし。
  • 「最近のチャット」見出し削除: DrawerSectionHeader("recent") と外側 AnimatedVisibility(visible = !… "recent") を除去し、内側のプロジェクト毎 AnimatedVisibility は保持。unpinned.isEmpty() の早期 return も据え置きで「全ピン留め時に空セクションを出さない」既存挙動を維持。
  • i18n: drawer_recent_chats が values と 7 ロケール(ar, es, fr, ja, pt-rBR, ru, zh-rCN)の計 8 ファイルから 1 行ずつ削除され、キー集合は一致。.github/workflows/i18n-check.yml は「ソースに対する翻訳欠落」のみ失敗・余剰キーは警告なので、全ロケール同時削除で警告も出ないことを確認。
  • 参照残り: ベースツリーで drawer_recent_chats を参照するのは 8 つの strings と AppDrawerContent.kt:351 の 9 箇所のみ(リポジトリ全体 grep)。差分がその 9 箇所すべてを除去するため、ブランチ上にダングリング参照は残らない。
  • 折りたたみ状態: collapsedSections の既定は空集合、CollapsedSectionsSaver は任意文字列集合を保存するだけ。過去に保存された "recent" が残っても参照側が消えているため無害。toggledSection テストも "pinned" 対象で影響なし。
  • インポート整合: AnimatedVisibility は pinned/プロジェクト群で、DrawerSectionHeader は pinned と DrawerProjectsSection で引き続き使用。未使用インポート化なし。
  • テスト: DrawerModelTest / DrawerRemovalsTest / DrawerGesturesTest に旧見出し・旧順序・"recent" セクションを前提とするアサートはなし。変更は UI 配置と文字列削除のみで純粋ロジック関数に差分がないため、テスト更新は不要と判断。
  • レイアウト/余白: DrawerRecentProjectHeader は top = 14.dp のパディングを持つため、検索欄直後でも先頭プロジェクト見出しの余白は確保される。
  • 規約: 追加コメントはリポジトリの方針(非自明な決定の説明)に沿っており、ハードコード文字列・秘密情報の混入なし。detekt/spotless で問題になる体裁は見当たらず(on-device 方針に従い Gradle 実行は未実施、CI 検証前提)。

Put Projects first, then the agent switcher, New chat and chat search,
matching the order requested. Remove the collapsible Recent chats
heading so the chat list follows the search field directly.
@yuga-hashimoto
yuga-hashimoto merged commit 9afaed6 into main Nov 26, 2026
5 checks passed
@yuga-hashimoto
yuga-hashimoto deleted the feat/drawer-section-order branch November 26, 2026 03:49
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.

1 participant