[PM-23121] Update privileged app list item subtext (#5475)

This commit is contained in:
Patrick Honkonen
2025-07-03 10:41:43 -04:00
committed by GitHub
parent 59a49355fd
commit b0309e876e
4 changed files with 6 additions and 13 deletions

View File

@@ -181,10 +181,7 @@ private fun PrivilegedAppsListContent(
) { index, item ->
BitwardenTextRow(
text = item.label,
description = stringResource(
R.string.trusted_by_x,
stringResource(item.trustAuthority.displayName),
),
description = stringResource(item.trustAuthority.description),
clickable = false,
onClick = {},
cardStyle = state.installedApps

View File

@@ -33,21 +33,21 @@ data class PrivilegedAppListItem(
* Represents the trust authority of a privileged app.
*/
enum class PrivilegedAppTrustAuthority(
@StringRes val displayName: Int,
@field:StringRes val description: Int,
) {
/**
* The app is trusted by Google.
*/
GOOGLE(displayName = R.string.google),
GOOGLE(description = R.string.trusted_by_google),
/**
* The app is trusted by the Bitwarden community.
*/
COMMUNITY(displayName = R.string.the_community),
COMMUNITY(description = R.string.trusted_by_the_community),
/**
* The app is trusted by the user.
*/
USER(displayName = R.string.you),
USER(description = R.string.trusted_by_you),
}
}

View File

@@ -985,11 +985,7 @@ Do you want to switch to this account?</string>
<string name="privileged_apps">Privileged apps</string>
<string name="unrecognized_browser">Unrecognized browser</string>
<string name="learn_more_about_using_passkeys_with_bitwarden">Learn more about using passkeys with Bitwarden.</string>
<string name="google">Google</string>
<string name="the_community">the Community</string>
<string name="you">YOU</string>
<string name="all_trusted_apps">All trusted apps</string>
<string name="trusted_by_x">Trusted by %s</string>
<string name="are_you_sure_you_want_to_stop_trusting_x">Are you sure you want to stop trusting %s?</string>
<string name="installed_apps">Installed apps</string>
<string name="delete_x">Delete %s</string>

View File

@@ -173,7 +173,7 @@ class PrivilegedAppsListScreenTest : BitwardenComposeTest() {
)
composeTestRule
.onNodeWithText("Trusted by YOU")
.onNodeWithText("Trusted by You")
.assertIsDisplayed()
mutableStateFlow.value = DEFAULT_STATE.copy(