System busy feedback and fill date validation
User facing ๐ :
-
When the system is busy some buttons have a spinner ๐ก shown as feedback that the system is unavailable.
-
When editing/adding an OTC drug log the
Out
andIn
fields are not shown. -
Fill Date for adding new medicine no longer defaults to today
-
Fill Date ๐ is validated ๐ฎ and the save button is disabled ๐ซ when in an invalid state.
-
Added some feedback ๐ indicating why an entry isn't valid (e.g. Drug name cannot be blank)
-
Fixed ๐ง a ๐ where invalid fill date would crash RxChart
-
The client roster printout ๐จ๏ธ doesn't have a dash in front of the name on the printout.
Internal ๐ฝ :
- Observer promises use
finally()
to set state back tonull
getDrugName()
in common.ts was changed to be more declarative.- A bunch of ๐ฆ typing was removed from ManageDrugPage.tsx
- MedicineEdit.tsx and ResidentEdit.tsx modals make better use of Bootstrap's form validation ๐ฎ and
useEffect()
hooks check and enforce the validations.