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
62 stars 80 forks source link

[Change request to #2537] Sorting #3336

Open YuliyaTymkiv opened 2 years ago

YuliyaTymkiv commented 2 years ago

Description of a Change request:

  1. Changed descending order of the order statuses
  2. Аdded sorting of the columns: “Статус оплати”, “Область”, “Населений пункт”, “Оплата”
  3. Removed sorting for e-mails, “К-cть пакетів”

Reason for Change: Changes in requirements

Acceptance Criteria

  1. To sort the items in the columns, the admin uses an arrow icon, which is shown near the column headline. Arrow icon points down\up depending on column sorting
  2. When the admin clicks on the arrow icon (first click), the items in the column should be sorted in descending order or alphabetical order “А”-”Я” and arrow icon points downward
  3. Second click - the items are sorted in ascending order or alphabetical order ”Я”-“А” and arrow icon points upwards
Name of the Column | Sorting type -- | -- Номер замовлення | No changes. Descending order - from high to low. Ascending order - from low to high Статус замовлення | Order statuses are sorted in alphabetical order  “А”-”Я” / “Я”-”A” (statuses are described in user story #2901) Статус оплати | Order payment statuses are sorted in alphabetical order. Supported statuses are Не оплачено; Частково оплачено; Оплачено; Оплату повернуто Дата замовлення | No changes. Descending order - from the oldest dates to the newest ones. Ascending order - from the newest dates to the oldest ones Дата оплати | No changes. Descending order - from the oldest dates to the newest ones. Ascending order - from the newest dates to the oldest ones Ім'я клієнта | No changes. Names are sorted in alphabetical order  “А”-”Я” / “Я”-”A” Телефон клієнта | No changes. Sorting is not supported for this field Email клієнта | Sorting is not supported for this field Ім’я відправника | No changes. Names are sorted in alphabetical order  “А”-”Я” / “Я”-”A” Телефон відправника | No changes. Sorting is not supported for this field Email відправника | Sorting is not supported for this field Кількість порушень клієнта | No changes. Descending order - from high to low. Ascending order - from low to high Область | Regions are sorted in alphabetical order “А”-”Я” / “Я”-”A” Населений пункт | Cities are sorted in alphabetical order “А”-”Я” / “Я”-”A” Район | Districts are sorted in alphabetical order “А”-”Я” / “Я”-”A” Адреса | No changes. Sorting is not supported for this field Коментар до адреси від клієнта | No changes. Sorting is not supported for this field К-cть пакетів | Sorting is not supported for this field Cума замовлення | No changes. Descending order - from high to low. Ascending order - from low to high Номер сертифікату | No changes. Sorting is not supported for this field Загальна знижка | No changes. Descending order - from high to low. Ascending order - from low to high Сума до оплати | No changes. Descending order - from high to low. Ascending order - from low to high Коментар до замовлення від клієнта | No changes. Sorting is not supported for this field Оплата | Descending order - from high to low. Ascending order - from low to high Дата вивезення | No changes. Descending order - from the oldest dates to the newest ones. Ascending order - from the newest dates to the oldest ones Час вивезення | Time sorting is based on the first HH\MM in range. If the first HH/MM in few orders is the same, than the second HH\MM should be taken into account. Descending order: 10:30 - 12:00; 10:30 - 19:30; 11:00 - 12:00. Ascending order: 11:00 - 12:00; 10:30 - 19:30; 10:30 - 12:00 Номер замовлення з магазину | No changes. Sorting is not supported for this field Станція приймання | No changes. Receiving stations are sorted in alphabetical order “А”-”Я” / “Я”-”A” Менеджер обдзвону | No changes. Names are sorted in alphabetical order “А”-”Я” / “Я”-”A” Логіст | No changes. Names are sorted in alphabetical order “А”-”Я” / “Я”-”A” Водій | No changes. Names are sorted in alphabetical order “А”-”Я” / “Я”-”A” Штурман | No changes. Names are sorted in alphabetical order “А”-”Я” / “Я”-”A” Коментарі до замовлення | No changes. Sorting is not supported for this field

**Impact of Change** #2537 **Labels to be added** [change request: UI improvement] [change request: adjustment] [change request: new functionality] Epic: #2195
YuliyaTymkiv commented 2 years ago

Please note, as was agreed, sorting requirements for Статус замовлення and Статус оплати are changed to alphabetic order

Maxv1z commented 1 month ago

When we use ASC order we should have "А-Я"/"A-Z" and vice versa with DESC order to match sorting with text and number data types. So it should be changed in the user story to prevent different types of sorting for different data types