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

Certificates page: filtering #3416

Closed AndriyHoroschko closed 1 week ago

AndriyHoroschko commented 3 years ago

As an administrator, I want to be able to filter certificates by different criteria so that I can narrow the search according to the required parameters.

Preconditions 

  1. The user is logged in as administrator

  2. The user navigates to Admin Cabinet on tab “Сертифікати”

  3. The table with certificates contains at least 2 records

Business rules

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

Acceptance Criteria

  1. Filter icon is displayed near the headline of the column.

  2. When an admin clicks on the icon, a pop-up window is displayed.

  3. Filter may be applied to the following columns:

Column name | Requirements -- | -- Дата продажу | Date range: від DD.MM.YYYY до DD.MM.YYYY Статус | Filter by statuses: “Новий”, “Використаний”, “Протермінований”.Checkboxes near each status are shown. Дата використання | Date range: від DD.MM.YYYY до DD.MM.YYYY Номінал | Filter by denomination (all added numbers)Checkboxes near each denomination are shown. Дійсний до | Date range: від DD.MM.YYYY до DD.MM.YYYY

 

  1. When the admin sets a filter, it should be applied when the admin closes the pop-up window by clicking outside it.

  2. If the filter is set, the filtering condition should be displayed above the table.

  3. The admin can clear a separate filter by clicking on the X icon, that is shown on each displayed filtering condition.

  4. When at least one filter is applied, the button “Скасувати” should appear near the table. By clicking the button all filter conditions should be cleared.

  5. Search bar. Search provides filtering of all items from the table e.g: When typing ‘5’ it searches through all columns of the table and filters orders that fall under this criteria, not showing orders that have no search overlaps. There is no search term confirmation - a table is filtered in real-time

Mockup: to be added

Out of scope

Sorting

Epic #2195


PavloFedyk commented 3 years ago

backend is done

RossSihovsk commented 3 years ago

backend is done /ubs/management/getAllCertificates

Yura935 commented 2 years ago

frontend is done