Repository navigation
feat(drawer): reorder sections and drop the Recent chats heading - #449
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
ドロワー(サイドバー)の並びを要望どおり変更しました。
drawer_recent_chats文字列を全ロケールから削除Test plan
Pre-PR review
review 完了です。branch
feat/drawer-section-order(親 =origin/main5a90380d、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 起点・専用ブランチ」を満たす)。DrawerProjectsSection→DrawerAgentChips(agents > 1) →NewChatRow→DrawerSearchField→ チャット一覧、となり、依頼どおり「プロジェクト → エージェント → 新しいチャット → 検索」になっていることを確認。旧位置のNewChatRow/DrawerAgentChipsは削除され二重表示なし。DrawerSectionHeader("recent")と外側AnimatedVisibility(visible = !… "recent")を除去し、内側のプロジェクト毎AnimatedVisibilityは保持。unpinned.isEmpty()の早期 return も据え置きで「全ピン留め時に空セクションを出さない」既存挙動を維持。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のパディングを持つため、検索欄直後でも先頭プロジェクト見出しの余白は確保される。