-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Country wide targetting #674
Conversation
1a10039
to
e736633
Compare
…hema and update the sidebar filter
Gutter tests
…or existing tests
… dropdown for the Apple News Epics
75ee851
to
060d9c5
Compare
public/src/utils/models.tsx
Outdated
@@ -287,6 +287,7 @@ export const countries: CommonStringObject = { | |||
ZW: 'Zimbabwe', | |||
}; | |||
|
|||
export const countryNames = Object.entries(countries).map(_ => [_[0], _[1]]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is quite hard to follow - how about removing this and instead in MultiSelectCountryEditor.tsx
define:
const options: Option[] = Object.entries(countries).map(([value, label]) => ({ value, label }));
@@ -135,6 +136,35 @@ const BannerTestEditor: React.FC<ValidatedTestEditorProps<BannerTest>> = ({ | |||
updateTest({ ...test, locations: updatedRegions }); | |||
}; | |||
|
|||
function concatUniqueLocations(countryGroups: Region[], locations: Region[]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is necessary if we initialise regionTargeting
with the country groups from locations
.
Here's a proposal for doing this which I think simplifies things a lot - what do you think? -
#682
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, I am happy to merge this
simplify locations deprecation
@@ -24,11 +25,16 @@ const useStyles = makeStyles(({ spacing, palette }: Theme) => ({ | |||
color: palette.grey[900], | |||
fontWeight: 500, | |||
}, | |||
container1: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could this name be more descriptive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great!
Seen on PROD (merged by @LAKSHMIRPILLAI 7 minutes and 28 seconds ago)
|
Co-authored with: @charleycampbell
What does this change?
Country wide targeting in RRCP
Trello card
This PR is to enable country wide targeting along with Region wide targeting in RRCP under the 'Target Audience' section .The countries to be targeted can be selected from the dropdown list .The supporting changes in support-dotcom-component are in the SDC PR
How to test
Test in CODE Detailed testing doc is added [here]
Tests for RRCP changes
Similar tests were done for Banners, Headers, Liveblog Epics, Apple News Epics and AMP Epics
Images