Page MenuHomePhabricator

Allow posting new sections to top of page on a per-page basis by DiscussionTools
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):
As a user, I want to be able to post from the top of the forums and discussion pages where this mechanic is implemented. For example:
https://ru.wikipedia.org/wiki/Википедия:Форум/Предложения
https://ru.wikipedia.org/wiki/Обсуждение_участника:Levg

Also, the form should be able to take the prepared preload and editnotice, like it does as usual.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Talk pages where topics are posted at the top. Partially identifiable by the inclusions of this template: https://www.wikidata.org/wiki/Q10953400#sitelinks-wikipedia.

Benefits (why should this be implemented?):
The user does not have to switch from DT to the standard code editor from discussion to discussion. More stable UX.

Related: T33919

Event Timeline

If T33919: Allow posting new sections to top of page on a per-page basis was implemented in MediaWiki core, it would work with the DiscussionTools new topic tool as well – new topics would be added to the top, since we use the same code for saving changes.

There would be some issues with the user interface to resolve separately though (e.g. the new topic form would still appear at the bottom of the page, the posted topic might not be scrolled into view after saving, etc.).

On Extension:DiscussionTools page on mw.org this extension is mentioned:
https://www.mediawiki.org/wiki/Extension:PlaceNewSection
Its code is fairly simple, maybe some version of it can be deployed and maintained by DiscussionTools team? I suppose Wikimedia wikis do not need __ADDSECTIONABOVE__, but __ADDSECTIONBELOW__ is basically what we need here.

As an alternative, you can try to provide the ability to sort topics (latest first)? But I think it will affect the page loading speed.

As an alternative, you can try to provide the ability to sort topics (latest first)? But I think it will affect the page loading speed.

Sorting could happen on the server side, though it is more complicated. It does seem like the best solution for this sort of thing since it doesn’t require an overhaul to how section=new functions, and it would introduce an old feature from Flow. Ideally, there should be a per-user setting of how a user wants to see threads on the page and per-page setting of how the community wants to see threads on the page.