Vector-Local/resources/skins.vector.es6
Jan Drewniak 4c52b69780 Sticky header AB test bucketing for 2 treatment buckets
For idwiki/viwiki, we wish to run the sticky header edit button AB
test so that treatment1 group sees the sticky header without edit
buttons, treatment2 groups sees the sticky header with edit buttons,
and the control/unsampled groups see no sticky header at all.

This patch overrides the configuration to make the sticky header
w/o edit buttons for treatment1, sticky header w/ edit buttons for
treatment2, and hides sticky header for everyone else. This depends
on a configuration with the treatment groups having "treatment1"
and "treatment2" as substrings in their bucket names.

The full configuration for idwiki/viwiki would be something like
the following:

```
$wgVectorStickyHeader = [
	"logged_in" =>  true,
	"logged_out" => false,
];

$wgVectorStickyHeaderEdit = [
		"logged_in" => true,
		"logged_out" => false,
];

$wgVectorWebABTestEnrollment = [
	"name" => "vector.sticky_header_edit",
	"enabled" => true,
	"buckets" => [
		"unsampled" => [
			"samplingRate" => 0
		],
                "noStickyHeaderControl" => [
                        "samplingRate" => 0.34
                ],
		"stickyHeaderNoEditButtonTreatment1" => [
			"samplingRate" => 0.33
		],
		"stickyHeaderEditButtonTreatment2" => [
			"samplingRate" => 0.33
		]
	],
];
```

Bug: T312573
Change-Id: I15c360fdf5393f5594602acc33b5b916e904016d
(cherry picked from commit 942cd5b0f6)
2022-08-15 21:02:37 +00:00
..
.eslintrc.json Limit WVUI search to ES6 browsers 2022-02-09 22:10:11 +00:00
AB.js Sticky header AB test bucketing for 2 treatment buckets 2022-08-15 21:02:37 +00:00
config.json Make beginning bold on scroll 2022-03-25 01:13:42 +00:00
deferUntilFrame.js Fix TOC section activation on link click bug 2022-02-08 14:45:16 -07:00
main.js Sticky header AB test bucketing for 2 treatment buckets 2022-08-15 21:02:37 +00:00
scrollObserver.js Factor out a separate scroll observer for the TOC A/B test, which should be fired separately from the page title observer used by the sticky header and TOC 2022-05-09 20:44:54 +00:00
searchToggle.js Search: Use Codex and Vue 3 instead of WVUI and Vue 2. 2022-07-18 12:54:47 -07:00
sectionObserver.js Merge "Use TOC template data for showing collapsible section arrows" 2022-02-22 22:16:18 +00:00
stickyHeader.js Add "Add topic" button to sticky header 2022-07-26 22:15:02 +00:00
stickyHeaderAB.js Sticky header edit button A/B test bucketing (updated) 2022-05-31 15:58:35 -07:00
tableOfContents.js Add feature to hide/show collapsible TOC above desktop 2022-07-29 14:19:55 -05:00