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

贡献者指南