Skip to content

System busy feedback and fill date validation

Compare
Choose a tag to compare
@RyanNerd RyanNerd released this 30 May 05:05
· 568 commits to master since this release
c9172de

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 and In 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 to null
  • 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.

image