From a01648dd9538e4fbb9421e6685bef53ee8ac585b Mon Sep 17 00:00:00 2001 From: Toni Sevener Date: Tue, 4 Jun 2024 14:08:32 -0500 Subject: [PATCH 1/2] Add edit summary comment back into Image Recommendations flow --- WKData/Sources/WKData/Models/Shared/WKEditSummaryTag.swift | 1 + Wikipedia/Code/ExploreViewController.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/WKData/Sources/WKData/Models/Shared/WKEditSummaryTag.swift b/WKData/Sources/WKData/Models/Shared/WKEditSummaryTag.swift index 55ad1ad7170..8e6d75f7023 100644 --- a/WKData/Sources/WKData/Models/Shared/WKEditSummaryTag.swift +++ b/WKData/Sources/WKData/Models/Shared/WKEditSummaryTag.swift @@ -12,4 +12,5 @@ public enum WKEditSummaryTag: String { case diffRollback = "#diff-rollback" case talkReply = "#talk-reply" case talkTopic = "#talk-topic" + case suggestedEditsAddImageTop = "#app-image-add-top" } diff --git a/Wikipedia/Code/ExploreViewController.swift b/Wikipedia/Code/ExploreViewController.swift index 03312b596b0..346b9be9ba6 100644 --- a/Wikipedia/Code/ExploreViewController.swift +++ b/Wikipedia/Code/ExploreViewController.swift @@ -1276,6 +1276,7 @@ extension ExploreViewController: EditPreviewViewControllerDelegate { saveVC.wikitext = editPreviewViewController.wikitext saveVC.cannedSummaryTypes = [.addedImage, .addedImageAndCaption] saveVC.needsSuppressPosting = FeatureFlags.needsImageRecommendationsSuppressPosting + saveVC.editSummaryTag = .suggestedEditsAddImageTop saveVC.delegate = self saveVC.imageRecLoggingDelegate = self From 49ab9dbc5d6f04be52702e5712a99731bb6968e0 Mon Sep 17 00:00:00 2001 From: Toni Sevener Date: Tue, 4 Jun 2024 15:04:49 -0500 Subject: [PATCH 2/2] Spelling fix --- Wikipedia/Code/ImageRecommendationsFunnel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Wikipedia/Code/ImageRecommendationsFunnel.swift b/Wikipedia/Code/ImageRecommendationsFunnel.swift index b4297465777..2b238ef4857 100644 --- a/Wikipedia/Code/ImageRecommendationsFunnel.swift +++ b/Wikipedia/Code/ImageRecommendationsFunnel.swift @@ -224,7 +224,7 @@ final class ImageRecommendationsFunnel: NSObject { func logSaveChangesPublishSuccess(timeSpent: Int?, revisionID: Int, captionAdded: Bool, altTextAdded: Bool, summaryAdded: Bool) { var actionData = ["revision_id": "\(revisionID)", - "capion_add": "\(captionAdded)", + "caption_add": "\(captionAdded)", "alt_text_add": "\(altTextAdded)", "summary_add": "\(summaryAdded)"] if let timeSpent {