Requirements
- Implement behind feature flag
- If parameter has the property of 'Suggested values' in TemplateData, the values are displayed using the OOUI widget: ComboBoxInputWidget (filtering on input)
- Only have this visible for the following parameter types: Content, Line, String, Unknown, Number, Unbalanced wikitext. Otherwise, hide suggested values.
- Users can add a value not included in suggested values. If a user does this, display the following message after clicking out of the widget: "This is not one of the suggested values and may not work with the template." This is displayed using OOUI widget: FieldLayout with notice message
- Ensure the above requirements work on mobile
- Ensure the above requirements work on RTL
Mocks
Related tickets
- Discussion about OOUI combobox widget T271399: Investigation: OOUI Combobox widget behavior
- Implementation on test instance T260157: VE Dialog on the Test Instance: Add ENUM parameter type to Template Data and add combobox to VE
Relevant prototype commits: