Skip to content

Commit

Permalink
Updates Jetpack banners and badges copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonis Lilis committed Feb 5, 2024
1 parent 1b865d8 commit 0994c1c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class JetpackFeatureRemovalBrandingUtil @Inject constructor(

fun getBrandingTextByPhase(screen: JetpackPoweredScreen): UiString {
return when (jetpackFeatureRemovalPhaseHelper.getCurrentPhase()) {
PhaseStaticPosters -> UiStringRes(R.string.wp_jetpack_feature_removal_static_posters_phase)
PhaseStaticPosters -> UiStringRes(R.string.wp_jetpack_powered)
PhaseThree -> (screen as? JetpackPoweredScreen.WithDynamicText)?.let { screenWithDynamicText ->
getDynamicBrandingForScreen(screenWithDynamicText)
} ?: UiStringRes(JetpackBrandingUiState.RES_JP_POWERED)
Expand Down
1 change: 0 additions & 1 deletion WordPress/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4545,7 +4545,6 @@ translators: %s: Select control option value e.g: "Auto, 25%". -->
<string name="wp_jetpack_feature_removal_phase_new_users_notifications_description">Get notifications for new comments, likes, views, and more.</string>
<string name="wp_jetpack_feature_removal_phase_self_hosted_users_description">The Jetpack mobile app is designed to work in companion with the Jetpack plugin. Switch now to get access to stats, notifications, reader, and more.</string>
<string name="wp_jetpack_feature_removal_phase_self_hosted_users_title">Your site has the Jetpack plugin</string>
<string name="wp_jetpack_feature_removal_static_posters_phase">Moving to the Jetpack app in a few days.</string>


<!-- Deep Linking Activity Aliases -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ class JetpackFeatureRemovalBrandingUtilTest {

val actual = allJpScreens.map(classToTest::getBrandingTextByPhase)

actual.assertAllMatch(R.string.wp_jetpack_feature_removal_static_posters_phase)
actual.assertAllMatch(R.string.wp_jetpack_powered)
verifyNoInteractions(dateTimeUtilsWrapper)
}

Expand Down

0 comments on commit 0994c1c

Please sign in to comment.