Skip to content

Commit f13d630

Browse files
committed
Call the first tab Chats, as the desktop app now does; its bridge id stays conversations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012xYtaUjbkB1hwLtK4TEzhq
1 parent 58388b3 commit f13d630

6 files changed

Lines changed: 15 additions & 11 deletions

File tree

‎android-shell/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ What is native:
5858
comes back goes to `enter` with the header and `to` encoded as one value (every character outside
5959
`A-Z a-z 0-9 - _ . ~` percent-encoded). Unit-tested against the doc's worked example
6060
(`ShellUrlsTest`); the mock has no hosted sign-in route, so there is no end-to-end test of it here.
61-
- **The bottom bar.** A Material 3 `BottomNavigationView`: Conversations, Home, Bots (`tab_conversations`,
61+
- **The bottom bar.** A Material 3 `BottomNavigationView`: Chats (the web app's `/conversations`; bridge tab id `conversations`), Home, Bots (`tab_conversations`,
6262
`tab_home`, `tab_bots`; Home selected at start). A tap (also on the selected tab) asks the page to
6363
navigate with the `openbot:open` event and loads the page if nobody handled it. The page's `route`
6464
messages select the tab. One WebView for all tabs. The bar hides while the keyboard is up. The bar,

‎android-shell/app/src/androidTest/java/ai/openbot/shell/test/HardeningTest.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class HardeningTest : ShellTestBase() {
4949
checkEquals("Sign in", find("sign_in_button")?.text, "the Sign in button's spoken label")
5050
check(device.hasObject(By.text("OpenBot")), "the first screen's heading")
5151
if (!launchSignedIn("labels-signed-in")) return
52-
for (title in listOf("Conversations", "Home", "Bots")) {
52+
for (title in listOf("Chats", "Home", "Bots")) {
5353
val item = find("bottom_nav")?.findObject(By.desc(title)) ?: find("bottom_nav")?.findObject(By.text(title))
5454
check(item != null, "the $title tab has no spoken label")
5555
}

‎android-shell/app/src/androidTest/java/ai/openbot/shell/test/ShellFlowTest.kt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ShellFlowTest : ShellTestBase() {
3232
val c = bounds(conversations)!!
3333
val h = bounds(home)!!
3434
val b = bounds(bots)!!
35-
check(c.left < h.left && h.left < b.left, "$moment: tabs are not Conversations, Home, Bots from left to right")
35+
check(c.left < h.left && h.left < b.left, "$moment: tabs are not Chats, Home, Bots from left to right")
3636
val web = bounds(find("openbot_webview"))
3737
val bar = bounds(find("bottom_nav"))
3838
if (web != null && bar != null) {
@@ -139,8 +139,8 @@ class ShellFlowTest : ShellTestBase() {
139139
for (title in listOf("Competitor pricing notes", "Quarterly forecast", "Trip to Lisbon")) {
140140
check(waitPageText(title, 20_000), "Conversations does not list '$title'")
141141
}
142-
check(waitForState("tab=conversations", 5_000), "Conversations is not selected: ${debugState()}")
143-
check(waitForState("nav=event", 5_000), "the Conversations tap was not handled by openbot:open: ${debugState()}")
142+
check(waitForState("tab=conversations", 5_000), "Chats is not selected: ${debugState()}")
143+
check(waitForState("nav=event", 5_000), "the Chats tap was not handled by openbot:open: ${debugState()}")
144144
sleep(1_000)
145145
screenshot("2-conversations")
146146
find("openbot_webview")?.let { web ->

‎android-shell/app/src/androidTest/java/ai/openbot/shell/test/ShellTestBase.kt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ abstract class ShellTestBase {
192192
fun waitGone(id: String, timeoutMs: Long): Boolean = device.wait(Until.gone(res(id)), timeoutMs) ?: false
193193

194194
enum class Tab(val key: String, val title: String) {
195-
CONVERSATIONS("conversations", "Conversations"), HOME("home", "Home"), BOTS("bots", "Bots")
195+
CONVERSATIONS("conversations", "Chats"), HOME("home", "Home"), BOTS("bots", "Bots")
196196
}
197197

198198
/** A tab of the native bottom bar (BottomNavigationView item, resource id tab_<name>). */
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<menu xmlns:android="http://schemas.android.com/apk/res/android">
2+
<menu xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto">
34
<item
45
android:id="@+id/tab_conversations"
56
android:icon="@drawable/tab_conversations"
6-
android:title="@string/tab_conversations" />
7+
android:title="@string/tab_conversations"
8+
app:contentDescription="@string/tab_conversations" />
79
<item
810
android:id="@+id/tab_home"
911
android:icon="@drawable/tab_home"
10-
android:title="@string/tab_home" />
12+
android:title="@string/tab_home"
13+
app:contentDescription="@string/tab_home" />
1114
<item
1215
android:id="@+id/tab_bots"
1316
android:icon="@drawable/ic_bolt"
14-
android:title="@string/tab_bots" />
17+
android:title="@string/tab_bots"
18+
app:contentDescription="@string/tab_bots" />
1519
</menu>

‎android-shell/app/src/main/res/values/strings.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<string name="sign_in_too_long">Sign-in took too long. Try again.</string>
1111
<string name="sign_in_no_browser">No browser to sign in with. Try again.</string>
1212

13-
<string name="tab_conversations">Conversations</string>
13+
<string name="tab_conversations">Chats</string>
1414
<string name="tab_home">Home</string>
1515
<string name="tab_bots">Bots</string>
1616

0 commit comments

Comments
 (0)