Add new "Premium Features" link on the navbar "Features & Benefits", and hide it behind the "premium-features-discoverability" split test (#8269)

GitOrigin-RevId: 5dae86818a485c74078683422ec44008fd754f27
This commit is contained in:
M Fahru 2022-06-03 04:06:17 -04:00 committed by Copybot
parent 2ab5189771
commit 4f127f8408
3 changed files with 30 additions and 1 deletions

View file

@ -78,7 +78,10 @@ function initialize(webRouter, privateApiRouter, publicApiRouter) {
webRouter.get(
'*',
expressify(
SplitTestMiddleware.loadAssignmentsInLocals(['unified-navigation'])
SplitTestMiddleware.loadAssignmentsInLocals([
'unified-navigation',
'premium-features-discoverability',
])
)
)

View file

@ -75,6 +75,19 @@ nav.navbar.navbar-default.navbar-main
each child in item.dropdown
if child.divider
li.divider
if child.splitTest
if (splitTestVariants && (splitTestVariants[child.splitTest.name] === child.splitTest.variant))
li
if child.url
a(
href=child.url,
class=child.class,
event-tracking=child.event
event-tracking-mb="true"
event-tracking-trigger="click"
) !{translate(child.text)}
else
| !{translate(child.text)}
else
li
if child.url

View file

@ -58,6 +58,19 @@ nav.navbar.navbar-default.navbar-main
each child in item.dropdown
if child.divider
li.divider
if child.splitTest
if (splitTestVariants && (splitTestVariants[child.splitTest.name] === child.splitTest.variant))
li
if child.url
a(
href=child.url,
class=child.class,
event-tracking=child.event
event-tracking-mb="true"
event-tracking-trigger="click"
) !{translate(child.text)}
else
| !{translate(child.text)}
else
li
if child.url