Page MenuHomePhabricator

Replace SpecialCreateAccountCampaign.php with proper hook
Closed, ResolvedPublic

Description

Based on comments in T300273#8411707:

  • modify SpecialCreateAccount to add temp user specific markup/language. See extension/GrowthExperiments/includes/Specials/SpecialCreateAccountCampaign.php for an example of how we did that for GrowthExperiments campaigns.

A good opportunity to replace the campaign class with a proper hook.

Event Timeline

One thing to figure out is that mobile signup page (ie. signup on the Minerva skin) looks very different. For the campaigns landing page we used mostly the same content for both, which might not have been a good idea as it pushes the login form itself below the fold. So the responsibility for formatting the landing page is somewhat split between the extension that wants to provide a custom landing experience for some specific case and the skin.

Although on second thought I'm not sure we can do much about that. The extension will just have provide a Minerva version if it wants to support that skin well.

Change 884482 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@master] Add SpecialCreateAccountsBenefits hook

https://gerrit.wikimedia.org/r/884482

Change 884483 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/GrowthExperiments@master] Replace SpecialCreateAccountCampaign.php with proper hook

https://gerrit.wikimedia.org/r/884483

Change 884482 merged by jenkins-bot:

[mediawiki/core@master] Add SpecialCreateAccountsBenefits hook

https://gerrit.wikimedia.org/r/884482

Change 884483 merged by jenkins-bot:

[mediawiki/extensions/GrowthExperiments@master] Replace SpecialCreateAccountCampaign.php with proper hook

https://gerrit.wikimedia.org/r/884483

kostajh added a subscriber: Etonkovidova.

Marking as resolved, not sure that there is anything to QA here. (cc @Etonkovidova)