ita-social-projects/GreenCity

[UBS Admin Cabinet ] Save/cancel changes in the current order

Closed this issue · 0 comments

As an administrator, I want to be able to save or cancel made changes in the details of the order in the admin cabinet so that I can decide whether to update the order or not.

Assumptions & Constraints

  1. Different Administrator types might have different rights sets
  2. Some fields are interlinked with the current orders view table. If any field was changed in the current order view table, it should be changed in the related current order details and vice versa.

Preconditions

  1. User is logged in as administrator.
  2. Administrator navigates to the Orders tab.
  3. Administrator has opened an separate order from current orders view table

Business rules

  1. Only administrators with access should be able to view Admin Cabinet

Acceptance Criteria

  1. The buttons “Зберегти” and “Скасувати” should be disabled by default. If an administrator makes any changes, both buttons should become enabled.

  2. If the administrator clicks on “Скасувати” button, the system shall show the following message “У разі скасування внесені зміни будуть втрачені. Чи дійсно Ви бажаєте скасувати зміни?”

    a.if the administrator clicks on “Так” button, the system shall undo all made changes and return to the page with initial (before changes) Order details

    b. if the administrator clicks on “Ні”, the system should go back to the order details page, where the administrator has already started to make changes, so the administrator can continue editing.

image

  1. If the administrator clicks on “Зберегти” button, the system shall:

    a. save all made changes

    b. return the administrator to the updated Order details page.

    c. show pop-up message “Внесені зміни збережено”, that is auto closed after 3 sec. Administrator is able to close his pop-up by clicking on “X”.

    d. the buttons “Зберегти” and “Скасувати” become disabled. When an administrator makes any changes, both buttons should become enabled again.

  2. If the administrator hasn’t saved/cancelled changes and click on “Назад” button, the system shall show an alert message with the warning: “У разі повернення назад внесені зміни будуть втрачені. Чи дійсно Ви бажаєте повернутись до таблиці?”

    a.If the administrator clicks on “Ні” button, the system should stay on the order details page, so the administrator can continue editing. Buttons “Зберегти” and “Скасувати” remain enabled.

    b.If the administrator clicks on “Так” button, the system shall undo all made changes and return to the Order tab

image

image

Mockup
https://www.figma.com/file/092AhCGadc1Hq8nAysxmYB/ITA-Greencity-%D0%A3%D0%91%D0%A1?node-id=17561%3A749

Out of scope

  1. Displaying changes of order details made by admin in the order details in the client cabinet.

Epic link
E.g.: Epic #2195

Labels to be added
"User story", Correspondind Functionality (e.g. User), Priority ("pri: "), "Corresponding Epic"

Tasks

    • sample task.