Skip to content

Implement month-year and year spinner date widgets #782

Description

@latin-panda

Description

These widgets should only display the relevant spinner columns and exclude the "Day" input.

  1. Month-Year Widget: Displays two spinners (Month, Year). Triggered by appearance="month-year" on a date type question.
  2. Year Widget: Displays a single spinner (Year). Triggered by appearance="year" on a date type question.

Checklist

  • Does it need UI/UX design?
    • Yes.
    • No
  • Does it need API design?
    • Yes.
    • No
  • Does it need design around state flow?
    • Yes.
    • No
  • Does it need a test plan?
    • Yes.
    • No

User Stories

  • As a data collector,
    I want to record only the year a building was constructed,
    so that I don't have to guess or enter an irrelevant day and month.

  • As a data collector,
    I want to select a "Month and Year" for a patient's last check-up,
    so that the data entry is faster and more accurate for events where the specific day is forgotten.


Design


Dependencies

  • Existing DateInput component architecture.
  • Internationalization (i18n) library for localized month names.

Related Issues

Metadata

Metadata

Assignees

Labels

front-endTasks for Web Forms front-end package

Projects

Status
Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions