Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Super Admin/Nomenclator] implement CRUD beneficii sociale #167

Open
teodoranegru opened this issue Sep 11, 2024 · 0 comments · Fixed by #197
Open

[Super Admin/Nomenclator] implement CRUD beneficii sociale #167

teodoranegru opened this issue Sep 11, 2024 · 0 comments · Fixed by #197

Comments

@teodoranegru
Copy link

teodoranegru commented Sep 11, 2024

User story

As a Super Admin, I need to be able to create and manage the social benefits available on the platform. The social benefits I configure in the Super Admin interface will populate the selection list for NGO Admins in the Plan de interventie/Beneficii sociale section.

Flows

Add social benefit

  1. Super Admin user navigates to "Nomenclator" page, "Beneficii" tab
  2. User clicks on "Adauga beneficiu social" button
  3. The system retrieves the "Adauga beneficiu social" page
  4. The user fills in the name of the category and defines the types of benefits
  5. The user clicks on "Salveaza modificarile" button
  6. The system retrieves the page of that social benefit in view mode (view design in Figma)

Edit social benefit

  1. Super Admin user navigates to "Nomenclator" page, "Beneficii" tab
  2. The user clicks on the "Vezi detalii" button
  3. The system retrieves the social benefit page
  4. The user clicks on the "Modifică beneficiu" button
  5. The system retrieves the social benefit page in edit mode
  6. The user edits the social benefit and clicks on "Salvează modificările" button
  7. The system retrieves the social benefit page in view mode and displays the success message

Delete social benefit

  1. Super Admin user navigates to "Nomenclator" page, "Beneficii" tab
  2. The user clicks on the "Vezi detalii" button
  3. The system retrieves the social benefit page
  4. The user clicks on the "Modifică beneficiu" button
  5. The system retrieves the social benefit page in edit mode
  6. The user clicks on the "Sterge beneficiu" button (the button is clickable ONLY if the social benefit has not been used)
  7. The system displays a confirmation message
  8. The user clicks on the "Sterge beneficiu" button
  9. The social benefit is deleted from the db, the user is redirected to the "Nomenclator" page, "Beneficii" tab, and a success message is displayed

Download list

  1. Super Admin user navigates to "Nomenclator" page, "Beneficii" tab
  2. The user clicks on the "Vezi detalii" button
  3. The system retrieves the social benefit page in view mode
  4. The user clicks on "Descarcă lista" button
  5. The system downloads the list of types of social benefits from that social benefit

Business rules

  1. If there are no social benefits added on the platform, display the empty state
  2. When a new social benefit is created, the default status of that social benefit is Active
  3. When a new type of social benefit is added, the default status of it is Active
  4. The default state of the "Tipuri de beneficii sociale" table has 1 empty row displayed
  5. A social benefit that was used can not be deleted, only deactivated
  6. A type of social benefit that was used can not be deleted, only deactivated
  7. At hover on the "Sterge beneficiu" button (disabled) display the following tooltip (link to design)
  8. At hover on the delete icon (disabled) from a type of social benefit display the following tooltip (link to design)
  9. Display in the "Toate beneficiile sociale" table the following information:
  • Beneficiu (valuea from "Categorie beneficiu social" field)
  • Institutii (total nr of Organizations that have selected that service. If the service is selected in more than one tenant, count the
    organization once)
  • Centre (total nr of tenants that have selected that service)
  • Status
  1. Implement filter by Status on the "Toate beneficiile" table
@teodoranegru teodoranegru changed the title WIP [Super Admin/Nomenclator] implement CRUD beneficii sociale [Super Admin/Nomenclator] implement CRUD beneficii sociale Sep 17, 2024
@alexPopaCode4 alexPopaCode4 linked a pull request Oct 1, 2024 that will close this issue
@alexPopaCode4 alexPopaCode4 linked a pull request Oct 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant