Page MenuHomePhabricator

Tabs on the "Contribute" page not showing for some skins
Closed, ResolvedPublic

Description

The Contribute entry point (T322740) allows users to start new contributions while providing access to the list of previous contributions they made.
While this works as described for the new "Vector 2022" skin, that is not the case for other skins such as "Vector Legacy" or "Monobook". For those skins, the "Contribute" option is shown in the user menu and it leads to the Contribute page. However, the Contribute page is missing the tabs that allow users to to switch to the Contributions page.

This ticket proposes to make sure the tabs are visible on the Contribute and Contributions page regardless of the skin used.

For example, on Bengali Wikipedia using Vector legacy, users in the main page have the "Contribute" option which leads to the Contribute page which is lacking the tabs to access the Contributions page with the list of their contributions. This represents a regression for users where they can no longer access their list of contributions. The expected behaviour s for the page to include the tabs. This example is illustrated below.

Main page using Vector Legacy with "Contribute" option in the user toolbar on topContribute page without tabs to switch to view user contributionsExpected result: Contribute page should have tabs to access the "view contributions" option
bn.wikipedia.org_wiki_%E0%A6%AA%E0%A7%8D%E0%A6%B0%E0%A6%A7%E0%A6%BE%E0%A6%A8_%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE(iPad Air).png (1×2 px, 1 MB)
bn.wikipedia.org_wiki_%E0%A6%AC%E0%A6%BF%E0%A6%B6%E0%A7%87%E0%A6%B7_Contribute(iPad Air).png (1×2 px, 384 KB)
Artboard.png (1×2 px, 344 KB)

Event Timeline

Pginer-WMF renamed this task from Keep the link to "Contributions" for skins where the Contribute entry point is not enabled to Tabs on the "Contribute" page not showing for some skins.May 24 2023, 8:40 AM
Pginer-WMF updated the task description. (Show Details)

This is currently working as expected. The tabs are only supported in modern skins.

We can add to Vector legacy and/or Monobook but that may have some undesired side effects on other special pages that make use of the feature e.g. SpecialWatchlist so I'd recommend carefully reviewing exactly what you'd be enabling.

"As expected" would be that I get the list of my contributions. There's no other button for that.

"As expected" would be that I get the list of my contributions. There's no other button for that.

Let me rephrase this :-)

My understanding from the original story was that Special:Contribute was a feature only for the Minerva skin (and that later evolved to include Vector 2022). The Special:Contribute page should not be accessible directly from the UI from other skins.

The configuration in https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/921049/3/wmf-config/InitialiseSettings.php#8286 looks wrong to me as it enables it on Monobook and Vector which was never discussed and was not something we promised initially. I suggest the configuration is updated to be limited to vector-2022 and minerva for now. cc @KartikMistry

If we need to support Monobook and Vector, this is substantial work and we should revisit this project as it sounds like potentially some wires have got crossed. The Web team typical don't add new features for skins that are not in active development.

"As expected" would be that I get the list of my contributions. There's no other button for that.

Let me rephrase this :-)

My understanding from the original story was that Special:Contribute was a feature only for the Minerva skin (and that later evolved to include Vector 2022). The Special:Contribute page should not be accessible directly from the UI from other skins.

The configuration in https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/921049/3/wmf-config/InitialiseSettings.php#8286 looks wrong to me as it enables it on Monobook and Vector which was never discussed and was not something we promised initially. I suggest the configuration is updated to be limited to vector-2022 and minerva for now. cc @KartikMistry

If we need to support Monobook and Vector, this is substantial work and we should revisit this project as it sounds like potentially some wires have got crossed. The Web team typical don't add new features for skins that are not in active development.

Thanks for the update and context. I'll submit a fix for undeploying entrypoint from unsupported skins.

Change 923527 had a related patch set uploaded (by KartikMistry; author: KartikMistry):

[operations/mediawiki-config@master] Undeploy Special:Contribute from unsupported skins

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

Change 923527 merged by jenkins-bot:

[operations/mediawiki-config@master] Undeploy Special:Contribute from unsupported skins

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

Mentioned in SAL (#wikimedia-operations) [2023-05-30T07:04:48Z] <kartik@deploy1002> Started scap: Backport for [[gerrit:923527|Undeploy Special:Contribute from unsupported skins (T337366)]]

Mentioned in SAL (#wikimedia-operations) [2023-05-30T07:06:26Z] <kartik@deploy1002> kartik: Backport for [[gerrit:923527|Undeploy Special:Contribute from unsupported skins (T337366)]] synced to the testservers: mwdebug1001.eqiad.wmnet, mwdebug2002.codfw.wmnet, mwdebug2001.codfw.wmnet, mwdebug1002.eqiad.wmnet

Mentioned in SAL (#wikimedia-operations) [2023-05-30T07:16:37Z] <kartik@deploy1002> Finished scap: Backport for [[gerrit:923527|Undeploy Special:Contribute from unsupported skins (T337366)]] (duration: 11m 49s)

"As expected" would be that I get the list of my contributions. There's no other button for that.

Let me rephrase this :-)

My understanding from the original story was that Special:Contribute was a feature only for the Minerva skin (and that later evolved to include Vector 2022). The Special:Contribute page should not be accessible directly from the UI from other skins.

The configuration in https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/921049/3/wmf-config/InitialiseSettings.php#8286 looks wrong to me as it enables it on Monobook and Vector which was never discussed and was not something we promised initially. I suggest the configuration is updated to be limited to vector-2022 and minerva for now. cc @KartikMistry

If we need to support Monobook and Vector, this is substantial work and we should revisit this project as it sounds like potentially some wires have got crossed. The Web team typical don't add new features for skins that are not in active development.

Thanks for the update and context. I'll submit a fix for undeploying entrypoint from unsupported skins.

This is done.

Can this ticket be resolved? If not, what needs to happen?

Pginer-WMF claimed this task.

Can this ticket be resolved? If not, what needs to happen?

Yes. If we consider that the Contribute entry point has to be exposed in other skins, a separate ticket can be created.