Modern Apps git

← Modern-Apps.git

globalesim: simplify search hint to Search

Commit
8a21c7e1a8d6c9cbe03807c059f87d77e7e3fb69
Author
Vayun Mathur <[email protected]>
When
2026-12-02 03:07 UTC (4 days ago)
Parents
a411c77
The pricing country filter hinted "Search countries"; the
rate list below makes the scope obvious. Use the shared
localized UiR.string.search, delete the unused
search_countries string, and update tests that awaited
the old hint.

Verified: :globalesim:testDevUnitTest green (65 tests) and
:globalesim:lintVitalRelease green. :globalesim:lint is
red at baseline (2 FixtureDeterminism errors in untouched
EsimViewModelTest/IdAndKeyStoresTest) and remains so.

Diff

globalesim/src/androidTest/java/com/vayunmathur/globalesim/ui/CoreJourneyTest.kt
diff --git a/globalesim/src/androidTest/java/com/vayunmathur/globalesim/ui/CoreJourneyTest.kt b/globalesim/src/androidTest/java/com/vayunmathur/globalesim/ui/CoreJourneyTest.ktindex d3436a3cc9..027c3fcd8d 100644--- a/globalesim/src/androidTest/java/com/vayunmathur/globalesim/ui/CoreJourneyTest.kt+++ b/globalesim/src/androidTest/java/com/vayunmathur/globalesim/ui/CoreJourneyTest.kt@@ -36,7 +36,7 @@ class CoreJourneyTest {         launch(packageName, device, targetContext)         waitText(device, "One global eSIM for 200+ countries")         clickText(device, "Pricing")-        waitAny(device, "Search countries", "No rates yet", "Pricing")+        waitAny(device, "Search", "No rates yet", "Pricing")         assertEquals(packageName, device.currentPackageName)     } 
globalesim/src/main/java/com/vayunmathur/globalesim/ui/PricingScreen.kt
diff --git a/globalesim/src/main/java/com/vayunmathur/globalesim/ui/PricingScreen.kt b/globalesim/src/main/java/com/vayunmathur/globalesim/ui/PricingScreen.ktindex 786a7a523e..74c30e2af9 100644--- a/globalesim/src/main/java/com/vayunmathur/globalesim/ui/PricingScreen.kt+++ b/globalesim/src/main/java/com/vayunmathur/globalesim/ui/PricingScreen.kt@@ -64,7 +64,7 @@ fun PricingScreen(         search = ScaffoldSearch(             query = query,             onQueryChange = { query = it },-            placeholder = stringResource(R.string.search_countries),+            placeholder = stringResource(UiR.string.search),         ),         horizontalPadding = 8.dp,         verticalArrangement = Arrangement.spacedBy(4.dp),
globalesim/src/main/res/values/strings.xml
diff --git a/globalesim/src/main/res/values/strings.xml b/globalesim/src/main/res/values/strings.xmlindex 394a5e4da1..1dc2e373a8 100644--- a/globalesim/src/main/res/values/strings.xml+++ b/globalesim/src/main/res/values/strings.xml@@ -44,8 +44,6 @@     <!-- HomeScreen statusLabel: Display label while the unknown profile status is being checked. -->     <string name="status_checking">Checking…</string> -    <!-- PricingScreen: Placeholder of the country search field. Verb phrase. -->-    <string name="search_countries">Search countries</string>     <!-- PricingScreen: Empty-state title when no rates are loaded and no search is active. -->     <string name="no_rates_yet">No rates yet</string>     <!-- PricingScreen: Empty-state message when rates failed to load. -->
globalesim/src/test/java/com/vayunmathur/globalesim/ui/PricingSheetComposeTest.kt
diff --git a/globalesim/src/test/java/com/vayunmathur/globalesim/ui/PricingSheetComposeTest.kt b/globalesim/src/test/java/com/vayunmathur/globalesim/ui/PricingSheetComposeTest.ktindex 32ef791c97..2de3a4de5a 100644--- a/globalesim/src/test/java/com/vayunmathur/globalesim/ui/PricingSheetComposeTest.kt+++ b/globalesim/src/test/java/com/vayunmathur/globalesim/ui/PricingSheetComposeTest.kt@@ -112,6 +112,6 @@ class PricingSheetComposeTest {         composeRule.onAllNodesWithText("Purchase")[0].assertIsDisplayed()         composeRule.onAllNodesWithText("Pricing")[0].performClick()         composeRule.waitForIdle()-        composeRule.onNodeWithText("Search countries", substring = true).assertExists()+        composeRule.onNodeWithText("Search", substring = true).assertExists()     } }