opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
53 stars 41 forks source link

Implement a configurable location selector UI #3068

Closed dubdabasoduba closed 3 months ago

dubdabasoduba commented 6 months ago

On the Android app, users will be allowed to select different locations including the ones they are not assigned to. These locations will be selected from the location selector. The location selector should be accessible from the side menu or the map view during initial login (no locations selected).

Business requirements

Functional requirements

Technical Requirements

Acceptance criteria

Implementation plan (For Engineers) The plan for implementing the solution e.g. via a description or a check list for the various ordered tasks that will need to be completed. i.e. Describe how you intend to solve the problem

dubdabasoduba commented 6 months ago

Updated location selection screenshot

Side menu 1 1 - Side menu 1 1 - bottom sheet (1)

@ellykits raised an interesting observation on the linked screenshot. Right now based on how the select and drill down icons are placed shows kinda of shows that the user has to select and then drill down.

would it make more sense to have the selection checkbox at the start? like in the screenshot below

Multi Level Select

cc: @HenryRae @rowo

rowo commented 6 months ago

I'm wary about both solutions on mobile screens because of the small area to tap for the checkboxes and arrows. For our users, I'd prefer the whole line as a tappable button that can either expand or select the line item.

However, I'm not sure about the exact solution though. I wonder if adding a "select all" option to lists with children could work. The problem is any choice with children will not be obviously selected (for example Lavington, if you select Nairobi).

@HenryRae any ideas?

HenryRae commented 6 months ago

The touch areas could be manageable to a minimum of 48px, @ellykits you can let me know if this is possible with our current tech.

The icons can be swapped, what is proposed by Elly is the most common UX.

I've updated the design and also tried to cater for other scenarios like search and selecting of location. See below image

ellykits commented 6 months ago

The touch areas could be manageable to a minimum of 48px, @ellykits you can let me know if this is possible with our current tech.

This should be possible @HenryRae