Page MenuHomePhabricator

NumberInput: Add NumberInput component to Codex
Open, Needs TriagePublic

Description

Background

Description

Input for entering a number.

User stories

Add at least one user story.

History

Number inputs are part of the DSG and OOUI.

Known use cases

  • GrowthExperiments mentee filters form contains a NumberInput built in the GrowthExperiments extension (based on the CdxTextInput component)
  • Codex docs site uses a number input on the Menu demo page

Existing implementations

These artifacts are listed for historical context. The Figma spec, linked below, is the source of truth for the new component.

Wikimedia community:

External libraries:


Codex implementation

Component task owners

Open questions

  • List any current open questions here

Design spec

Once a component spec sheet has been created in Figma, remove the note stating that the spec is missing and link to the spec below.

Component spec sheet
Anatomy

Designer should list the structure and properties of the component.

Style

Designer should list the visual features of the component.

Interaction

Designer should list interaction specifications.

Documentation

Designer should describe how the component should be documented, including configurable and standalone demos.


Acceptance criteria

Minimum viable product

This task covers the minimum viable product (MVP) version of this component. MVP includes basic layout, default states, and most important functionality.

MVP scope

  • List all parts of the MVP scope for this component

Design

  • Design the Figma spec sheet and add a link to it in this task
  • Update the component in the Figma library. This step will be done by a DST member.

Code

  • Implement the component in Codex

Future work

  • If applicable, list future work that should be done for this component after the MVP is implemented as part of this task. You should open new, standalone tasks for all future work.

Event Timeline

AnneT renamed this task from Design and build initial NumberInput component (MVP) to NumberInput: Add NumberInput component to Codex.Feb 21 2023, 8:01 PM
AnneT updated the task description. (Show Details)
bmartinezcalvo changed the task status from Open to Stalled.Mar 2 2023, 9:08 AM
bmartinezcalvo triaged this task as Low priority.

Since there are not many cases using this component at the moment (check the Figma inventory) and as we decided yesterday during our Engineering/Design sync, we will stop NumberInput for now and we will work on it in the future if we really find relevant use cases to cover.

The Growth team is interested in this component for form generation in the CommunityConfiguration 2.0 project. As mentioned in the description, the mentor dashboard in GrowthExperiments already has a basic number input. Would it make sense for us to try to migrate it to Codex? cc @Catrope @CCiufo-WMF

The Growth team is interested in this component for form generation in the CommunityConfiguration 2.0 project. As mentioned in the description, the mentor dashboard in GrowthExperiments already has a basic number input. Would it make sense for us to try to migrate it to Codex? cc @Catrope @CCiufo-WMF

I provided this response elsewhere but adding here for visibility:

The Community Configuration 2.0 use case came up in a recent DST discussion and we came to the decision that likely you should just use the TextInput with number type for now. The use case for having a dedicated number component is not really clear yet. Support for things like max and min might warrant a dedicated component but could also be added to the TextInput. It's something we're still evaluating which is why the task is not declined, but it's also not a priority component for us right now.

CCiufo-WMF changed the task status from Stalled to Open.Feb 15 2024, 8:31 PM
CCiufo-WMF raised the priority of this task from Low to Needs Triage.
CCiufo-WMF removed a subscriber: KieranMcCann.