medic / cht-core

The CHT Core Framework makes it faster to build responsive, offline-first digital health apps that equip health workers to provide better care in their communities. It is a central resource of the Community Health Toolkit.
https://communityhealthtoolkit.org
GNU Affero General Public License v3.0
438 stars 209 forks source link

Set the ''target aggregates'' view as the default page for the target tab for the supervisor (improvement for the issue #4840) #6283

Open maremegaye opened 4 years ago

maremegaye commented 4 years ago

When the target tab is opened, we have the labels repeated: targets and target aggregates as highligted in this below screenshot.

Capture d’écran 2020-03-10 à 14 49 16

To avoid having the labels repeated, we would like to have the label "target aggregates" as the default page for the target tab for the supervisor. In that case, when the user needs to display the label "target" he will just select it from the dropdown and he will see the data instead of the two boxes "targets" and "target aggregrates".

See the proposed view below

Default view: target aggreates

Capture d’écran 2020-03-10 à 14 55 04

cc @michaelkohn

dianabarsan commented 4 years ago

@maremegaye I'm not sure I understand this correctly. We have 3 pages:

  1. The analytics landing page (the one with the 2 bug buttons for "targets" and "chw targets")
  2. The targets page
  3. The aggregates targets page (or "chw targets")

The analytics landing page is now displayed when clicking on the header link. The targets and aggregate targets page are linked to from the analytics landing page and the dropdown menu.

You are requesting that the header menu links to the aggregates page directly and that the dropdown menu link for "Targets" links to the Analytics landing page instead of the actual Targets page?

maremegaye commented 4 years ago

@dianabarsan what I am requesting is:

Please let me know if it is clear. I will update the description to make it more clear as well.

maremegaye commented 4 years ago

@dianabarsan here is the workflow recommended 1- the supervisor opens the target tab and sees the default page which is the ''aggregate targets'' data

Capture d’écran 2020-03-10 à 14 55 04

2- to view other data, the supervisor will click on the dropdown tab to select the page ''targets''

Capture d’écran 2020-03-19 à 12 59 05

Basically, what we want to delete are the two boxes for target aggregates and targets

Capture d’écran 2020-03-19 à 13 07 10

cc @n-orlowski