Page MenuHomePhabricator

Select the default tab between "Contribute" and "View contributions" to minimize tab switching for users frequently using one of them
Open, In Progress, HighPublic

Description

Where the Contribute entry point (T322740) is available (for example, in Albanian Wikipedia), it provides users with two tabs: "Contribute" (with access to tools to start new contributions) and "View Contributions" (the list of past contributions by the user).

Currently, the "Contribute" tab is always the default. Thus, users regularly accessing "View contributions" as part of their workflow, have to always switch to the "View Contributions" tab. The table below illustrates the different views involved in this workflow:

Navigation menuContributeView contributions
bn.m.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(Wiki Mobile).png (568×320 px, 30 KB)
bn.m.wikipedia.org_wiki_%E0%A6%AC%E0%A6%BF%E0%A6%B6%E0%A7%87%E0%A6%B7_Contribute(Wiki Mobile).png (568×320 px, 46 KB)
bn.m.wikipedia.org_wiki_%E0%A6%AC%E0%A6%BF%E0%A6%B6%E0%A7%87%E0%A6%B7_%E0%A6%85%E0%A6%AC%E0%A6%A6%E0%A6%BE%E0%A6%A8_Pginer-WMF(Wiki Mobile).png (568×320 px, 67 KB)

Adjust the default destination

This ticket proposes to adjust the tab that the user navigates to by default to by considering the previous selections, and the existence of previous contributions by the user:

  • If the user has selected one of the tabs before, that will be the default tab.
  • If the user has no contributions yet, the "Contribute" tab will be the default unless the "View contributions" option (will show an empty list) was explicitly selected before.
  • If the user has made no previous selection and there are contributions to show, the "View Contributions" tab will be shown as default.

In this way, the "View Contributions tab" will be the default tab shown unless (a) the user selects a different tab or (b) there are no contributions to list.

contribute-default-tab.png (403×515 px, 31 KB)

Adjust the navigation menu option

With the above proposal, the item from the navigation option (currently labeled "Contribute") may lead to either of the tabs. This ticket proposes to change the label to "Contributions" which is a more generic term that can encompass both "Contribute" and "View contributions".

CurrentProposed
bn.m.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(Wiki Mobile).png (568×320 px, 30 KB)
bn.m.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(Wiki Mobile) (1).png (568×320 px, 28 KB)

Event Timeline

Pginer-WMF triaged this task as Medium priority.Aug 28 2023, 5:55 PM
Pginer-WMF created this task.
Pginer-WMF renamed this task from Select the default tab between "Contribute" and "View contributions" to minimize user switching to Select the default tab between "Contribute" and "View contributions" to minimize tab switching for users frequently using one of them.Aug 30 2023, 12:53 PM
Pginer-WMF raised the priority of this task from Medium to High.Aug 31 2023, 8:08 AM

Change 960652 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/core@master] POC: Point the contributions link to the last visited special page

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

ngkountas changed the task status from Open to In Progress.Sep 25 2023, 4:54 PM
ngkountas claimed this task.

This ticket is proposing to modify the contributions link in some way to provide the desired functionality. This contribution link is actually created inside SkinTemplate.php file, and this logic is shared for both the Vector skin used for desktop devices in production wikis, and the Minerva skin used for mobile devices. Thus, adding the appropriate logic to this method, would fix the issue for both skins.

Since, according to the task description, we need to be aware about the previous user visits of the user to the "Contribute"/"Contributions" special pages. For this reason, I suggest the introduction of a "last_contribute_visit" cookie that would store the last visited page, e.g. "contribute" for the "Special:Contribute" page and "contributions" for the "Special:Contributions" page.