hasadna/avid-covider

date inputs sanity check [?h]

Aperta

#25 aperta il 21 mar 2020

 (6 commenti) (0 reazioni) (1 assegnatario)TypeScript (8 fork)auto 404
add time estimationcontentgood first issueux/ui

Metriche repository

Star
 (23 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor