medic / cht-user-management

GNU Affero General Public License v3.0
3 stars 1 forks source link

"Warnings" before upload #20

Open kennsippell opened 7 months ago

kennsippell commented 7 months ago

There is a lot of potential to add value through warnings. Some ideas for warnings:

  1. Creating a place that already exists
  2. About to create a duplicate - Same name & parent in batch (identical contact)
  3. Duplicate phone number in batch
  4. Duplicate CHU code in batch
  5. Replacing the same contact multiple times

Just brainstorming the concept for this feature:

kennsippell commented 4 months ago

Two concepts here for the UI:

The first is a new static UI without tooltips. This allows deep links but takes a lot of vertical space and would require some work to harmonize it with Bulma tables (like the rows being different colors, etc).

image

The second continues our use of tooltips to give warnings: https://github.com/medic/cht-user-management/assets/9014751/ce921411-efd0-4708-9db2-d2ea9b61171d

kennsippell commented 4 months ago

Based on feedback in Slack, continuing with the 2nd tooltip-based interface.

kennsippell commented 3 months ago

Would be nice to get warnings about useless replacement (eg. CHA is already the CHA)