Skip to content

ASHA Dashboard is unimplemented - DashboardFragment shows placeholder text #148

@Jayant-kernel

Description

@Jayant-kernel

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

  • Query the existing DAOs for live counts: ANC registrations, deliveries due, deliveries done, PNC women
  • Expose them from DashboardViewModel as LiveData/StateFlow
  • Build out fragment_dashboard.xml to actually display the stats
  • Should work offline since it's all Room queries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions