Skip to content

Commit

Permalink
Ship Review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Oct 21, 2024
1 parent 07dc3a4 commit d70c72b
Show file tree
Hide file tree
Showing 3 changed files with 158 additions and 2 deletions.
2 changes: 2 additions & 0 deletions DuckDuckGo/HomePage/Model/NewTabPageSearchBoxExperiment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ protocol NewTabPageSearchBoxExperimentCohortDeciding {
struct DefaultNewTabPageSearchBoxExperimentCohortDecider: NewTabPageSearchBoxExperimentCohortDeciding {
var cohort: NewTabPageSearchBoxExperiment.Cohort? {

return .experiment

// We enroll all new users
if AppDelegate.isNewUser {
return Bool.random() ? .experiment : .control
Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/RemoteMessaging/RemoteMessagingClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ final class RemoteMessagingClient: RemoteMessagingProcessing {
static let minimumConfigurationRefreshInterval: TimeInterval = 60 * 30
static let endpoint: URL = {
#if DEBUG
URL(string: "https://raw.githubusercontent.com/duckduckgo/remote-messaging-config/main/samples/ios/sample1.json")!
URL(string: "https://www.jsonblob.com/api/1261360708536098816")!
#else
URL(string: "https://staticcdn.duckduckgo.com/remotemessaging/config/v1/macos-config.json")!
URL(string: "https://raw.githubusercontent.com/duckduckgo/macos-browser/refs/heads/dominik/ntp-search-bar-ship-review/rmf.config")!
#endif
}()
}
Expand Down
154 changes: 154 additions & 0 deletions rmf.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
{
"version": 5,
"messages": [
{
"id": "1",
"content": {
"messageType": "small",
"titleText": "Title Goes Here",
"descriptionText": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus."
},
"matchingRules": [],
"exclusionRules": [],
"translations": {
"pl-US": {
"messageType": "medium",
"titleText": "Tytuł idzie tutaj",
"descriptionText": "Lorem ipsum dolor sit amet, pozdrawiam adipiscing elit. Etiam eget elit vel ex dapibus.",
"placeholder": "AppUpdate"
}
}
},
{
"id": "1-2",
"content": {
"messageType": "small",
"titleText": "Title Goes Here",
"descriptionText": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus."
},
"matchingRules": [],
"exclusionRules": [],
"translations": {
"pl-US": {
"messageType": "medium",
"titleText": "Tytuł idzie tutaj",
"descriptionText": "Lorem ipsum dolor sit amet, pozdrawiam adipiscing elit. Etiam eget elit vel ex dapibus.",
"placeholder": "AppUpdate"
}
}
},
{
"id": "1-3",
"content": {
"messageType": "big_two_action",
"titleText": "macOS Update Recommended",
"descriptionText": "Support for macOS Big Sur is ending soon. Update to macOS Monterey or newer before July 8, 2024, to keep getting the latest browser updates and improvements. Support for macOS Big Sur is ending soon. Update to macOS Monterey or newer before July 8, 2024, to keep getting the latest browser updates and improvements. Support for macOS Big Sur is ending soon. Update to macOS Monterey or newer before July 8, 2024, to keep getting the latest browser updates and improvements.",
"placeholder": "CriticalUpdate",
"primaryActionText": "How To Update macOS",
"primaryAction": {
"type": "url",
"value": "https://support.apple.com/en-us/108382"
},
"secondaryActionText": "Remind Me Later",
"secondaryAction": {
"type": "dismiss",
"value": ""
}
},
"matchingRules": [],
"exclusionRules": []
},
{
"id": "2",
"content": {
"messageType": "medium",
"titleText": "Title Goes Here",
"descriptionText": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam eget elit vel ex dapibus.",
"placeholder": "AppUpdate"
},
"matchingRules": [],
"exclusionRules": []
},
{
"id": "2-1",
"content": {
"messageType": "big_single_action",
"titleText": "Tell Us What Brought You Here",
"descriptionText": "Browser updated to version 1.97.0.",
"placeholder": "AppUpdate",
"primaryActionText": "See What's New",
"primaryAction": {
"type": "url",
"value": "https://duckduckgo.com/mac"
}
},
"matchingRules": [],
"exclusionRules": []
},
{
"id": "3",
"content": {
"messageType": "big_single_action",
"titleText": "Update Available!",
"descriptionText": "A new version of DuckDuckGo Browser is available. Update now to enjoy improved privacy features and enhanced performance.",
"placeholder": "AppUpdate",
"primaryActionText": "Update Now",
"primaryAction": {
"type": "url",
"value": "https://duckduckgo.com/mac"
}
},
"matchingRules": [],
"exclusionRules": []
},
{
"id": "4",
"content": {
"messageType": "big_single_action",
"titleText": "Tell Us Your Thoughts on Privacy Pro",
"descriptionText": "Take our short anonymous survey and share your feedback.",
"placeholder": "Announce",
"primaryActionText": "Take Survey...",
"primaryAction": {
"type": "url",
"value": "https://duckduckgo.com/pro"
}
},
"matchingRules": [],
"exclusionRules": []
},
{
"id": "6",
"content": {
"messageType": "big_single_action",
"titleText": "New Search Feature!",
"descriptionText": "DuckDuckGo now offers Instant Answers for quicker access to the information you need.",
"placeholder": "DDGAnnounce",
"primaryActionText": "Learn More",
"primaryAction": {
"type": "url",
"value": "https://duckduckgo.com"
}
},
"matchingRules": [],
"exclusionRules": []
},
{
"id": "7",
"content": {
"messageType": "big_single_action",
"titleText": "Tell Us Why You Left Privacy Pro",
"descriptionText": "By taking our brief survey, you'll help us improve Privacy Pro for all subscribers.",
"placeholder": "PrivacyShield",
"primaryActionText": "Take Survey...",
"primaryAction": {
"type": "url",
"value": "https://duckduckgo.com/pro"
}
},
"matchingRules": [],
"exclusionRules": []
}
],
"rules": []
}

0 comments on commit d70c72b

Please sign in to comment.