From 950a274ba4e12dd6c5fb4ab2ac02309f23772513 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Mon, 17 Aug 2026 12:48:28 +1200 Subject: [PATCH 1/2] Open latest post from Stats summary card --- .../StatsLatestPostSummaryInsightsCell.swift | 1 + .../ViewRelated/Stats/SiteStatsTableViewCells.swift | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/WordPress/Classes/ViewRelated/Stats/Insights/StatsLatestPostSummaryInsightsCell.swift b/WordPress/Classes/ViewRelated/Stats/Insights/StatsLatestPostSummaryInsightsCell.swift index cf155ddadb91..a755c81dbec7 100644 --- a/WordPress/Classes/ViewRelated/Stats/Insights/StatsLatestPostSummaryInsightsCell.swift +++ b/WordPress/Classes/ViewRelated/Stats/Insights/StatsLatestPostSummaryInsightsCell.swift @@ -193,6 +193,7 @@ class StatsLatestPostSummaryInsightsCell: StatsBaseCell, LatestPostSummaryConfig func configure(withInsightData lastPostInsight: StatsLastPostInsight?, andDelegate delegate: SiteStatsInsightsDelegate?) { siteStatsInsightsDelegate = delegate statSection = .insightsLatestPostSummary + selectionStyle = lastPostInsight == nil ? .none : .default guard let lastPostInsight else { toggleNoData(show: true) diff --git a/WordPress/Classes/ViewRelated/Stats/SiteStatsTableViewCells.swift b/WordPress/Classes/ViewRelated/Stats/SiteStatsTableViewCells.swift index 637a95b33faf..8edc72f99473 100644 --- a/WordPress/Classes/ViewRelated/Stats/SiteStatsTableViewCells.swift +++ b/WordPress/Classes/ViewRelated/Stats/SiteStatsTableViewCells.swift @@ -217,7 +217,17 @@ struct LatestPostSummaryRow: StatsHashableImmuTableRow { let summaryData: StatsLastPostInsight? let chartData: StatsPostDetails? weak var siteStatsInsightsDelegate: SiteStatsInsightsDelegate? - let action: ImmuTableAction? = nil + var action: ImmuTableAction? { + guard let url = summaryData?.url else { + return nil + } + + let delegate = siteStatsInsightsDelegate + return { [weak delegate] _ in + WPAppAnalytics.track(.statsItemTappedLatestPostSummaryPost) + delegate?.displayWebViewWithURL?(url) + } + } let statSection: StatSection? func configureCell(_ cell: UITableViewCell) { From 1de9e0512a58e1874d94f192158dea031442a449 Mon Sep 17 00:00:00 2001 From: Tony Li Date: Mon, 17 Aug 2026 13:07:53 +1200 Subject: [PATCH 2/2] Add CMM-2313 release note --- RELEASE-NOTES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/RELEASE-NOTES.txt b/RELEASE-NOTES.txt index ce6c64879123..91800ef5124d 100644 --- a/RELEASE-NOTES.txt +++ b/RELEASE-NOTES.txt @@ -3,6 +3,7 @@ * [*] Custom Post Types: Make custom post types with REST API and editor support available in My Site [#25849] * [*] Stop the media picker from removing gallery images when you cancel it in the experimental editor [#25866] * [*] Stats: Fix the screen getting stuck on a loading indicator for self-hosted sites that are not connected to Jetpack [#25858] +* [*] Stats: Open the latest post when tapping the Latest Post Summary card in the Insights tab [#25896] 27.1 -----