Implement a Date widget with spinner input (no-calendar appearance)

Đang mở
#781 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript

Hướng nghiên cứu

Bắt đầu với kiến trúc hiện có của component DateInput và so sánh hành vi dự kiến với ODK Date Widget Reference. Xác định các bài kiểm thử cho giao diện không có lịch, bao gồm các câu hỏi Date và DateTime, tên tháng đã được bản địa hóa và giới hạn ngày giữa các tháng cũng như trong năm nhuận. Hoàn thành có nghĩa là ba cột có thể cuộn hoạt động và được cập nhật nhất quán mà không có lưới lịch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

front-end In Collect In Enketo
Description

Implement a Date widget with spinner input within the form renderer. This widget allows users to select a date by scrolling through separate vertical columns for Day, Month, and Year instead of using a standard grid-based calendar picker. This is triggered by the appearance="no-calendar" attribute in the XForm definition.

Key requirements include:

  • Three independent scrolling columns (spinners).
  • Dynamic adjustment of the "Day" column based on the selected Month and Year (e.g., February 29th logic for leap years).
  • Support for localization of month names.
  • Date and DateTime question types support "no-calendar"

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 entering a date far in the past,
    I want to use scrolling "flywheel" pickers rather than a calendar grid,
    so that I can navigate through decades much faster than clicking through individual months.

  • As a non-technical user,
    I want an intuitive scrolling interface for year selection,
    so that I don’t get stuck manually clicking through months because I didn't realize the year label in a calendar UI was a clickable shortcut.

  • As a data collector reading from a physical document,
    I want to input date components linearly using spinners,
    so that the digital entry process feels more analogous and direct compared to the printed information I am looking at.


Design

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

Related Issues
Ngôn ngữ chính
TypeScript
Star
38
Fork
24
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getodk/web-forms

Tất cả issue của getodk/web-forms

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.