code4romania / sunrise

Mozilla Public License 2.0
0 stars 0 forks source link

[NGO Admin/ Nomenclator servicii] update Nomenclator servicii section according to design #160

Open teodoranegru opened 1 month ago

teodoranegru commented 1 month ago

User story

As an NGO Admin, I want to be able to choose what services and interventions my organization offers, from a predefined list.

Flows

Add service to nomenclator

  1. NGO Admin user navigates to "Nomenclator servicii specializate" page
  2. User clicks on "Adauga serviciu" button
  3. The system retrieves the "Adauga serviciu" page
  4. User selects a value from "Nume serviciu" field
  5. The system displays the list of interventions linked to that service (Intervenții asociate serviciului table)
  6. User checks the interventions they provide within that service (when they check an intervention, it automatically becomes Active)
  7. User clicks on "Salvează modificările" button
  8. The system retrieves the page of that service in view mode (see design here)

Edit, Delete and Download flows are the same as the ones described in issue #156

Business rules

  1. If there are no services added in the nomenclator, display the empty state (see design here)
  2. When a new service is created, the default status of that service is Active
  3. The "Nume serviciu" field is dynamic, meaning that when the user selects a service, the system will display the information configured in the Super Admin for that service
  4. The user can't save the service if they didn't pick a service and at least 1 intervention (disable button)
  5. If the service has a Fisa de consiliere linked to it, display the component that allows the preview of that form (see design here)
  6. A service that was used can not be deleted, only deactivated. The field "Nume serviciu" will be disabled in edit mode.
  7. An intervention that was used can not be deselected, only deactivated.
  8. When the user switches the toggle from ACTIV to INACTIV display the following confirmation modal screens: a. For service (link to design) b. For intervention (link to design)