yashovardhan99 / HealersDiary

Healers Diary - an android app for healers to keep track of their patients and help in instant billing. The app is currently in development.
https://play.google.com/store/apps/details?id=com.yashovardhan99.healersdiary&utm_source=github&utm_campaign=github&pcampaignid=MKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1
Apache License 2.0
8 stars 0 forks source link

Add shortcuts #68

Closed yashovardhan99 closed 2 years ago

yashovardhan99 commented 2 years ago

Closes #65

This PR adds the following shortcuts:-

Dynamic shortcuts are created for all recent patients (up to device shortcut limit). The shortcut opens the patient detail page for the corresponding patient.

The first 2 are static shortcuts. They take the user to the new healings/payments flow.

All shortcuts have added capabilities for Google Assistant integration (See addCapabilityBinding.

All patients added as dynamic shortcuts have an icon (First letter of name with a random background color - The random functionality uses the hash code of the name as a seed so the same name will always produce the same color). Refer to PatientProfileDrawable

Further, all navigations to patient pages, creation of new healings/payments are reported to Android as a usage of the relevant shortcut. See reportShortcutUsed