mediawiki-skins-Vector/resources
Jan Drewniak d7e6690b52 Sticky header edit button A/B test bucketing (updated)
Adds behaviour for conditionally adding the edit button
to the sticky-header based on A/B test bucketing.

This behaviour depends on having the `$wgVectorStickyHeaderEdit` config
set to true for logged-in users:

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

as well as an AB test configured with the following buckets:

    $wgVectorWebABTestEnrollment = [
        'name' => 'vector.sticky_header_edit',
        'enabled' => true,
        'buckets' => [
            'unsampled' => [
                'samplingRate' => 0
            ],
            'stickyHeaderEditButtonControl' => [
                'samplingRate' => 0
            ],
            'stickyHeaderEditButtonTreatment' => [
                'samplingRate' => 1
            ]
        ]
    ];

With that config, this change hides the sticky header for all users
except those in the stickyHeaderEditButtonTreatment bucket.

NOTE: This patch address the sticky header being visible on incorrect
namespaces when the AB test is enabled and the revert of
42b808738a.

Bug: T299959
Bug: T309370
Change-Id: I3effbb3e5f0bb1c8663255936458e3849511dfca
2022-05-31 15:58:35 -07:00
..
common Merge "In max-width mode, constrain the width of page previews" 2022-05-31 15:29:26 +00:00
mediawiki.less Implement mediawiki.skin.variables.less for Vector 2020-09-16 08:39:13 -07:00
skins.vector.es6 Sticky header edit button A/B test bucketing (updated) 2022-05-31 15:58:35 -07:00
skins.vector.js Merge "build: Update eslint-config-wikimedia to 0.22.1" 2022-05-18 00:41:00 +00:00
skins.vector.legacy.js Update @wikimedia/types-wikimedia to latest version 2022-03-28 23:33:50 +00:00
skins.vector.search build: Update eslint-config-wikimedia to 0.22.1 2022-05-17 23:40:46 +01:00
skins.vector.styles In max-width mode, constrain the width of page previews 2022-05-30 11:52:59 +08:00
skins.vector.styles.legacy Updates for core temp user autocreation feature 2022-04-28 20:32:53 +00:00
CheckboxHack.d.ts
CollapsibleTabsPlugin.d.ts
MediaWikiPageReady.d.ts
mw.d.ts Use centralized MediaWiki typescript definition 2021-07-26 21:27:12 +00:00
VectorResourceLoaderVirtualConfig.d.ts Address some code FIXMEs 2022-03-21 20:29:58 +00:00
vue.d.ts Integrate WVUI search into Vector 2020-12-08 13:27:12 -08:00