Page MenuHomePhabricator

Document CodexHTMLForm
Open, MediumPublic

Description

I just realised by chance that we now have a CodexHTMLForm. However, it is not documented in https://www.mediawiki.org/wiki/HTMLForm or any other place that I could think of. I was curious to see how it works in practice, so I tried it in a few places, but it looks like it might be a WIP, given that some fields look incomplete/partially styled. It would be nice to have documentation and a task to follow the progress.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Hi @Daimona – I believe that this class was created to facilitate the removal of MediaWiki UI from some older interfaces (see T182050) – we haven't quite settled on a full solution for how Codex-compatible markup should be generated without relying in the Vue.js components (but I believe this is an important question – see T326850 and its parent task).

If you have a particular use-case in mind or other thoughts on this topic, feel free to share your thoughts on the linked task. Thanks!

Hi @Daimona – I believe that this class was created to facilitate the removal of MediaWiki UI from some older interfaces (see T182050) – we haven't quite settled on a full solution for how Codex-compatible markup should be generated without relying in the Vue.js components (but I believe this is an important question – see T326850 and its parent task).

Ah, thank you, it makes sense.

If you have a particular use-case in mind or other thoughts on this topic, feel free to share your thoughts on the linked task. Thanks!

I think this has a lot of potential use cases (anything that currently uses HTMLForm). Just as an example, my team would like to experiment with the OOUI -> Codex migration (T306720), but we had some doubts about migrating HTMLForm pages. But then again, I think this could be used in lots of places :)

CCiufo-WMF subscribed.

I'm going to backlog this for now, but we will re-evaluate this once further progress is made on creating forms in Codex more generally (see T330481 and T332849 as existing related tasks).

CCiufo-WMF triaged this task as Medium priority.Apr 15 2024, 3:14 PM