ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

Create pricing card #4202

Open schIRIS opened 2 years ago

schIRIS commented 2 years ago

As a Super Admin, I want to be able to quickly create a pricing card from the main page "Тарифи" so I do not have to search for the necessary pricing card and that the change could be displayed for next orders. The User can create a new pricing card only with existing locations, couriers and receiving stations from the database.

User Flow Main UBS menu -> Choose "Тарифи” -> tools “Gear”

Preconditions The user should be logged in as a Super Admin

Acceptance Criteria

  1. When the user wants to create a new pricing card he/she should tap on “Створити картку” https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20020%3A62075

  2. When the user taps on “Створити картку”, will appear pop-up window named “Створити картку” with fields:

Field title | Field type | Condition | Prefilled text | Validation -- | -- | -- | -- | -- “Кур’єр” | Drop-down list | Mandatory | Placeholder “Обрати кур'єра” | The system shall show the courier suggestions based on the database. Suggestions are displayed by a drop-down list. “Станція приймання” | Input field Drop-down list with check boxes | Mandatory | Placeholder “Обрати станцію приймання” | After typing 1 character, the system shall show the station suggestions based on the database. Suggestions are displayed by a drop-down list. “Область” | Drop-down list | Mandatory | Placeholder “Обрати область” | The system shall show the region suggestions based on the location database. Suggestions are displayed by a drop-down list. “Місто” | Input field  Drop-down list with check boxes| Mandatory | Placeholder “Обрати місто” | After typing 1 character, the system shall show the city suggestions based on the location database. Suggestions are displayed by a drop-down list. Button “Скасувати” | Button | Mandatory |   | Active by default.When the user clicks on the button - the window “Створити картку"  was closed and the user sees the previous page "Тарифи” view Button “Створити” | Button | Mandatory |   | Inactive by default.When the user selects any points - the button will be active.When the user clicks on the button - the card should be saved,  the window “Створити картку” was closed and the user sees the previous page "Тарифи” view “Дата” | Text | Mandatory |   | Current data in the format mmm_dd,yyyy “Додано:” | Text | Mandatory |   | Name of logged Super Admin

Link of the mockup in Figma https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A64447

  1. The system should show the courier/region/city suggestions (except in receiving stations) the English field based on the database. These fields should be mandatory and uneditable.
  2. To create and save a new pricing cart the user should fill all fields. Otherwise the button “Створити” should be disabled.
  3. 5.1. When the user selects the city in the field “Місто”, the selected city will appear as a text (with English equivalent). The user should be able to delete the newly added city. The user must be able to delete the selected city. 5.2. The user can select more than one city. After that in the field "Місто" should displaied a text " обрано" https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A65556

  4. 6.1. When the user selects the station in the field “Сортувальна станція”, selected stations will appear as a text. The user should be able to delete the newly added station. The user must be able to delete the selected stations. 6.2. The user can select more than one station. After that in the field "Станція сортування" should displaied a text " обрано"

  5. When the user selects all fields (except the "Станція приймання") that match an existing card in the database and presses the button “Створити”, appears validation message: “За цими критеріями вже існує тарифна картка. Вам потрібно внести зміни”. https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A65673 If the user select one or more cities in the field “Місто” and/or "Станція приймання", when he/she clicks the button “Скасувати” appears the pop-up window that consists: the message “Скасувати. Ви дійсно хочете скасувати внесені зміни? ” the button “Так” is active. When the User clicks on the button - the pop-up was closed and the user sees the previous main page "Тарифи” view. the button “Ні” is active. When the user clicks on the button - the pop-up is closed and the user sees the previous page "Створити картку” view. https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20786%3A64539
  6. When the user wants to save the card with a new location, he/she must click on the button “Створити”, then appears the window that duplicate all selected fields https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20706%3A65673 8.1. When the user clicks the button “Скасувати” appears the pop-up window that consists: the message “Скасувати. Ви дійсно хочете скасувати внесені зміни? ” the button “Так” is active. When the User clicks on the button - the pop-up was closed and the user sees the previous main page "Тарифи” view. the button “Ні” is active. When the user clicks on the button - the pop-up is closed and the user sees the previous page "Створити картку” view.
    https://www.figma.com/file/JvDAu4MHnh1Vxc5FaokyiA/ITA-UBS-styles?node-id=20786%3A64539

Epic link Epic #2195

RudnevaOlena commented 1 year ago

15.05.2023 In the AC 5.1 was deleted about "enter" according to the current implementation and approval of our PM ( old ver.: "When the user selects the city in the field “Місто” and presses “Enter” selected city will appear as a text".)

RudnevaOlena commented 1 year ago

In the AC 6.1. "When the user selects the station in the field “Сортувальна станція” and presses “Enter” selected stations will appear as a text". - was deleted "and presses “Enter”, according to implementation and approval by PM.

RudnevaOlena commented 1 year ago

In the AC7 added "all" fields that match an existing card in the database..... - according to approval by PM.