Implement a Date widget with spinner input (no-calendar appearance)
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
- Lĩnh vực
- frontend, internationalization, testing
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ả
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
- Figma: [Insert URL to UI Mockups]
- Design Docs: ODK Date Widget Reference
Dependencies
- Existing
DateInputcomponent architecture. - Internationalization (i18n) library for localized month names.
Related Issues
- Related to Epic: https://github.com/getodk/web-forms/issues/304
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getodk/web-forms
-
iOS
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 54/100
-
Offline send queueĐang mởIn Enketo
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
Launch form offlineĐang mởneeds discussion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
Tất cả issue của getodk/web-forms
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
twilio/twilio-node#1241 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
hugomrdias/playwright-test#786 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:stdlib effort:S impact:med platform:linux type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
WenyuChiou/agent-board#1745 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày