1018 B
1018 B
0035 A promotion's date and time are picked with native selects
Status: Proposed · Area: design · Date: 2026-10-08 · Decided by: agent
Context
C7 ۴.۳ draws a Shamsi wheel picker (day, month, year columns and a time row) in a bottom sheet. Island has no date picker, and a drawn wheel needs its own scroll physics, snapping and keyboard model.
Decision
Pick a promotion's start and end with island Selects (day, month, year, hour, minute; minutes in steps of 5 plus 59) in a Sheet on mobile and a Modal on desktop, with «بدون تاریخ پایان» for an end. Phones draw native selects as wheels. Shamsi ↔ instant conversion is @lumina/tools/jalali, in Tehran time.
Alternatives
- A drawn wheel: closer to the board, but a new interaction component to build and test for one field.
<input type="datetime-local">: Gregorian only.
Consequences
The desktop picker is a row of selects rather than columns. A real wheel can replace the body later without changing the form.