hasadna/avid-covider

date inputs sanity check [?h]

開放

#25 建立於 2020年3月21日

 (6 則留言) (0 個反應) (1 位負責人)TypeScript (8 個分叉)auto 404
add time estimationcontentgood first issueux/ui

倉庫指標

星標
 (23 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

based on https://github.com/hasadna/avid-covider/issues/16#issuecomment-602023958:

  1. אין בדיקת שפיות האם התאריך הגיוני (גם יחסית למועד תחילת המגיפה וגם בעתיד יחסית לחולה הספיציפי)

expected solution: when setting a date input, enable an input validation with the following parameters:

  1. min date (earliest valid date) - manual / relative*
  2. max date (latest valid date) - manual / relative*
  3. default value: manual / relative*
  4. error message to be displayed when the entered date is not legal, before asking the user again

relative dates: today, today - x days, today + x days

related to #24

貢獻者指南