Page MenuHomePhabricator

TextInput: Remove TextInput component from Wikilambda codebase
Closed, ResolvedPublic

Description

Description

Due to significant design differences that required programmatic behavior, we created WlTextInput component as a wrapper of CdxTextInput.
However, these design requirements are not there anymore, which means that the WlTextInput component is now an unnecessary layer.

Remove the TextInput component and replace the instances of wl-text-input with direct cdx-text-input instances


Completion checklist

Event Timeline

We're using WlTextInput for character limits, and per T331000 upstream don't want to add this as a feature, instead saying we should roll our own as part of using Field - so we should do T345433 first? In T345876 they added an example of how to do this in the official docs.

Change 957980 had a related patch set uploaded (by Ccoxwell; author: Ccoxwell):

[mediawiki/extensions/WikiLambda@master] [WIP] replace wl-text-input with cdx-text-input

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

We're using WlTextInput for character limits, and per T331000 upstream don't want to add this as a feature, instead saying we should roll our own as part of using Field - so we should do T345433 first? In T345876 they added an example of how to do this in the official docs.

@Jdforrester-WMF, after talking to you and @AAlhazwani-WMF, i'm only using codex's TextInput in two specific cases: ZString (because of DefaultView's complexity) and ZMonolingualString (because of the chip inside the input field). every other use of our bespoke TextInput component will be replaced with codex's Field.

Jdforrester-WMF changed the task status from Open to In Progress.Sep 21 2023, 4:53 PM
Jdforrester-WMF triaged this task as High priority.
Jdforrester-WMF lowered the priority of this task from High to Medium.
Jdforrester-WMF moved this task from To triage to In Progress on the Abstract Wikipedia team board.

Change 957980 had a related patch set uploaded (by Ccoxwell; author: Ccoxwell):

[mediawiki/extensions/WikiLambda@master] replace wl-text-input with cdx-text-input

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

Change 957980 had a related patch set uploaded (by Ccoxwell; author: Ccoxwell):

[mediawiki/extensions/WikiLambda@master] replace wl-text-input with cdx-text-input

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

Change 961268 had a related patch set uploaded (by Genoveva Galarza; author: Ccoxwell):

[mediawiki/extensions/WikiLambda@master] Replace wl-text-input with cdx-text-input components

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

Change 961268 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Replace wl-text-input with cdx-text-input components

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