hasadna/avid-covider

date inputs sanity check [?h]

Open

#25 opened on Mar 21, 2020

View on GitHub
 (6 comments) (0 reactions) (1 assignee)TypeScript (8 forks)auto 404
add time estimationcontentgood first issueux/ui

Repository metrics

Stars
 (23 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide