Description
Was going through the codebase while setting up locally for #132 and noticed the ASHA Dashboard screen is basically empty. The README lists it as a feature with 4 stats (Total ANC Women, Delivery due list, Total Delivery Women, Total PNC Women) but none of that is actually built.
DashboardFragment just inflates a layout with a hardcoded TextView:
<TextView android:text="@string/hello" />
And the ViewModel hasn't been touched at all:
class DashboardViewModel : ViewModel() {
// TODO: Implement the ViewModel
}
The data to power this already exists — MaternalHealthDao, BenDao, HrpDao, ImmunizationDao are all there. It just needs to be wired up.
Also worth noting this screen would be the right place to eventually show gamification stats (#132), so getting the base dashboard working first makes sense.
What needs to be done
Description
Was going through the codebase while setting up locally for #132 and noticed the ASHA Dashboard screen is basically empty. The README lists it as a feature with 4 stats (Total ANC Women, Delivery due list, Total Delivery Women, Total PNC Women) but none of that is actually built.
DashboardFragmentjust inflates a layout with a hardcoded TextView:And the ViewModel hasn't been touched at all:
The data to power this already exists —
MaternalHealthDao,BenDao,HrpDao,ImmunizationDaoare all there. It just needs to be wired up.Also worth noting this screen would be the right place to eventually show gamification stats (#132), so getting the base dashboard working first makes sense.
What needs to be done
DashboardViewModelas LiveData/StateFlowfragment_dashboard.xmlto actually display the stats