Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ class YearInReviewActivity : BaseActivity() {
submitInteraction(uiState, action = "click", elementId = "visit_store_button")
UriUtil.visitInExternalBrowser(context = this, uri = getString(R.string.year_in_review_store_discount_url).toUri())
}
YearInReviewEndCard.TOP_READ -> {
submitInteraction(uiState, action = "click", elementId = "explore_top_read_button")
UriUtil.visitInExternalBrowser(context = this, uri = getString(R.string.year_in_review_top_read_url).toUri())
}
YearInReviewEndCard.QUIZ -> {
submitInteraction(uiState, action = "click", elementId = "take_quiz_button")
UriUtil.visitInExternalBrowser(context = this, uri = getString(R.string.year_in_review_quiz_url, WikipediaApp.instance.appOrSystemLanguageCode).toUri())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ enum class YearInReviewEndCard(
STORE_DISCOUNT(R.string.yir_store_discount_headline, R.string.yir_store_discount_action),
GAMES(R.string.yir_games_headline, R.string.yir_games_action),
CUSTOMIZE_HOME(R.string.yir_customize_home_headline, R.string.yir_customize_home_action),
TOP_READ(R.string.yir_top_read_headline, R.string.yir_top_read_action),
QUIZ(R.string.yir_quiz_headline, R.string.yir_quiz_action)
}

Expand All @@ -89,6 +90,7 @@ private fun YearInReviewEndCard.supportingText(): String = when (this) {
YearInReviewEndCard.STORE_DISCOUNT -> pluralStringResource(R.plurals.yir_store_discount_supporting, STORE_DISCOUNT_PERCENT, STORE_DISCOUNT_PERCENT)
YearInReviewEndCard.GAMES -> stringResource(R.string.yir_games_supporting)
YearInReviewEndCard.CUSTOMIZE_HOME -> stringResource(R.string.yir_customize_home_supporting)
YearInReviewEndCard.TOP_READ -> stringResource(R.string.yir_top_read_supporting)
YearInReviewEndCard.QUIZ -> stringResource(R.string.yir_quiz_supporting)
}

Expand All @@ -97,6 +99,7 @@ fun YearInReviewEndSlide(
modifier: Modifier = Modifier,
isDonor: Boolean = false,
isTestGroupUser: Boolean = true,
hasEnglishAppLanguage: Boolean = true,
canShareHighlights: Boolean = true,
onCardActionClick: (YearInReviewEndCard) -> Unit = {},
onShareHighlightsClick: () -> Unit = {}
Expand All @@ -110,6 +113,9 @@ fun YearInReviewEndSlide(
add(YearInReviewEndCard.GAMES)
add(YearInReviewEndCard.CUSTOMIZE_HOME)
}
if (hasEnglishAppLanguage) {
add(YearInReviewEndCard.TOP_READ)
}
add(YearInReviewEndCard.QUIZ)
}
BoxWithConstraints(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import kotlinx.coroutines.withTimeoutOrNull
import org.wikipedia.R
import org.wikipedia.WikipediaApp
import org.wikipedia.compose.ComposeColors
import org.wikipedia.compose.components.AppButton
import org.wikipedia.compose.components.WikipediaAlertDialog
Expand Down Expand Up @@ -356,6 +357,7 @@ private fun YearInReviewContent(
YearInReviewEndSlide(
isDonor = page.isDonor,
isTestGroupUser = YearInReviewEndScreenABTest().isUserEligible() && YearInReviewEndScreenABTest().isTestGroupUser(),
hasEnglishAppLanguage = WikipediaApp.instance.languageState.appLanguageCodes.contains("en"),
canShareHighlights = canShareHighlights,
onCardActionClick = onEndCardClick,
onShareHighlightsClick = { isRenderingShareCard = true }
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/values/strings_no_translate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
<string name="year_in_highlights_screenshot_url" translatable="false">wikimediafoundation.org/yir25</string>
<string name="year_in_highlights_screenshot_articles_url" translatable="false">wikimediafoundation.org/2025articles</string>
<string name="year_in_review_store_discount_url" translatable="false">https://store.wikimedia.org/discount/WikiLove?utm_campaign=bf45f7&amp;utm_source=discount_shareable_link</string>
<string name="year_in_review_top_read_url" translatable="false">https://wikimediafoundation.org/news/2026/12/01/wikipedia-most-read-articles-2026/?utm_campaign=26yir&amp;utm_source=26appyir&amp;utm_medium=26andcard</string>
<string name="year_in_review_quiz_url" translatable="false">https://wikipedia25.org/%1$s/which-wikipedia-of-the-future-are-you</string>
<string name="recommended_reading_list_url" translatable="false">https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Android/Rabbit_Holes</string>
<string name="donation_reminders_experiment_url" translatable="false">https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Android/Customizable_Donation_Reminder_Experiment</string>
Expand Down Expand Up @@ -141,4 +142,9 @@
<string name="semantic_search_info_dialog_sample_snippet_ja" translatable="false"><![CDATA[だが、いずれの説も現在の月の力学的・物質科学的な特徴を矛盾なく説明することができなかった。まず、親子説では地球-月系の現在の全 角運動量 を原始地球が単独で持っていたとは考えにくい。兄弟説では月の平均密度から推定される全体的な組成が、地球と比較して金属鉄に乏しいことを説明できない。また、他人説では地球の重力圏外から進入する月が、地球からちょうど良い距離に接近して衛星軌道へ捕らえられる可能性が低い。また、 アポロ計画 により採取された 月の石 の分析結果から判明した地球の マントル と月の石の化学組成や 酸素同位体 比の類似性も、他人説は説明できない。一方で、 月の石 の 放射年代測定 により月が<span class=\"searchmatch\">約45億5000万年前に</span>誕生したこと、月の高地が斜長岩からなることから月はその歴史の初期に高温だったことが明らかとなった。これらの証拠から、有力視されるようになったのが巨大衝突説である。]]></string>
<string name="semantic_search_info_dialog_article_thumbnail_url_ja" translatable="false">https://thumb.wikimedia.org/wikipedia/commons/thumb/e/e1/FullMoon2010.jpg/60px-FullMoon2010.jpg</string>
<string name="semantic_search_info_dialog_search_string_ja" translatable="false">月はどのように形成されたのか?</string>

<!-- Year in Review -->
<string name="yir_top_read_headline" translatable="false">2026\'s most-read articles</string>
<string name="yir_top_read_supporting" translatable="false">Learn what everyone read about on Wikipedia this year. Did the World Cup make the list?</string>
<string name="yir_top_read_action" translatable="false">Explore the top 25</string>
</resources>
Loading