diff --git a/app/src/main/java/com/yugahashimoto/andcode/ui/AppDrawerContent.kt b/app/src/main/java/com/yugahashimoto/andcode/ui/AppDrawerContent.kt
index 13b8f4ea8..4d5344f20 100644
--- a/app/src/main/java/com/yugahashimoto/andcode/ui/AppDrawerContent.kt
+++ b/app/src/main/java/com/yugahashimoto/andcode/ui/AppDrawerContent.kt
@@ -129,16 +129,6 @@ fun AppDrawerContent(
.padding(top = 6.dp),
) {
DrawerHeader()
- NewChatRow(onClick = onNewChat)
-
- // Only worth a switcher when there is something to switch between.
- if (agents.size > 1) {
- DrawerAgentChips(
- agents = agents,
- selectedRuntimeId = selectedRuntimeId,
- onSelectAgent = onSelectAgent,
- )
- }
DrawerProjectsSection(
workspaces = workspaces,
@@ -156,6 +146,17 @@ fun AppDrawerContent(
onProjectQueryChange = { projectQuery = it },
)
+ // Only worth a switcher when there is something to switch between.
+ if (agents.size > 1) {
+ DrawerAgentChips(
+ agents = agents,
+ selectedRuntimeId = selectedRuntimeId,
+ onSelectAgent = onSelectAgent,
+ )
+ }
+
+ NewChatRow(onClick = onNewChat)
+
if (recentSessions.isNotEmpty()) {
DrawerSearchField(
query = searchQuery,
@@ -347,34 +348,28 @@ private fun DrawerChatList(
if (unpinned.isEmpty()) return
val defaultLabel = stringResource(R.string.drawer_project_default)
- DrawerSectionHeader(
- text = stringResource(R.string.drawer_recent_chats),
- collapsed = collapsedSections.contains("recent"),
- onToggle = { onToggleSection("recent") },
- )
- AnimatedVisibility(visible = !collapsedSections.contains("recent")) {
- Column {
- // Grouped by project, always. The project/status switch that used to sit here made
- // the drawer ask a question before it answered one, and the status a chat is in
- // already shows on its own row.
- groupedByProject(unpinned).forEach { (key, sessions) ->
- val sectionKey = "project_$key"
- DrawerRecentProjectHeader(
- label = sessions.first().projectLabel(defaultLabel),
- collapsed = collapsedSections.contains(sectionKey),
- onToggle = { onToggleSection(sectionKey) },
+ Column {
+ // Grouped by project, always. The project/status switch that used to sit here made
+ // the drawer ask a question before it answered one, and the status a chat is in
+ // already shows on its own row. There is no "Recent chats" heading above the list:
+ // it is the drawer's main content, so the heading only cost height.
+ groupedByProject(unpinned).forEach { (key, sessions) ->
+ val sectionKey = "project_$key"
+ DrawerRecentProjectHeader(
+ label = sessions.first().projectLabel(defaultLabel),
+ collapsed = collapsedSections.contains(sectionKey),
+ onToggle = { onToggleSection(sectionKey) },
+ )
+ AnimatedVisibility(visible = !collapsedSections.contains(sectionKey)) {
+ DrawerChatRows(
+ sessions = sessions,
+ selectedSessionIds = selectedSessionIds,
+ selectionMode = selectionMode,
+ indented = true,
+ onOpenSession = onOpenSession,
+ menuActions = menuActions,
+ onToggleSelection = onToggleSelection,
)
- AnimatedVisibility(visible = !collapsedSections.contains(sectionKey)) {
- DrawerChatRows(
- sessions = sessions,
- selectedSessionIds = selectedSessionIds,
- selectionMode = selectionMode,
- indented = true,
- onOpenSession = onOpenSession,
- menuActions = menuActions,
- onToggleSelection = onToggleSelection,
- )
- }
}
}
}
diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml
index 1ef9f73b2..a5724185e 100644
--- a/app/src/main/res/values-ar/strings.xml
+++ b/app/src/main/res/values-ar/strings.xml
@@ -457,7 +457,6 @@
القائمة
بحث
- الدردشات الأخيرة
افتراضي
المشاريع
الوكلاء
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 8ccb6c1b2..0bcff9048 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -451,7 +451,6 @@
Menú
Buscar
- Chats recientes
Predeterminado
Proyectos
Agentes
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index e525d6854..51f7623f4 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -451,7 +451,6 @@
Menu
Rechercher
- Discussions récentes
Par défaut
Projets
Agents
diff --git a/app/src/main/res/values-ja/strings.xml b/app/src/main/res/values-ja/strings.xml
index adc9ea267..545096348 100644
--- a/app/src/main/res/values-ja/strings.xml
+++ b/app/src/main/res/values-ja/strings.xml
@@ -448,7 +448,6 @@
メニュー
検索
- 最近のチャット
デフォルト
プロジェクト
エージェント
diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml
index ac8c50e73..11159affb 100644
--- a/app/src/main/res/values-pt-rBR/strings.xml
+++ b/app/src/main/res/values-pt-rBR/strings.xml
@@ -451,7 +451,6 @@
Menu
Pesquisar
- Chats recentes
Padrão
Projetos
Agentes
diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml
index 6486c2ee3..4eb2c1132 100644
--- a/app/src/main/res/values-ru/strings.xml
+++ b/app/src/main/res/values-ru/strings.xml
@@ -453,7 +453,6 @@
Меню
Поиск
- Недавние чаты
По умолчанию
Проекты
Агенты
diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml
index 430a9da1d..8abfb28de 100644
--- a/app/src/main/res/values-zh-rCN/strings.xml
+++ b/app/src/main/res/values-zh-rCN/strings.xml
@@ -447,7 +447,6 @@
菜单
搜索
- 最近的聊天
默认
项目
智能体
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index eda1a5b19..1ebcfb62d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -436,7 +436,6 @@
Menu
Search
- Recent chats
Default
Projects
Agents