Modern Apps git

← Modern-Apps.git

shop: remove profile explainer and address hint copy

Commit
ab8cceb8f9bcb967fb4237b23c22f6145ef40b91
Author
Vayun Mathur <[email protected]>
When
2026-12-02 02:57 UTC (4 days ago)
Parents
f4eb56e
Remove the Encrypted on this device. sentence from the profile
explainer (the checkout-use sentence remains), remove the
Needed when a merchant ships your order. hint under the delivery
address header, and drop (optional) from that header so it now
reads Delivery address.

Copy only: every profile and delivery address field, the
on-device encryption behaviour, and all validation are unchanged.
The delivery_address_hint string is deleted as now unused, and
delivery_address_optional is renamed to delivery_address with
the shortened value; the locale string files contained none of
these keys. ShopScreensTest is updated for the new header text.

Verified with :shop:lint :shop:lintVitalRelease
:shop:testDevUnitTest (BUILD SUCCESSFUL; lintVitalRelease was
SKIPPED by Gradle after lintVitalAnalyzeRelease ran).

Diff

shop/src/main/java/com/vayunmathur/shop/ui/ProfileContent.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/ui/ProfileContent.kt b/shop/src/main/java/com/vayunmathur/shop/ui/ProfileContent.ktindex 46f45d0f32..ea6445b4a2 100644--- a/shop/src/main/java/com/vayunmathur/shop/ui/ProfileContent.kt+++ b/shop/src/main/java/com/vayunmathur/shop/ui/ProfileContent.kt@@ -78,8 +78,7 @@ fun ProfileContent(profile: ShopProfile?, required: Boolean, onSave: (ShopProfil                 }             }             item {-                Text(stringResource(R.string.delivery_address_optional), style = MaterialTheme.typography.titleSmall)-                Text(stringResource(R.string.delivery_address_hint), style = MaterialTheme.typography.bodySmall)+                Text(stringResource(R.string.delivery_address), style = MaterialTheme.typography.titleSmall)                 ProfileField(stringResource(R.string.street_address), draft.street) { draft = draft.copy(street = it) }                 ProfileField(stringResource(R.string.apartment_address), draft.extendedAddress) {                     draft = draft.copy(extendedAddress = it)
shop/src/main/res/values/strings.xml
diff --git a/shop/src/main/res/values/strings.xml b/shop/src/main/res/values/strings.xmlindex 1263aa366d..682412d87e 100644--- a/shop/src/main/res/values/strings.xml+++ b/shop/src/main/res/values/strings.xml@@ -96,18 +96,16 @@     <string name="profile_title">Profile</string>     <!-- ProfileScreen: first-run gate headline above the profile form -->     <string name="profile_add_details">Add your details to start shopping.</string>-    <!-- ProfileScreen: explainer under the headline describing on-device encryption and checkout use -->-    <string name="profile_explainer">Encrypted on this device. Checkout uses these details and sends them to a merchant only when you create or update a session.</string>+    <!-- ProfileScreen: explainer under the headline describing checkout use -->+    <string name="profile_explainer">Checkout uses these details and sends them to a merchant only when you create or update a session.</string>     <!-- ProfileScreen: label for the first name field -->     <string name="first_name">First name</string>     <!-- ProfileScreen: label for the last name field -->     <string name="last_name">Last name</string>     <!-- ProfileScreen: label for the phone field, international format. Keep the example number untranslated -->     <string name="phone_international">Phone (international, e.g. +14155550123)</string>-    <!-- ProfileScreen: section header for the optional delivery address -->-    <string name="delivery_address_optional">Delivery address (optional)</string>-    <!-- ProfileScreen: hint under the delivery address header -->-    <string name="delivery_address_hint">Needed when a merchant ships your order.</string>+    <!-- ProfileScreen: section header for the delivery address -->+    <string name="delivery_address">Delivery address</string>     <!-- ProfileScreen: label for the street address field -->     <string name="street_address">Street address</string>     <!-- ProfileScreen: label for the apartment / additional address field -->
shop/src/test/java/com/vayunmathur/shop/ui/ShopScreensTest.kt
diff --git a/shop/src/test/java/com/vayunmathur/shop/ui/ShopScreensTest.kt b/shop/src/test/java/com/vayunmathur/shop/ui/ShopScreensTest.ktindex 4c9670610d..b5ca4d3318 100644--- a/shop/src/test/java/com/vayunmathur/shop/ui/ShopScreensTest.kt+++ b/shop/src/test/java/com/vayunmathur/shop/ui/ShopScreensTest.kt@@ -272,7 +272,7 @@ class ShopScreensTest {         val vm = ShopViewModel()         composeRule.setContent { ProfileScreen(vm, required = false) }         scrollListTo(2)-        composeRule.onNodeWithText("Delivery address (optional)").assertIsDisplayed()+        composeRule.onNodeWithText("Delivery address").assertIsDisplayed()         scrollListTo(3)         composeRule.onNodeWithText("Save").assertIsDisplayed()     }